diff --git a/hwe/ts/PageFront.vue b/hwe/ts/PageFront.vue index 9e7e8a56..465dc2ff 100644 --- a/hwe/ts/PageFront.vue +++ b/hwe/ts/PageFront.vue @@ -27,7 +27,7 @@
전체 접속자 수: {{globalInfo.onlineUserCnt.toLocaleString()}}명
턴당 갱신횟수: {{globalInfo.apiLimit.toLocaleString()}}회
- 등록 장수: 유저 + 등록 장수: 유저 {{globalInfo.genCount.toLocaleString()}} / {{globalInfo.generalCntLimit.toLocaleString()}} + NPC TODO:NPC Cnt 명
@@ -86,11 +86,7 @@
툴바?
-
메시지 입력
-
전체 메시지
-
국가 메시지
-
개인 메시지
-
외교 메시지
+
툴바?
@@ -126,6 +122,7 @@ import { delay } from "./util/delay"; import CityBasicCard from "./components/CityBasicCard.vue"; import NationBasicCard from "./components/NationBasicCard.vue"; import GeneralBasicCard from "./components/GeneralBasicCard.vue"; +import MessagePanel from "./components/MessagePanel.vue"; import type { GeneralListItemP1 } from "./defs/API/Nation"; import type { NationStaticItem } from "./defs"; import { formatTime } from "./util/formatTime"; @@ -150,7 +147,12 @@ const storeP = getGameConstStore().then((store) => { let responseLock = false; +const msgPanel = ref>(); + async function tryRefresh() { + + msgPanel.value?.tryRefresh(); + if (responseLock) { return; } @@ -293,7 +295,7 @@ watch(refreshCounter, async () => { const frontInfo = ref(); const globalInfo = ref({} as GetFrontInfoResponse['global']) -const generalInfo = ref(); +const generalInfo = ref(); const nationStaticInfo = ref(); let generalInfoLock = false; diff --git a/hwe/ts/components/MessagePanel.vue b/hwe/ts/components/MessagePanel.vue new file mode 100644 index 00000000..32e01ff1 --- /dev/null +++ b/hwe/ts/components/MessagePanel.vue @@ -0,0 +1,236 @@ + + + diff --git a/hwe/ts/components/MessagePlate.vue b/hwe/ts/components/MessagePlate.vue index 79259e99..911e39c5 100644 --- a/hwe/ts/components/MessagePlate.vue +++ b/hwe/ts/components/MessagePlate.vue @@ -143,7 +143,6 @@ watch( icon: defaultIcon, }; }, - { immediate: true } ); const deletableTimer: Ref = ref(); diff --git a/hwe/v_front.php b/hwe/v_front.php index f7fd6517..0af1d43e 100644 --- a/hwe/v_front.php +++ b/hwe/v_front.php @@ -7,7 +7,6 @@ include "func.php"; //로그인 검사 Session::requireGameLogin()->setReadOnly(); - //턴 실행 대기 및 갱신 증가는 API에서 //TODO: 내 정보도 API에서, 사망 여부도