From 33751a06fe3bffe64a83c884454a0026cf123bcf Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 8 Dec 2021 00:24:40 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=8A=A4=EB=A7=88=ED=8A=B8=ED=8F=B0?= =?UTF-8?q?=EC=9A=A9=20=ED=95=98=EB=8B=A8=20=EB=B0=94=20=EA=B5=AC=ED=98=84?= =?UTF-8?q?,=20=EB=B2=84=ED=8A=BC=20=ED=85=9C=ED=94=8C=EB=A6=BF=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_template.php | 12 +- hwe/index.php | 445 +++++++++++++++++--------------- hwe/scss/main.scss | 100 ++++--- hwe/templates/allButton.php | 34 ++- hwe/templates/commandButton.php | 42 ++- 5 files changed, 348 insertions(+), 285 deletions(-) diff --git a/hwe/func_template.php b/hwe/func_template.php index 80d495ee..b498d7ba 100644 --- a/hwe/func_template.php +++ b/hwe/func_template.php @@ -119,7 +119,7 @@ function displaySpecialDomesticInfo(?string $type): string ]); } -function allButton(bool $seizeNPCMode) +function allButton(bool $seizeNPCMode, array $opts=[]) { if ($seizeNPCMode) { $site = "a_npcList.php"; @@ -136,14 +136,14 @@ function allButton(bool $seizeNPCMode) } - return $templates->render('allButton', [ + return $templates->render('allButton', array_merge([ 'call' => $call, 'site' => $site - ]); + ], $opts)); } -function commandButton() +function commandButton(array $opts=[]) { $session = Session::getInstance(); $userID = Session::getUserID(); @@ -173,14 +173,14 @@ function commandButton() $showSecret = false; } - return $templates->render('commandButton', [ + return $templates->render('commandButton', array_merge([ 'bgColor' => $bgColor, 'fgColor' => $fgColor, 'meLevel' => $me['officer_level'], 'nationLevel' => $nation['level'], 'showSecret' => $showSecret, 'permission' => $permission, - ]); + ], $opts)); } function formatWounded(int $value, int $wound): string diff --git a/hwe/index.php b/hwe/index.php index 434e8a4b..0aba8235 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -138,7 +138,7 @@ if (!$otherTextInfo) { - + @@ -154,228 +154,263 @@ if (!$otherTextInfo) {
-
npcmode == 1) ?>
-
-
-

삼국지 모의전투 HiDCHe ()

-
- -
-
- -
-
- NPC수 : -
-
- NPC상성 : -
-
- NPC선택 : -
-
- 기타 설정: +
+
npcmode == 1) ?>
+
+
+

삼국지 모의전투 HiDCHe ()

