vue: NPCControl
- 일단 모든 기능 작동
This commit is contained in:
+54
-9
@@ -7,11 +7,11 @@
|
|||||||
:style="{ width: '1000px', margin: 'auto', border: 'solid 1px #888888' }"
|
:style="{ width: '1000px', margin: 'auto', border: 'solid 1px #888888' }"
|
||||||
>
|
>
|
||||||
<div class="bg1 section_bar">국가 정책</div>
|
<div class="bg1 section_bar">국가 정책</div>
|
||||||
<div class="text-right px-3">
|
<div class="px-3" style="text-align:right;">
|
||||||
<small class="form-text text-muted">
|
<small class="form-text text-muted">
|
||||||
최근 설정:
|
최근 설정:
|
||||||
{{ nationPolicy.valueSetter ?? "-없음-" }}
|
{{ lastSetters.policy.setter ?? "-없음-" }}
|
||||||
({{ nationPolicy.valueSetTime ?? "설정 기록 없음" }})
|
({{ lastSetters.policy.date ?? "설정 기록 없음" }})
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="form_list">
|
<div class="form_list">
|
||||||
@@ -286,13 +286,13 @@
|
|||||||
<div class="float-right px-3">
|
<div class="float-right px-3">
|
||||||
<small class="form-text text-muted">
|
<small class="form-text text-muted">
|
||||||
최근 설정:
|
최근 설정:
|
||||||
{{ chiefActionPriority.prioritySetter ?? "-없음-" }}
|
{{ lastSetters.nation.setter ?? "-없음-" }}
|
||||||
({{ chiefActionPriority.prioritySetTime ?? "설정 기록 없음" }})
|
({{ lastSetters.nation.date ?? "설정 기록 없음" }})
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-left px-2">
|
<div class="text-left px-2">
|
||||||
<small class="text-muted"
|
<small class="text-muted"
|
||||||
>예턴이 없거나, 지정되어 있더라도 실패할경우<br />아래 순위에 따라
|
>예턴이 없거나, 지정되어 있더라도 실패하면<br />아래 순위에 따라
|
||||||
사령턴을 시도합니다.</small
|
사령턴을 시도합니다.</small
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -374,8 +374,8 @@
|
|||||||
<div class="float-right px-3">
|
<div class="float-right px-3">
|
||||||
<small class="form-text text-muted">
|
<small class="form-text text-muted">
|
||||||
최근 설정:
|
최근 설정:
|
||||||
{{ nationPolicy.prioritySetter ?? "-없음-" }}
|
{{ lastSetters.general.setter ?? "-없음-" }}
|
||||||
({{ nationPolicy.prioritySetTime ?? "설정 기록 없음" }})
|
({{ lastSetters.general.date ?? "설정 기록 없음" }})
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-left px-2">
|
<div class="text-left px-2">
|
||||||
@@ -501,6 +501,17 @@ declare const defaultGeneralActionPriority: NPCGeneralActions[];
|
|||||||
declare const defaultStatNPCMax: number;
|
declare const defaultStatNPCMax: number;
|
||||||
declare const defaultStatMax: number;
|
declare const defaultStatMax: number;
|
||||||
|
|
||||||
|
type SetterInfo = {
|
||||||
|
setter: string | null;
|
||||||
|
date: string | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
declare const lastSetters: {
|
||||||
|
polcy: SetterInfo;
|
||||||
|
nation: SetterInfo;
|
||||||
|
general: SetterInfo;
|
||||||
|
};
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "NPCControl",
|
name: "NPCControl",
|
||||||
components: {
|
components: {
|
||||||
@@ -784,7 +795,7 @@ export default defineComponent({
|
|||||||
return {
|
return {
|
||||||
title: "NPC 정책",
|
title: "NPC 정책",
|
||||||
toasts: <ToastType[]>[],
|
toasts: <ToastType[]>[],
|
||||||
reqNationGold: 110,
|
lastSetters,
|
||||||
|
|
||||||
nationID,
|
nationID,
|
||||||
defaultStatMax,
|
defaultStatMax,
|
||||||
@@ -812,4 +823,38 @@ export default defineComponent({
|
|||||||
max-width: 350px;
|
max-width: 350px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.control_bar {
|
||||||
|
margin-top: 8pt;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reset_btn {
|
||||||
|
width: 15ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.revert_btn{
|
||||||
|
width: 15ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit_btn {
|
||||||
|
margin-left: 1em;
|
||||||
|
width: 15ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.half_section_left {
|
||||||
|
padding-right: 0;
|
||||||
|
border-right: 0.5px solid #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.half_section_right {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section_bar {
|
||||||
|
text-align: center;
|
||||||
|
border: 0.5px solid #aaa;
|
||||||
|
padding-right: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -66,6 +66,21 @@ if ($currentNationPolicy['reqHumanWarUrgentGold'] ?? 0) {
|
|||||||
$autoPolicy = new AutorunNationPolicy($general, ($gameStor->autorun_user)['options'], ['values' => $autoPolicyVariable], null, $nation, $gameStor->getAll(true));
|
$autoPolicy = new AutorunNationPolicy($general, ($gameStor->autorun_user)['options'], ['values' => $autoPolicyVariable], null, $nation, $gameStor->getAll(true));
|
||||||
$zeroPolicy = new AutorunNationPolicy($general, ($gameStor->autorun_user)['options'], null, null, $nation, $gameStor->getAll(true));
|
$zeroPolicy = new AutorunNationPolicy($general, ($gameStor->autorun_user)['options'], null, null, $nation, $gameStor->getAll(true));
|
||||||
|
|
||||||
|
$lastSetters = [
|
||||||
|
'policy' => [
|
||||||
|
'setter' => $rawNationPolicy['valueSetter'] ?? null,
|
||||||
|
'date' => $rawNationPolicy['valueSetTime'] ?? null,
|
||||||
|
],
|
||||||
|
'nation' => [
|
||||||
|
'setter' => $rawNationPolicy['prioritySetter'] ?? null,
|
||||||
|
'date' => $rawNationPolicy['prioritySetTime'] ?? null,
|
||||||
|
],
|
||||||
|
'general' => [
|
||||||
|
'setter' => $rawNationGeneralPolicy['prioritySetter'] ?? null,
|
||||||
|
'date' => $rawNationGeneralPolicy['prioritySetTime'] ?? null,
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@@ -90,6 +105,8 @@ $zeroPolicy = new AutorunNationPolicy($general, ($gameStor->autorun_user)['optio
|
|||||||
'currentGeneralActionPriority' => $currentGeneralActionPriority,
|
'currentGeneralActionPriority' => $currentGeneralActionPriority,
|
||||||
'availableGeneralActionPriorityItems' => AutorunGeneralPolicy::$default_priority,
|
'availableGeneralActionPriorityItems' => AutorunGeneralPolicy::$default_priority,
|
||||||
|
|
||||||
|
'lastSetters' => $lastSetters,
|
||||||
|
|
||||||
'defaultStatNPCMax' => GameConst::$defaultStatNPCMax,
|
'defaultStatNPCMax' => GameConst::$defaultStatNPCMax,
|
||||||
'defaultStatMax' => GameConst::$defaultStatMax,
|
'defaultStatMax' => GameConst::$defaultStatMax,
|
||||||
]) ?>
|
]) ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user