feat(WIP): processing을 vue로 전환
This commit is contained in:
@@ -478,6 +478,9 @@ abstract class BaseCommand{
|
||||
public function getJSPlugins():array {
|
||||
return [];
|
||||
}
|
||||
public function exportJSVars():array {
|
||||
return [];
|
||||
}
|
||||
public function getCSSFiles():array {
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ use \sammo\GameUnitConst;
|
||||
use \sammo\LastTurn;
|
||||
use \sammo\Command;
|
||||
|
||||
use function sammo\getMapTheme;
|
||||
use function \sammo\printCitiesBasedOnDistance;
|
||||
use function sammo\tryUniqueItemLottery;
|
||||
|
||||
@@ -176,6 +177,15 @@ class che_강행 extends Command\GeneralCommand
|
||||
];
|
||||
}
|
||||
|
||||
public function exportJSVars(): array
|
||||
{
|
||||
return [
|
||||
'cities' => \sammo\JSOptionsForCities(),
|
||||
'mapTheme' => getMapTheme(),
|
||||
'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 3),
|
||||
];
|
||||
}
|
||||
|
||||
public function getForm(): string
|
||||
{
|
||||
$currentCityID = $this->generalObj->getCityID();
|
||||
@@ -187,7 +197,7 @@ class che_강행 extends Command\GeneralCommand
|
||||
선택된 도시로 강행합니다.<br>
|
||||
최대 3칸내 도시로만 강행이 가능합니다.<br>
|
||||
목록을 선택하거나 도시를 클릭하세요.<br>
|
||||
<?= $currentCityName ?> => <select class='formInput' name="destCityID" id="destCityID" size='1' style='color:white;background-color:black;'><br>
|
||||
<?= $currentCityName ?> => <div id="setDestCityIDForm"></div><br>
|
||||
<?= \sammo\optionsForCities() ?><br>
|
||||
</select> <input type=button id="commonSubmit" value="<?= $this->getName() ?>"><br>
|
||||
<br>
|
||||
|
||||
@@ -184,6 +184,13 @@ class che_이동 extends Command\GeneralCommand
|
||||
];
|
||||
}
|
||||
|
||||
public function exportJSVars(): array
|
||||
{
|
||||
return [
|
||||
'cities' => \sammo\JSOptionsForCities()
|
||||
];
|
||||
}
|
||||
|
||||
public function getForm(): string
|
||||
{
|
||||
$currentCityID = $this->generalObj->getCityID();
|
||||
|
||||
Reference in New Issue
Block a user