mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
Perform Replace with Select
This commit is contained in:
parent
1b76d66c7b
commit
f626b12d28
1 changed files with 1 additions and 6 deletions
|
|
@ -87,12 +87,7 @@ namespace Dalamud.Interface
|
||||||
ImGui.InputText("##searchbox", ref this.searchText, 32);
|
ImGui.InputText("##searchbox", ref this.searchText, 32);
|
||||||
|
|
||||||
var kinds = new List<string> {Loc.Localize("DalamudItemSelectAll", "All")};
|
var kinds = new List<string> {Loc.Localize("DalamudItemSelectAll", "All")};
|
||||||
kinds.AddRange(this.data.GetExcelSheet<ItemUICategory>().GetRows().Where(x => !string.IsNullOrEmpty(x.Name)).Select(x => x.Name));
|
kinds.AddRange(this.data.GetExcelSheet<ItemUICategory>().GetRows().Where(x => !string.IsNullOrEmpty(x.Name)).Select(x => x.Name.Replace("\u0002\u001F\u0001\u0003", "-")));
|
||||||
|
|
||||||
// Fix (hack) display of hyphen in UI Category names
|
|
||||||
for(int i = 0; i < kinds.Count; i++){
|
|
||||||
kinds[i] = kinds[i].Replace("\u0002\u001F\u0001\u0003", "-");
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGui.Text(Loc.Localize("DalamudItemSelectCategory", "Category: "));
|
ImGui.Text(Loc.Localize("DalamudItemSelectCategory", "Category: "));
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue