Skip to content

Commit

Permalink
update status icons
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Mar 19, 2024
1 parent f0c3793 commit 83c12b2
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 40 deletions.
1 change: 1 addition & 0 deletions src/client/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function exportData() {
a.download = "statusImageNames.json";
a.click();
URL.revokeObjectURL(url);
window.removeEventListener("beforeunload", preventClose);
}
const filterNull = ref(false);
Expand Down
4 changes: 2 additions & 2 deletions src/node/generate_images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ for (const [id, name] of Object.entries(skillImageNames)) {
imagesToProcess.add(name);
}
// 已确定的状态图标
for (const [id, name] of Object.entries(statusImageNames)) {
for (let [id, name] of Object.entries(statusImageNames)) {
if (id in result) {
continue;
}
if (name === null) {
// 还不知道它的图标是什么,先凑个数
result[Number(id)] = "UI_Gcg_Buff_Common_Special";
name = "UI_Gcg_Buff_Common_Special";
}
const filepath = allImagePaths[name];
if (filepath) {
Expand Down
44 changes: 29 additions & 15 deletions src/output/imageNames.json
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@
"111091": "UI_Gcg_Buff_Common_Shield",
"111092": "UI_Gcg_Buff_Layla_S",
"111093": "UI_Gcg_CardFace_Summon_Layla",
"111101": "UI_Gcg_Debuff_Common_Element_Ice",
"111102": "UI_Gcg_CardFace_Summon_Charlotte",
"112011": "UI_Gcg_CardFace_Summon_ShiningMiracle",
"112021": "UI_Gcg_Buff_Common_Barrier",
Expand All @@ -428,6 +429,9 @@
"112083": "UI_Gcg_Buff_Nilou_E_01",
"112091": "UI_Gcg_Buff_Element_Enchant_Water",
"112092": "UI_Gcg_Buff_Yelan_E",
"112101": "UI_Gcg_Buff_Neuvillette_S",
"112102": "UI_Gcg_Buff_Common_Special",
"112103": "UI_Gcg_Buff_Common_Atk_Up",
"113011": "UI_Gcg_Buff_Element_Enchant_Fire",
"113021": "UI_Gcg_CardFace_Summon_Guoba",
"113022": "UI_Gcg_Buff_Xiangling_E",
Expand Down Expand Up @@ -528,6 +532,9 @@
"117052": "UI_Gcg_Buff_Baizhu_E",
"117053": "UI_Gcg_Buff_Common_Shield",
"117061": "UI_Gcg_Buff_Alhatham_S",
"117071": "UI_Gcg_Buff_Momoka_S",
"117072": "UI_Gcg_Buff_Common_Shield",
"117073": "UI_Gcg_Debuff_Momoka_E",
"121011": "UI_Gcg_CardFace_Summon_MageIce",
"121012": "UI_Gcg_Buff_Common_Shield",
"121013": "UI_Gcg_Buff_Common_Shield",
Expand Down Expand Up @@ -571,13 +578,16 @@
"124032": "UI_Gcg_Buff_Common_Barrier",
"124033": "UI_Gcg_Buff_Common_Barrier",
"124041": "UI_Gcg_CardFace_Summon_FatuusSummoner",
"124042": "UI_Gcg_Buff_Common_Shield",
"124043": "UI_Gcg_Buff_Common_Special",
"124044": "UI_Gcg_Buff_Common_Debuff",
"125011": "UI_Gcg_CardFace_Summon_Jifengcanying",
"125012": "UI_Gcg_CardFace_Summon_Bingshuangcanying",
"125013": "UI_Gcg_Buff_Ningyo_Pve",
"125021": "UI_Gcg_Buff_Common_Debuff",
"125022": "UI_Gcg_Buff_Common_Special",
"125023": "UI_Gcg_Buff_Common_Special",
"125024": "UI_Gcg_Buff_Common_Special",
"125024": "UI_Gcg_Buff_Common_Atk_Up",
"125025": "UI_Gcg_Buff_Common_Special",
"126011": "UI_Gcg_Buff_Common_Barrier",
"126012": "UI_Gcg_Buff_Element_Atk_Up_Rock",
Expand All @@ -590,13 +600,13 @@
"130041": "UI_Gcg_Buff_Common_Special",
"130042": "UI_Gcg_Buff_Common_Special",
"130043": "UI_Gcg_Buff_Common_Special",
"130051": "UI_Gcg_Buff_Common_Special",
"130052": "UI_Gcg_Buff_Common_Special",
"130053": "UI_Gcg_Buff_Common_Special",
"130054": "UI_Gcg_Buff_Common_Special",
"130055": "UI_Gcg_Buff_Common_Special",
"130056": "UI_Gcg_Buff_Common_Special",
"130057": "UI_Gcg_Buff_Common_Special",
"130051": "UI_Gcg_Buff_Common_Element_Ice",
"130052": "UI_Gcg_Buff_Common_Element_Water",
"130053": "UI_Gcg_Buff_Common_Element_Fire",
"130054": "UI_Gcg_Buff_Common_Element_Electric",
"130055": "UI_Gcg_Buff_Common_Element_Wind",
"130056": "UI_Gcg_Buff_Common_Element_Rock",
"130057": "UI_Gcg_Buff_Common_Element_Grass",
"131011": "UI_Gcg_Buff_Common_Barrier",
"131031": "UI_Gcg_Buff_Element_Shield_Ice",
"131041": "UI_Gcg_Buff_Common_Barrier",
Expand Down Expand Up @@ -634,6 +644,7 @@
"134061": "UI_Gcg_Buff_Common_Element_Electric",
"134071": "UI_Gcg_Buff_Common_Barrier",
"134081": "UI_Gcg_Buff_Common_Special",
"134091": "UI_Gcg_Buff_Element_Atk_Up_Elec",
"135011": "UI_Gcg_CardFace_Summon_Wind",
"135021": "UI_Gcg_Buff_Element_Shield_Wind",
"136011": "UI_Gcg_Buff_Common_Barrier",
Expand Down Expand Up @@ -734,13 +745,16 @@
"300001": "UI_Gcg_Buff_Common_Buff",
"300002": "UI_Gcg_Buff_Common_Buff",
"300003": "UI_Gcg_Buff_Common_Debuff",
"300004": "UI_Gcg_Buff_Common_Barrier",
"301018": "UI_Gcg_Buff_Common_Debuff",
"301101": "UI_Gcg_Buff_Common_Shield",
"301102": "UI_Gcg_Buff_Common_Atk_Up",
"301103": "UI_Gcg_Buff_Common_Buff",
"301104": "UI_Gcg_Buff_Common_Buff",
"301105": "UI_Gcg_Buff_Common_Atk_Up",
"301106": "UI_Gcg_Buff_Common_Atk_Up",
"301107": "UI_Gcg_Buff_Common_Buff",
"301108": "UI_Gcg_Buff_Common_Atk_Up",
"301201": "UI_Gcg_Buff_Common_Shield",
"301203": "UI_Gcg_Buff_Common_Atk_Up",
"302021": "UI_Gcg_Buff_Common_Buff",
Expand All @@ -759,7 +773,7 @@
"303212": "UI_Gcg_CardFace_Summon_ShamanWater",
"303213": "UI_Gcg_CardFace_Summon_HiliClub",
"303214": "UI_Gcg_CardFace_Summon_HiliElectric",
"303215": "UI_Gcg_Buff_Common_Special",
"303215": "UI_Gcg_Buff_Common_Debuff",
"303216": "UI_Gcg_Debuff_Common_Element_Ice",
"303217": "UI_Gcg_Debuff_Common_Element_Water",
"303218": "UI_Gcg_Debuff_Common_Element_Fire",
Expand Down Expand Up @@ -977,23 +991,23 @@
"333014": "UI_Gcg_CardFace_Event_Food_Matsutake",
"401001": "UI_Gcg_Buff_Common_Special",
"402001": "UI_Gcg_Buff_Common_Shield",
"402002": "UI_Gcg_Buff_Common_Special",
"402003": "UI_Gcg_Buff_Common_Special",
"402002": "UI_Gcg_Buff_Common_Atk_Up",
"402003": "UI_Gcg_Buff_Common_Revive",
"402004": "UI_Gcg_Buff_Common_Revive",
"402005": "UI_Gcg_Buff_Common_Revive",
"402006": "UI_Gcg_Buff_Common_Revive",
"402007": "UI_Gcg_Buff_Common_Special",
"402008": "UI_Gcg_Buff_Common_Revive",
"402009": "UI_Gcg_Buff_Common_Revive",
"402011": "UI_Gcg_Buff_Common_Special",
"402012": "UI_Gcg_Buff_Common_Special",
"402012": "UI_Gcg_Buff_Common_Pneuma",
"402013": "UI_Gcg_Buff_Common_Special",
"402014": "UI_Gcg_Buff_Common_Special",
"402015": "UI_Gcg_Buff_Common_Special",
"402018": "UI_Gcg_Buff_Common_Special",
"402018": "UI_Gcg_Buff_Common_Ousia",
"402019": "UI_Gcg_Buff_Common_Special",
"402020": "UI_Gcg_Buff_Common_Special",
"402021": "UI_Gcg_Buff_Common_Special",
"402021": "UI_Gcg_Buff_Common_Ousia",
"402022": "UI_Gcg_Buff_Common_Special",
"402023": "UI_Gcg_Buff_Common_Special",
"403002": "UI_Gcg_Buff_Common_Buff",
Expand All @@ -1008,7 +1022,7 @@
"403013": "UI_Gcg_Debuff_Common_Element_Wind",
"403014": "UI_Gcg_Debuff_Common_Element_Rock",
"403015": "UI_Gcg_Debuff_Common_Element_Grass",
"403016": "UI_Gcg_Buff_Common_Special",
"403016": "UI_Gcg_Buff_Common_Debuff",
"403017": "UI_Gcg_Buff_Common_Special",
"403018": "UI_Gcg_Buff_Common_Shield",
"403019": "UI_Gcg_Buff_Common_Special",
Expand Down
60 changes: 37 additions & 23 deletions src/output/statusImageNames.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"111082": "UI_Gcg_Buff_Qiqi_E",
"111091": "UI_Gcg_Buff_Common_Shield",
"111092": "UI_Gcg_Buff_Layla_S",
"111101": "UI_Gcg_Debuff_Common_Element_Ice",
"112021": "UI_Gcg_Buff_Common_Barrier",
"112022": "UI_Gcg_Buff_Xingqiu_E",
"112023": "UI_Gcg_Buff_Common_Barrier",
Expand All @@ -36,6 +37,9 @@
"112083": "UI_Gcg_Buff_Nilou_E_01",
"112091": "UI_Gcg_Buff_Element_Enchant_Water",
"112092": "UI_Gcg_Buff_Yelan_E",
"112101": "UI_Gcg_Buff_Neuvillette_S",
"112102": "UI_Gcg_Buff_Common_Special",
"112103": "UI_Gcg_Buff_Common_Atk_Up",
"113011": "UI_Gcg_Buff_Element_Enchant_Fire",
"113022": "UI_Gcg_Buff_Xiangling_E",
"113031": "UI_Gcg_Buff_Bennett_E",
Expand Down Expand Up @@ -107,6 +111,9 @@
"117052": "UI_Gcg_Buff_Baizhu_E",
"117053": "UI_Gcg_Buff_Common_Shield",
"117061": "UI_Gcg_Buff_Alhatham_S",
"117071": "UI_Gcg_Buff_Momoka_S",
"117072": "UI_Gcg_Buff_Common_Shield",
"117073": "UI_Gcg_Debuff_Momoka_E",
"121012": "UI_Gcg_Buff_Common_Shield",
"121013": "UI_Gcg_Buff_Common_Shield",
"121021": "UI_Gcg_Buff_LaSignora_S",
Expand Down Expand Up @@ -139,11 +146,14 @@
"124024": null,
"124032": "UI_Gcg_Buff_Common_Barrier",
"124033": "UI_Gcg_Buff_Common_Barrier",
"124042": "UI_Gcg_Buff_Common_Shield",
"124043": "UI_Gcg_Buff_Common_Special",
"124044": "UI_Gcg_Buff_Common_Debuff",
"125013": "UI_Gcg_Buff_Ningyo_Pve",
"125021": "UI_Gcg_Buff_Common_Debuff",
"125022": "UI_Gcg_Buff_Common_Special",
"125023": "UI_Gcg_Buff_Common_Special",
"125024": null,
"125024": "UI_Gcg_Buff_Common_Atk_Up",
"125025": null,
"126011": "UI_Gcg_Buff_Common_Barrier",
"126012": "UI_Gcg_Buff_Element_Atk_Up_Rock",
Expand All @@ -154,30 +164,30 @@
"130031": "UI_Gcg_Buff_SamuraiRonin_S",
"130032": "UI_Gcg_Buff_SamuraiRonin_S",
"130041": null,
"130042": null,
"130043": null,
"130051": null,
"130052": null,
"130053": null,
"130054": null,
"130055": null,
"130056": null,
"130057": null,
"130042": "UI_Gcg_Buff_Common_Special",
"130043": "UI_Gcg_Buff_Common_Special",
"130051": "UI_Gcg_Buff_Common_Element_Ice",
"130052": "UI_Gcg_Buff_Common_Element_Water",
"130053": "UI_Gcg_Buff_Common_Element_Fire",
"130054": "UI_Gcg_Buff_Common_Element_Electric",
"130055": "UI_Gcg_Buff_Common_Element_Wind",
"130056": "UI_Gcg_Buff_Common_Element_Rock",
"130057": "UI_Gcg_Buff_Common_Element_Grass",
"131011": "UI_Gcg_Buff_Common_Barrier",
"131031": "UI_Gcg_Buff_Element_Shield_Ice",
"131041": "UI_Gcg_Buff_Common_Barrier",
"131061": null,
"131062": null,
"131063": null,
"131062": "UI_Gcg_Buff_Common_Special",
"131063": "UI_Gcg_Buff_Common_Special",
"131071": "UI_Gcg_Buff_Common_Element_Ice",
"132011": "UI_Gcg_Buff_Common_Daze",
"132012": "UI_Gcg_Buff_Element_Shield_Water",
"132031": "UI_Gcg_Buff_Common_Barrier",
"132041": "UI_Gcg_Buff_Common_Element_Water",
"132051": "UI_Gcg_Buff_Common_Atk_Up",
"132061": null,
"132062": null,
"132063": null,
"132062": "UI_Gcg_Buff_Common_Special",
"132063": "UI_Gcg_Buff_Common_Special",
"132071": "UI_Gcg_Buff_Common_Daze",
"133011": "UI_Gcg_Buff_Element_Shield_Fire",
"133021": "UI_Gcg_Buff_Element_Enchant_Fire",
Expand All @@ -186,9 +196,9 @@
"133033": "UI_Gcg_Buff_SamuraiRonin_S",
"133034": "UI_Gcg_Buff_SamuraiRonin_S",
"133061": "UI_Gcg_Buff_Common_Barrier",
"133071": null,
"133071": "UI_Gcg_Buff_Common_Special",
"133081": null,
"133082": null,
"133082": "UI_Gcg_Buff_Common_Special",
"134011": "UI_Gcg_Buff_Element_Enchant_Elec",
"134012": "UI_Gcg_Buff_Common_Heal",
"134013": "UI_Gcg_Buff_SamuraiRonin_S",
Expand All @@ -198,6 +208,7 @@
"134061": "UI_Gcg_Buff_Common_Element_Electric",
"134071": "UI_Gcg_Buff_Common_Barrier",
"134081": null,
"134091": "UI_Gcg_Buff_Element_Atk_Up_Elec",
"135021": "UI_Gcg_Buff_Element_Shield_Wind",
"136011": "UI_Gcg_Buff_Common_Barrier",
"136021": "UI_Gcg_Buff_Common_Dot",
Expand All @@ -216,13 +227,16 @@
"300001": "UI_Gcg_Buff_Common_Buff",
"300002": "UI_Gcg_Buff_Common_Buff",
"300003": "UI_Gcg_Buff_Common_Debuff",
"300004": "UI_Gcg_Buff_Common_Barrier",
"301018": "UI_Gcg_Buff_Common_Debuff",
"301101": "UI_Gcg_Buff_Common_Shield",
"301102": "UI_Gcg_Buff_Common_Atk_Up",
"301103": "UI_Gcg_Buff_Common_Buff",
"301104": "UI_Gcg_Buff_Common_Buff",
"301105": "UI_Gcg_Buff_Common_Atk_Up",
"301106": "UI_Gcg_Buff_Common_Atk_Up",
"301107": "UI_Gcg_Buff_Common_Buff",
"301108": "UI_Gcg_Buff_Common_Atk_Up",
"301201": "UI_Gcg_Buff_Common_Shield",
"301203": "UI_Gcg_Buff_Common_Atk_Up",
"302021": "UI_Gcg_Buff_Common_Buff",
Expand All @@ -237,7 +251,7 @@
"303205": "UI_Gcg_Buff_Common_Debuff",
"303206": "UI_Gcg_Buff_Common_Special",
"303207": "UI_Gcg_Buff_Common_Special",
"303215": null,
"303215": "UI_Gcg_Buff_Common_Debuff",
"303216": "UI_Gcg_Debuff_Common_Element_Ice",
"303217": "UI_Gcg_Debuff_Common_Element_Water",
"303218": "UI_Gcg_Debuff_Common_Element_Fire",
Expand Down Expand Up @@ -266,23 +280,23 @@
"303312": "UI_Gcg_Buff_Common_Heal",
"401001": null,
"402001": "UI_Gcg_Buff_Common_Shield",
"402002": null,
"402003": null,
"402002": "UI_Gcg_Buff_Common_Atk_Up",
"402003": "UI_Gcg_Buff_Common_Revive",
"402004": "UI_Gcg_Buff_Common_Revive",
"402005": "UI_Gcg_Buff_Common_Revive",
"402006": "UI_Gcg_Buff_Common_Revive",
"402007": null,
"402008": "UI_Gcg_Buff_Common_Revive",
"402009": "UI_Gcg_Buff_Common_Revive",
"402011": null,
"402012": null,
"402012": "UI_Gcg_Buff_Common_Pneuma",
"402013": null,
"402014": null,
"402015": null,
"402018": null,
"402018": "UI_Gcg_Buff_Common_Ousia",
"402019": null,
"402020": null,
"402021": null,
"402021": "UI_Gcg_Buff_Common_Ousia",
"402022": null,
"402023": null,
"403002": "UI_Gcg_Buff_Common_Buff",
Expand All @@ -297,7 +311,7 @@
"403013": "UI_Gcg_Debuff_Common_Element_Wind",
"403014": "UI_Gcg_Debuff_Common_Element_Rock",
"403015": "UI_Gcg_Debuff_Common_Element_Grass",
"403016": null,
"403016": "UI_Gcg_Buff_Common_Debuff",
"403017": null,
"403018": "UI_Gcg_Buff_Common_Shield",
"403019": null,
Expand Down

0 comments on commit 83c12b2

Please sign in to comment.