-
-
전체 접속자 수 : online_user_cnt ?> 명
-
턴당 갱신횟수 : conlimit ?>회
-
-
tournament == 0) : ?> - 현재 토너먼트 경기 없음 - - ↑tnmt_type] ?? '' ?> tournament) ?> ↑ +
+
+ +
+
+ NPC수 : +
+
+ NPC상성 : +
+
+ NPC선택 : +
+
+ 기타 설정: +
+ +
+
전체 접속자 수 : online_user_cnt ?> 명
+
턴당 갱신횟수 : conlimit ?>회
+
+
tournament == 0) : ?> + 현재 토너먼트 경기 없음 + + ↑tnmt_type] ?? '' ?> tournament) ?> ↑ - -
-
-
동작 시각: " . substr($gameStor->turntime, 5, 14) . "") : ("동작 시각: " . substr($gameStor->turntime, 5, 14) . "") ?>
-
-
- 0) : ?> - 거래 진행중 - - 진행중 거래 없음 - -
-
- vote ?: ['']; - $vote_title = Tag2Code($gameStor->vote_title ?? '-'); - ?> - - 진행중 설문 없음 - - 설문 진행중 : - -
-
-
-
접속중인 국가: online_nation ?>
-
-
-
운영자 메세지 : msg ?>
-
-
-
-
【 국가방침 】
-
-
+ +
+
+
동작 시각: " . substr($gameStor->turntime, 5, 14) . "") : ("동작 시각: " . substr($gameStor->turntime, 5, 14) . "") ?>
+
+
+ 0) : ?> + 거래 진행중 + + 진행중 거래 없음 + +
+
+ vote ?: ['']; + $vote_title = Tag2Code($gameStor->vote_title ?? '-'); + ?> + + 진행중 설문 없음 + + 설문 진행중 : +
-
-
-
- 【 접속자 】 +
+
접속중인 국가: online_nation ?>
-
- userGrade >= 5) : ?> -
- +
+
운영자 메세지 : msg ?>
- userGrade == 4) : ?> -
-
- -
-
- -
-
-
-
-
-
-
-
-
-
+
+
+
【 국가방침 】
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ 【 접속자 】 +
+
+ userGrade >= 5) : ?> + + userGrade == 4) : ?> +
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
'btn btn-sammo-nation']) ?>
+
-
-
-
-
장수 동향
-
-
-
-
개인 기록
-
-
-
-
중원 정세
-
-
-
-
npcmode == 1) ?>
- -
-
-
- +
+
+
+
+
+
+
-
- +
+
+
+
장수 동향
+
+
+
+
개인 기록
+
+
+
+
중원 정세
+
-
-
-
전체 메시지(최고99자)
-
-
-
-
-
-
국가 메시지(최고99자)
-
-
-
+
+
npcmode == 1) ?>
+ +
+
+
+ +
+
+ +
+
+
+
+
전체 메시지(최고99자)
+
+
+
+
+
+
국가 메시지(최고99자)
+
+
+
+
+
+
개인 메시지(최고99자)
+
+
+
+
+
+
외교 메시지(최고99자)
+
+
+
+
+
+
+
npcmode == 1) ?>
+
+ develcost * 5; + MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)"); + } + ?> + - - - -
-
개인 메시지(최고99자)
-
-
-
-
- -
-
외교 메시지(최고99자)
-
-
-
-
-
-
npcmode == 1) ?>
-
- develcost * 5; - MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)"); - } - ?> -
-
- - - - - -
-
- - - - -
-
- - - - -
-
- - -
-
\ No newline at end of file diff --git a/hwe/scss/main.scss b/hwe/scss/main.scss index 19ebfa33..0d87b681 100644 --- a/hwe/scss/main.scss +++ b/hwe/scss/main.scss @@ -25,6 +25,7 @@ body { #container { width: 500px; margin: 0 auto; + margin-bottom: 100px; } input[type='text'], @@ -32,6 +33,34 @@ body { textarea { font-size: 16px; } + + #navbar500 { + .nav-item ul.dropdown-menu { + max-height: calc(100vh - 50px); + overflow-y: auto; + } + + .nav-item > .btn { + margin-bottom: -6px; + text-align: center; + width: 125px; + font-size: 16px; + } + + box-shadow: 0 -1px 0 $dark; + } + + #navbarGlobalItems { + columns: 2; + } + + #navbarNationItems { + columns: 2; + } + + #navbarQuickItems { + columns: 3; + } } .avoid-wrap { @@ -151,14 +180,6 @@ body { text-decoration: none; } - .commandButton { - width: 100%; - font-weight: bold; - font-size: 14px; - display: block; - } - - .mainCityInfo { grid-template-columns: 1fr 1fr 1fr 1fr; @@ -206,12 +227,6 @@ body { text-decoration: none; } - .commandButton { - width: 100%; - font-weight: bold; - font-size: 14px; - display: block; - } #nation-msg { transform-origin: 0px 0px; @@ -283,26 +298,36 @@ body { } } -.toolbarButton { - @extend .btn; - @extend .btn-sammo-base2; - width: 100%; - font-weight: bold; - font-size: 14px; -} +.buttonPlate { + .toolbarButton { + @extend .btn; + @extend .btn-sammo-base2; + width: 100%; + font-weight: bold; + font-size: 14px; + } -.toolbarButton2 { - @extend .btn; - @extend .btn-sammo-base2; - color: magenta; - width: 100%; - font-weight: bold; - font-size: 14px; - &:hover, - &:focus, - &:active { + .toolbarButton2 { + @extend .btn; + @extend .btn-sammo-base2; color: magenta; + width: 100%; + font-weight: bold; + font-size: 14px; + + &:hover, + &:focus, + &:active { + color: magenta; + } + } + + .commandButton { + width: 100%; + font-weight: bold; + font-size: 14px; + display: block; } } @@ -389,13 +414,20 @@ body { #public_talk_position, #national_talk_position, #private_talk_position, - #diplomacy_talk_position { + #diplomacy_talk_position{ + display: block; + position: relative; + top: -72px; + visibility: hidden; + } + + #message_board .board_side { position: relative; - .board_header { + > .board_header { position: -webkit-sticky; position: sticky; - top: 64.5px; + top: 72px; z-index: 4; } } diff --git a/hwe/templates/allButton.php b/hwe/templates/allButton.php index 52663965..f398492f 100644 --- a/hwe/templates/allButton.php +++ b/hwe/templates/allButton.php @@ -1,18 +1,16 @@ - \ No newline at end of file +">세력도 +">세력일람 +">장수일람 +">명장일람 +">연감 +">명예의전당 +">왕조일람 +">접속량정보 +">삼모게시판 +">팁/강좌 +">삼국 일보 +">개인 열전 +">국가 열전 +">패치 내역 +">전투 시뮬레이터 +"> \ No newline at end of file diff --git a/hwe/templates/commandButton.php b/hwe/templates/commandButton.php index 478e79e5..e48cb074 100644 --- a/hwe/templates/commandButton.php +++ b/hwe/templates/commandButton.php @@ -1,22 +1,20 @@ - \ No newline at end of file +'>회 의 실 + '>기 밀 실 + '>부대 편성 + '>외 교 부 + '>인 사 부 + '>내 무 부 + '>사 령 부 + '>NPC 정책 +'>암 행 부 +토 너 먼 트 +'>세력 정보 +'>세력 도시 +'>세력 장수 +중원 정보 +현재 도시 +'>감 찰 부 +유산 관리 +내 정보&설정 +거 래 장 +베 팅 장 \ No newline at end of file