Integrate AVA2 native shop and refine mobile controls and locale tooltips
This commit is contained in:
@@ -4,7 +4,7 @@ from pathlib import Path
|
||||
import hashlib,json
|
||||
ROOT=Path(__file__).resolve().parents[2]
|
||||
REF=ROOT.parent/'AVA2/1. Client DEV/pack_maker/root'
|
||||
SOURCES={'BattlePassEx':'uibattlepassex.py','EventCalendarNew':'uieventcalendarnew.py','WikiUI':'wikiui.py','Wiki':'uiwiki.py','DropItem':'uidropitem.py'}
|
||||
SOURCES={'ItemShopNew':'uiitemshopnew.py','BattlePassEx':'uibattlepassex.py','EventCalendarNew':'uieventcalendarnew.py','WikiUI':'wikiui.py','Wiki':'uiwiki.py','DropItem':'uidropitem.py'}
|
||||
manifest={}
|
||||
for label,name in SOURCES.items():
|
||||
raw=(REF/name).read_bytes();s=raw.decode('cp1254').replace('\r\n','\n')
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
{
|
||||
"uiitemshopnew.py": {
|
||||
"sha256": "b0e76028a37763bf021feaef31979040535174a60ec60c885877f9d19a07cb6d",
|
||||
"module": "ItemShopNew",
|
||||
"changes": [
|
||||
"CP1254 to UTF-8",
|
||||
"CRLF to LF"
|
||||
]
|
||||
},
|
||||
"uibattlepassex.py": {
|
||||
"sha256": "c0ac6e2e3dfcd6c6c0716e5da4bfdf29169087109a7216d507f67d7ac3ed00d2",
|
||||
"module": "BattlePassEx",
|
||||
|
||||
@@ -7,7 +7,7 @@ def stage(pack_maker,assets):
|
||||
spec=importlib.util.spec_from_file_location('ava2_items',ROOT/'tools/server/ava2-items/make_items.py')
|
||||
module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
|
||||
files=module.pack_index(pack_maker)
|
||||
prefixes=('d:/ymir work/ui/game/battle_pass/','d:/ymir work/ui/game/event_calendar/','d:/ymir work/ui/game/wiki/','d:/ymir work/ui/game/drop_item/','d:/ymir work/worldard/')
|
||||
prefixes=('d:/ymir work/ui/game/ishop/','d:/ymir work/ui/game/battle_pass/','d:/ymir work/ui/game/event_calendar/','d:/ymir work/ui/game/wiki/','d:/ymir work/ui/game/drop_item/','d:/ymir work/worldard/')
|
||||
count=0
|
||||
for name,source in files.items():
|
||||
if name.startswith(prefixes):
|
||||
|
||||
@@ -315,7 +315,7 @@ def prepare(ava,proto_reader,locale,output,tool,packer,wrap=lambda text:text):
|
||||
target=assets/q;target.parent.mkdir(parents=True,exist_ok=True)
|
||||
if not target.exists():shutil.copy2(files[q],target);copied+=1
|
||||
# Native AVA2 BattlePassEx, event manager, encyclopedia and drop finder.
|
||||
native_prefixes=('d:/ymir work/ui/game/battle_pass/','d:/ymir work/ui/game/event_calendar/',
|
||||
native_prefixes=('d:/ymir work/ui/game/ishop/','d:/ymir work/ui/game/battle_pass/','d:/ymir work/ui/game/event_calendar/',
|
||||
'd:/ymir work/ui/game/wiki/','d:/ymir work/ui/game/drop_item/','d:/ymir work/worldard/')
|
||||
for q in files:
|
||||
if q.startswith(native_prefixes):
|
||||
|
||||
Reference in New Issue
Block a user