사령부 UI 간결화, (구현은 아직), 일부 변수명 변경
This commit is contained in:
1 parent
1d3e29cea2
commit
f6333ba304
17 files changed
+265
-286
No files matched your search
+17
-1
@@ -925,7 +925,23 @@ function getItemCost($weap) : int {
|
||||
return $weapcost;
|
||||
}
|
||||
|
||||
|
||||
function getNameColor(int $npcType):?string{
|
||||
if($npcType >= 2){
|
||||
return 'cyan';
|
||||
}
|
||||
if($npcType == 1){
|
||||
return 'skyblue';
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function getColoredName(string $name, int $npcType):string{
|
||||
$color = nameColor($npcType);
|
||||
if($color === null){
|
||||
return $name;
|
||||
}
|
||||
//TODO: font 폐기.
|
||||
return "<font color='{$color}'>{$name}</font>";
|
||||
}
|
||||
|
||||
function ConvertLog(?string $str, $type=1) : string {
|
||||
if(!$str){
|
||||
|
||||
Reference in new issue
Block a user