From 5510701d55d859e2a1a2de9e0a03de0b9c72fda5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-64JNFCF\\keyra" Date: Mon, 9 Oct 2023 01:59:53 +0900 Subject: [PATCH] =?UTF-8?q?UI=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/class/stand-list.ts | 1 + src/app/component/chat-input/chat-input.component.html | 4 ++-- src/app/component/chat-input/chat-input.component.ts | 4 ++-- .../stand-element/stand-element.component.html | 2 +- .../stand-setting/stand-setting.component.html | 4 ++++ .../component/stand-setting/stand-setting.component.ts | 10 ++++++++++ 6 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/app/class/stand-list.ts b/src/app/class/stand-list.ts index 6553e3598..f757f563c 100644 --- a/src/app/class/stand-list.ts +++ b/src/app/class/stand-list.ts @@ -23,6 +23,7 @@ export class StandList extends DataElement { @SyncVar() position = 5; @SyncVar() height = 35; @SyncVar() overviewIndex = -1; + @SyncVar() isSortNameList = true; get standElements(): DataElement[] { return this.getElementsByName('stand'); diff --git a/src/app/component/chat-input/chat-input.component.html b/src/app/component/chat-input/chat-input.component.html index ba3795cde..97c1d8828 100644 --- a/src/app/component/chat-input/chat-input.component.html +++ b/src/app/component/chat-input/chat-input.component.html @@ -1,5 +1,5 @@
-
+
@@ -18,7 +18,7 @@
-
Height (0=元画像のまま): diff --git a/src/app/component/stand-setting/stand-setting.component.ts b/src/app/component/stand-setting/stand-setting.component.ts index 5667b129f..5ccabc800 100644 --- a/src/app/component/stand-setting/stand-setting.component.ts +++ b/src/app/component/stand-setting/stand-setting.component.ts @@ -85,6 +85,16 @@ export class StandSettingComponent implements OnInit, OnDestroy, AfterViewInit { this.character.standList.overviewIndex = overviewIndex; } + set isSortNameList(isSortNameList: boolean) { + if (!this.character || !this.character.standList) return; + this.character.standList.isSortNameList = isSortNameList; + } + + get isSortNameList(): boolean { + if (!this.character || !this.character.standList) return true; + return this.character.standList.isSortNameList; + } + ngOnInit() { Promise.resolve().then(() => this.updatePanelTitle()); EventSystem.register(this)