Skip to content

Commit

Permalink
chore(Cleanup): Remove filter tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruptein authored Oct 30, 2024
1 parent 7917950 commit 7ee331c
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 46 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ tech changes will usually be stripped from release notes for the public
- Labels:
- As mentioned in the last 2 releases these were going to be removed
- I wasn't happy with the current implementation and they were causing more confusion than they were useful
- This also removes the Filter Tool

### Fixed

Expand Down
1 change: 0 additions & 1 deletion client/src/game/models/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export enum ToolName {
Ruler = "Ruler",
Ping = "Ping",
Map = "Map",
Filter = "Filter",
Vision = "Vision",
Spell = "Spell",
Dice = "Dice",
Expand Down
4 changes: 0 additions & 4 deletions client/src/game/tools/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { ITool, ToolFeatures } from "../models/tools";
import { SelectFeatures } from "./models/select";
import { diceTool } from "./variants/dice";
import { drawTool } from "./variants/draw";
import { filterTool } from "./variants/filter";
import { mapTool } from "./variants/map";
import { noteTool } from "./variants/note";
import { panTool } from "./variants/pan";
Expand All @@ -27,7 +26,6 @@ export const toolMap: Record<ToolName, ITool> = {
[ToolName.Ruler]: rulerTool,
[ToolName.Ping]: pingTool,
[ToolName.Map]: mapTool,
[ToolName.Filter]: filterTool,
[ToolName.Vision]: visionTool,
[ToolName.Spell]: spellTool,
[ToolName.Dice]: diceTool,
Expand All @@ -42,7 +40,6 @@ const buildTools: [ToolName, ToolFeatures][] = [
[ToolName.Draw, {}],
[ToolName.Ruler, {}],
[ToolName.Map, {}],
[ToolName.Filter, {}],
[ToolName.Vision, {}],
];
const playTools: [ToolName, ToolFeatures][] = [
Expand All @@ -51,7 +48,6 @@ const playTools: [ToolName, ToolFeatures][] = [
[ToolName.Spell, {}],
[ToolName.Ruler, {}],
[ToolName.Ping, {}],
[ToolName.Filter, {}],
[ToolName.Vision, {}],
[ToolName.Dice, {}],
];
Expand Down
16 changes: 0 additions & 16 deletions client/src/game/tools/variants/filter.ts

This file was deleted.

1 change: 0 additions & 1 deletion client/src/game/ui/tools/Tools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ function toggleFakePlayer(): void {
<DrawTool v-lazy-show="activeTool === ToolName.Draw" />
<RulerTool v-lazy-show="activeTool === ToolName.Ruler" />
<MapTool v-lazy-show="activeTool === ToolName.Map" />
<FilterTool v-lazy-show="activeTool === ToolName.Filter" />
<VisionTool v-lazy-show="activeTool === ToolName.Vision" />
<DiceTool v-lazy-show="roomState.reactive.enableDice && activeTool === ToolName.Dice" />
</div>
Expand Down
3 changes: 0 additions & 3 deletions client/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,6 @@
"erase": "radieren",
"cone": "Kegel"
},
"FilterTool": {
"no_category": "keine Kategorie"
},
"MapTool": {
"drag_to_resize": "Markiere den Bereich, dessen Größe Du verändern willst",
"select_shape_msg": "Bitte wähle zuerst eine Form aus.",
Expand Down
3 changes: 0 additions & 3 deletions client/src/locales/dk.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@
"reveal": "afslør",
"hide": "gem"
},
"FilterTool": {
"no_category": "ingen kategori"
},
"MapTool": {
"drag_to_resize": "Træk et område du ænsker at ændrer størelsen på",
"select_shape_msg": "Vælg venligst en form først.",
Expand Down
3 changes: 0 additions & 3 deletions client/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,6 @@
"logic-category": "Logic settings",
"door": "Add simple door logic"
},
"FilterTool": {
"no_category": "no category"
},
"MapTool": {
"drag_to_resize": "Drag an area you wish to resize",
"select_shape_msg": "Please select a shape first.",
Expand Down
3 changes: 0 additions & 3 deletions client/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,6 @@
"reveal": "revelar",
"hide": "esconder"
},
"FilterTool": {
"no_category": "ninguna categoría"
},
"MapTool": {
"drag_to_resize": "Dibuje un area que quiera redimensionar",
"select_shape_msg": "Por favor seleccione una figura primero.",
Expand Down
3 changes: 0 additions & 3 deletions client/src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@
"reveal": "rivela",
"hide": "nascondi"
},
"FilterTool": {
"no_category": "nessuna categoria"
},
"MapTool": {
"drag_to_resize": "Trascina l'area che vuoi ridimensionare",
"select_shape_msg": "Scegli prima la forma, per favore.",
Expand Down
3 changes: 0 additions & 3 deletions client/src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@
"reveal": "показывать",
"hide": "скрывать"
},
"FilterTool": {
"no_category": "без категории"
},
"MapTool": {
"drag_to_resize": "Потяните область, размер которой хотите изменить",
"select_shape_msg": "Установить целевые клетки сетки",
Expand Down
3 changes: 0 additions & 3 deletions client/src/locales/tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,6 @@
"reveal": "揭示",
"hide": "隱藏"
},
"FilterTool": {
"no_category": "無分類"
},
"MapTool": {
"drag_to_resize": "拖動出你想要作為縮放基準的區域",
"select_shape_msg": "請先選擇一個圖形。",
Expand Down
3 changes: 0 additions & 3 deletions client/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,6 @@
"cone": "锥形",
"text": "文本"
},
"FilterTool": {
"no_category": "无分类"
},
"MapTool": {
"drag_to_resize": "拖动出你想要作为缩放基准的区域",
"select_shape_msg": "请先选择一个图形。",
Expand Down

0 comments on commit 7ee331c

Please sign in to comment.