feat: 스마트폰용 하단 바 구현, 버튼 템플릿 변경

This commit is contained in:
2021-12-08 00:24:40 +09:00
parent 8cbe92ca46
commit 33751a06fe
5 changed files with 348 additions and 285 deletions
+6 -6
View File
@@ -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