From c20ca612905c10fe4b88ea20f5ec472e8ea4d286 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 13 Dec 2022 16:41:51 +0100 Subject: [PATCH] Translation file --- assets/Data/eng.json | 14 ++++++++++++++ assets/Data/eng.json.meta | 11 +++++++++++ .../Scripts/Game/UI/LevelUpWindow/LevelUpSkill.ts | 2 +- assets/Scripts/Game/Upgrades/UpgradeType.ts | 12 ++++++------ 4 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 assets/Data/eng.json create mode 100644 assets/Data/eng.json.meta diff --git a/assets/Data/eng.json b/assets/Data/eng.json new file mode 100644 index 0000000..cc35c2e --- /dev/null +++ b/assets/Data/eng.json @@ -0,0 +1,14 @@ +{ + "WEAPON_LENGTH_TITLE": "", + "WEAPON_LENGTH_DESC": "", + "WEAPON_DAMAGE_TITLE": "", + "WEAPON_DAMAGE_DESC": "", + "HORIZONTAL_PROJECTILE_TITLE": "", + "HORIZONTAL_PROJECTILE_DESC": "", + "DIAGONAL_PROJECTILE_TITLE": "", + "DIAGONAL_PROJECTILE_DESC": "", + "HALO_PROJECTILE_TITLE": "", + "HALO_PROJECTILE_DESC": "", + "REGENERATION_TITLE": "", + "REGENERATION_DESC": "" +} \ No newline at end of file diff --git a/assets/Data/eng.json.meta b/assets/Data/eng.json.meta new file mode 100644 index 0000000..48776ec --- /dev/null +++ b/assets/Data/eng.json.meta @@ -0,0 +1,11 @@ +{ + "ver": "1.0.0", + "importer": "json", + "imported": true, + "uuid": "7d43843c-0765-427c-9161-2fd9030369c8", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": {} +} diff --git a/assets/Scripts/Game/UI/LevelUpWindow/LevelUpSkill.ts b/assets/Scripts/Game/UI/LevelUpWindow/LevelUpSkill.ts index f7758c5..214517f 100644 --- a/assets/Scripts/Game/UI/LevelUpWindow/LevelUpSkill.ts +++ b/assets/Scripts/Game/UI/LevelUpWindow/LevelUpSkill.ts @@ -12,7 +12,7 @@ export class LevelUpSkill extends Component { public init(skillType: UpgradeType): void { this.skillType = skillType; - this.skillTitle.string = `Skill ${skillType}`; + this.skillTitle.string = `${skillType}`; this.node.on(NodeEventType.MOUSE_DOWN, this.chooseSkill, this); } diff --git a/assets/Scripts/Game/Upgrades/UpgradeType.ts b/assets/Scripts/Game/Upgrades/UpgradeType.ts index afd09cc..1a3e880 100644 --- a/assets/Scripts/Game/Upgrades/UpgradeType.ts +++ b/assets/Scripts/Game/Upgrades/UpgradeType.ts @@ -1,10 +1,10 @@ export enum UpgradeType { - WeaponLength, - WeaponDamage, - HorizontalProjectile, - DiagonalProjectile, - HaloProjectlie, - Regeneration + WeaponLength = "WEAPON_LENGTH", + WeaponDamage = "WEAPON_DAMAGE", + HorizontalProjectile = "HORIZONTAL_PROJECTILE", + DiagonalProjectile = "DIAGONAL_PROJECTILE", + HaloProjectlie = "HALO_PROJECTILE", + Regeneration = "REGENERATION" } export enum MetaUpgradeType {