From 7d6d8fb20127b917010486549fdac27e998b78f0 Mon Sep 17 00:00:00 2001 From: Exitare Date: Thu, 16 Jan 2025 08:46:04 -0800 Subject: [PATCH] Update sidebar & add missing translation --- apps/keira/src/assets/i18n/de.json | 10 +++++++++- apps/keira/src/assets/i18n/el.json | 10 +++++++++- apps/keira/src/assets/i18n/en.json | 7 ++----- apps/keira/src/assets/i18n/es.json | 10 +++++++++- apps/keira/src/assets/i18n/fr.json | 10 +++++++++- apps/keira/src/assets/i18n/it.json | 10 +++++++++- apps/keira/src/assets/i18n/ko.json | 10 +++++++++- apps/keira/src/assets/i18n/nl.json | 10 +++++++++- apps/keira/src/assets/i18n/pl.json | 10 +++++++++- apps/keira/src/assets/i18n/pt.json | 10 +++++++++- apps/keira/src/assets/i18n/ro.json | 10 +++++++++- apps/keira/src/assets/i18n/ru.json | 10 +++++++++- apps/keira/src/assets/i18n/sk.json | 10 +++++++++- apps/keira/src/assets/i18n/sv.json | 10 +++++++++- apps/keira/src/assets/i18n/zh.json | 10 +++++++++- .../src/edit-game-tele/game-tele.component.html | 2 +- .../select-game-tele/select-game-tele.component.html | 3 +++ .../src/select-game-tele/select-game-tele.component.ts | 2 ++ .../main-window/src/sidebar/sidebar.component.html | 2 +- .../acore-world-model/src/entities/game-tele.type.ts | 2 +- 20 files changed, 136 insertions(+), 22 deletions(-) diff --git a/apps/keira/src/assets/i18n/de.json b/apps/keira/src/assets/i18n/de.json index 825b309c5e..136b77ac5e 100644 --- a/apps/keira/src/assets/i18n/de.json +++ b/apps/keira/src/assets/i18n/de.json @@ -173,6 +173,11 @@ "TITLE": "Zauber-DBC-Overrides", "SEARCH_SPELL": "Zauber suchen", "SPELL_DBC_EDITOR": "Zauber-DBC-Editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/el.json b/apps/keira/src/assets/i18n/el.json index 15b30545d2..7810b1339e 100644 --- a/apps/keira/src/assets/i18n/el.json +++ b/apps/keira/src/assets/i18n/el.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Search Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/en.json b/apps/keira/src/assets/i18n/en.json index f626b7f8c2..1a11911f4b 100644 --- a/apps/keira/src/assets/i18n/en.json +++ b/apps/keira/src/assets/i18n/en.json @@ -177,7 +177,7 @@ "GAME_TELE": { "TITLE": "Game Teleport", "SEARCH_GAME_TELE": "Search Teleport", - "GAME_TELE_EDITOR": "Game Tele Editor" + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -869,9 +869,6 @@ } }, "GAME_TELE": { - "BASE": { - "ID": "The unique ID for the teleport.", - "MAP_ID": "The ID of the map that the teleport leads to." - } + "EDITOR": "Teleport Editor" } } diff --git a/apps/keira/src/assets/i18n/es.json b/apps/keira/src/assets/i18n/es.json index 6e9ae68664..178cdc04e0 100644 --- a/apps/keira/src/assets/i18n/es.json +++ b/apps/keira/src/assets/i18n/es.json @@ -173,6 +173,11 @@ "TITLE": "Anulaciones de Hechizos (Spell DBC)", "SEARCH_SPELL": "Buscar Hechizos", "SPELL_DBC_EDITOR": "Editor de Hechizos (Spell DBC)" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Desconocido. Sólo se usa el valor 50 para algunos hechizos.", "REQUIRED_AURA_VISION": "Desconocido. Sólo 16 hechizos usan otro valor como 0. Podría ser usado para efectos visuales." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/fr.json b/apps/keira/src/assets/i18n/fr.json index b67b544b12..6bdd1c9752 100644 --- a/apps/keira/src/assets/i18n/fr.json +++ b/apps/keira/src/assets/i18n/fr.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Search Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/it.json b/apps/keira/src/assets/i18n/it.json index 6b895d1c1f..a67dc60dba 100644 --- a/apps/keira/src/assets/i18n/it.json +++ b/apps/keira/src/assets/i18n/it.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Search Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/ko.json b/apps/keira/src/assets/i18n/ko.json index 15b30545d2..7810b1339e 100644 --- a/apps/keira/src/assets/i18n/ko.json +++ b/apps/keira/src/assets/i18n/ko.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Search Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/nl.json b/apps/keira/src/assets/i18n/nl.json index 15b30545d2..7810b1339e 100644 --- a/apps/keira/src/assets/i18n/nl.json +++ b/apps/keira/src/assets/i18n/nl.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Search Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/pl.json b/apps/keira/src/assets/i18n/pl.json index 15b30545d2..7810b1339e 100644 --- a/apps/keira/src/assets/i18n/pl.json +++ b/apps/keira/src/assets/i18n/pl.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Search Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/pt.json b/apps/keira/src/assets/i18n/pt.json index 901b8fbb53..2887f516f7 100644 --- a/apps/keira/src/assets/i18n/pt.json +++ b/apps/keira/src/assets/i18n/pt.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Procurar Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Desconhecido. O único valor usado é 50 para alguns spells.", "REQUIRED_AURA_VISION": "Desconhecido. Somente 16 Spells usam um valor diferente de 0. Talvez é usado para efeitos visuais." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/ro.json b/apps/keira/src/assets/i18n/ro.json index 15b30545d2..7810b1339e 100644 --- a/apps/keira/src/assets/i18n/ro.json +++ b/apps/keira/src/assets/i18n/ro.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Search Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/ru.json b/apps/keira/src/assets/i18n/ru.json index 8b88571dc7..1965f570bf 100644 --- a/apps/keira/src/assets/i18n/ru.json +++ b/apps/keira/src/assets/i18n/ru.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Искать заклинание", "SPELL_DBC_EDITOR": "Редактор Spell DBC" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/sk.json b/apps/keira/src/assets/i18n/sk.json index 15b30545d2..7810b1339e 100644 --- a/apps/keira/src/assets/i18n/sk.json +++ b/apps/keira/src/assets/i18n/sk.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Search Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/sv.json b/apps/keira/src/assets/i18n/sv.json index fa52bd4810..1bda7a780f 100644 --- a/apps/keira/src/assets/i18n/sv.json +++ b/apps/keira/src/assets/i18n/sv.json @@ -173,6 +173,11 @@ "TITLE": "Spell DBC overrides", "SEARCH_SPELL": "Search Spell", "SPELL_DBC_EDITOR": "Spell DBC editor" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.", "REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects." } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/apps/keira/src/assets/i18n/zh.json b/apps/keira/src/assets/i18n/zh.json index ef8c7bee0b..59f4a26e45 100644 --- a/apps/keira/src/assets/i18n/zh.json +++ b/apps/keira/src/assets/i18n/zh.json @@ -173,6 +173,11 @@ "TITLE": "技能DBC修改", "SEARCH_SPELL": "搜索技能", "SPELL_DBC_EDITOR": "技能DBC编辑" + }, + "GAME_TELE": { + "TITLE": "Game Teleport", + "SEARCH_GAME_TELE": "Search Teleport", + "SELECT_GAME_TELE": "Game Tele Editor" } }, "DASHBOARD": { @@ -862,5 +867,8 @@ "SPELL_PRIORITY": "未知...某些法术的唯一使用的值是50。", "REQUIRED_AURA_VISION": "未知...只有16个法术使用,其他均为0,可以用于视觉效果。" } + }, + "GAME_TELE": { + "EDITOR": "Teleport Editor" } -} \ No newline at end of file +} diff --git a/libs/features/game-tele/src/edit-game-tele/game-tele.component.html b/libs/features/game-tele/src/edit-game-tele/game-tele.component.html index 9bfbfdf2bb..f0c88fd222 100644 --- a/libs/features/game-tele/src/edit-game-tele/game-tele.component.html +++ b/libs/features/game-tele/src/edit-game-tele/game-tele.component.html @@ -10,7 +10,7 @@
- +
diff --git a/libs/features/game-tele/src/select-game-tele/select-game-tele.component.html b/libs/features/game-tele/src/select-game-tele/select-game-tele.component.html index ab5f1c56ef..edd0687d15 100644 --- a/libs/features/game-tele/src/select-game-tele/select-game-tele.component.html +++ b/libs/features/game-tele/src/select-game-tele/select-game-tele.component.html @@ -22,6 +22,9 @@
+
+ +
diff --git a/libs/features/game-tele/src/select-game-tele/select-game-tele.component.ts b/libs/features/game-tele/src/select-game-tele/select-game-tele.component.ts index ba9c3d6967..a216d3163f 100644 --- a/libs/features/game-tele/src/select-game-tele/select-game-tele.component.ts +++ b/libs/features/game-tele/src/select-game-tele/select-game-tele.component.ts @@ -8,6 +8,7 @@ import { GameTeleHandlerService } from '../game-tele-handler.service'; import { SelectGameTeleService } from './select-game-tele.service'; import { WIKI_BASE_URL } from '@keira/shared/constants'; import { CreateComponent, HighlightjsWrapperComponent, TopBarComponent } from '@keira/shared/base-editor-components'; +import { MapSelectorBtnComponent } from '@keira/shared/selectors'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -21,6 +22,7 @@ import { CreateComponent, HighlightjsWrapperComponent, TopBarComponent } from '@ CreateComponent, HighlightjsWrapperComponent, TopBarComponent, + MapSelectorBtnComponent, ], }) export class SelectGameTeleComponent extends SelectComponent { diff --git a/libs/main/main-window/src/sidebar/sidebar.component.html b/libs/main/main-window/src/sidebar/sidebar.component.html index 2626f47f88..fd05bdf0db 100644 --- a/libs/main/main-window/src/sidebar/sidebar.component.html +++ b/libs/main/main-window/src/sidebar/sidebar.component.html @@ -744,7 +744,7 @@ @if (gameTeleHandlerService.selected) {
  • - {{ 'SIDEBAR.GAME_TELE.GAME_TELE_EDITOR' | translate }} + {{ 'SIDEBAR.GAME_TELE.SELECT_GAME_TELE' | translate }} @if (gameTeleHandlerService.isGameTeleUnsaved) { } diff --git a/libs/shared/acore-world-model/src/entities/game-tele.type.ts b/libs/shared/acore-world-model/src/entities/game-tele.type.ts index ef320f72cd..748ae75691 100644 --- a/libs/shared/acore-world-model/src/entities/game-tele.type.ts +++ b/libs/shared/acore-world-model/src/entities/game-tele.type.ts @@ -4,7 +4,7 @@ export const GAME_TELE_CUSTOM_STARTING_ID = 10_000; export const GAME_TELE_TABLE = 'game_tele'; export const GAME_TELE_ID = 'id'; export const GAME_TELE_NAME = 'name'; -export const GAME_TELE_SEARCH_FIELDS = ['id', 'name']; +export const GAME_TELE_SEARCH_FIELDS = ['id', 'name', 'map']; export class GameTele extends TableRow { id: number = 0;