diff --git a/hwe/d_setting/GlobalMenu.orig.php b/hwe/d_setting/GlobalMenu.orig.php index 53c203dd..d064a2f4 100644 --- a/hwe/d_setting/GlobalMenu.orig.php +++ b/hwe/d_setting/GlobalMenu.orig.php @@ -19,7 +19,7 @@ class GlobalMenu { } static::$menu = [ new MenuItem('천통국 베팅', 'v_nationBetting.php', condHighlightVar: 'nationBetting'), - new MenuMulti([ + new MenuMulti('게임정보', [ new MenuItem('세력일람', 'a_kingdomList.php', newTab: true), new MenuItem('장수일람', 'a_genList.php', newTab: true), new MenuItem('명장일람', 'a_bestGeneral.php', newTab: true), @@ -42,7 +42,7 @@ class GlobalMenu { ], ), new MenuItem('전투 시뮬레이터', 'battle_simulator.php', newTab: true), - new MenuMulti([ + new MenuMulti('기타 정보', [ new MenuItem('접속량정보', 'a_traffic.php', newTab: true), new MenuItem('빙의일람', 'a_npcList', newTab: true, condShowVar: 'npcMode'), ]), diff --git a/hwe/sammo/DTO/MenuMulti.php b/hwe/sammo/DTO/MenuMulti.php index e3275e9a..d3204595 100644 --- a/hwe/sammo/DTO/MenuMulti.php +++ b/hwe/sammo/DTO/MenuMulti.php @@ -11,6 +11,7 @@ class MenuMulti extends DTO{ /** @param MenuItem[] $subMenu */ public function __construct( + public string $name, #[Convert(ArrayConverter::class, [DTO::class])] public array $subMenu, ){ diff --git a/hwe/sammo/GlobalMenu.php b/hwe/sammo/GlobalMenu.php index 11c2fa02..33087809 100644 --- a/hwe/sammo/GlobalMenu.php +++ b/hwe/sammo/GlobalMenu.php @@ -19,7 +19,7 @@ class GlobalMenu { } static::$menu = [ new MenuItem('천통국 베팅', 'v_nationBetting.php', condHighlightVar: 'nationBetting'), - new MenuMulti([ + new MenuMulti('게임정보', [ new MenuItem('세력일람', 'a_kingdomList.php', newTab: true), new MenuItem('장수일람', 'a_genList.php', newTab: true), new MenuItem('명장일람', 'a_bestGeneral.php', newTab: true), @@ -42,7 +42,7 @@ class GlobalMenu { ], ), new MenuItem('전투 시뮬레이터', 'battle_simulator.php', newTab: true), - new MenuMulti([ + new MenuMulti('기타 정보', [ new MenuItem('접속량정보', 'a_traffic.php', newTab: true), new MenuItem('빙의일람', 'a_npcList', newTab: true, condShowVar: 'npcMode'), ]), diff --git a/hwe/ts/defs/API/Global.ts b/hwe/ts/defs/API/Global.ts index fbc0ff69..81b8338e 100644 --- a/hwe/ts/defs/API/Global.ts +++ b/hwe/ts/defs/API/Global.ts @@ -237,6 +237,7 @@ export type MenuSplit = { export type MenuMulti = { type: 'multi'; + name: MenuItem; subMenu: MenuItem[]; }