Use main-window menus, cache maps, and handle settled sweep events

This commit is contained in:
AttilaNet
2026-11-08 11:10:07 +08:00
parent 2498f1f98f
commit dba667f21d
13 changed files with 578 additions and 33 deletions
+3 -2
View File
@@ -25,6 +25,7 @@ class Views:
monsters: list
map_source: str
maps: list
stage_cache: object = None
@dataclass
@@ -35,6 +36,6 @@ class Presented:
worker_ms: float = 0
def prepare_views(catalog, snapshot, managed):
def prepare_views(catalog, snapshot, managed, stage_cache=None):
return Views(snapshot, repr(snapshot.raw["monsters"]), set(managed), monster_rows(catalog, snapshot, managed),
map_source(snapshot), stages(catalog, snapshot))
str(snapshot.raw["master"]["id"]), stage_cache.get(snapshot) if stage_cache else stages(catalog, snapshot), stage_cache)