Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
Font ImGui fix, song existence fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slotthhy committed Mar 18, 2024
1 parent 16eb61e commit 64c0804
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Orchestrion/Orchestrion.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<DalamudLibPath>$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
<PluginVersion>2.2.0.3</PluginVersion>
<PluginVersion>2.2.0.4</PluginVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Orchestrion/OrchestrionPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public OrchestrionPlugin(DalamudPluginInterface pi)
DalamudApi.PluginLog.Debug(CnFont.LoadException.StackTrace);
}

LargeFont = atlas.NewGameFontHandle(new GameFontStyle(GameFontFamily.Axis, 24 * ImGuiHelpers.GlobalScale));
LargeFont = atlas.NewGameFontHandle(new GameFontStyle(GameFontFamily.Axis, 24));
}

public static void LanguageChanged(string code)
Expand Down
5 changes: 3 additions & 2 deletions Orchestrion/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ public static bool SearchMatches(string searchText, Song song)
matchesSearch |= song.Id.ToString().Contains(searchText);

// Localized addtl info check
var strings = song.Strings["en"];
song.Strings.TryGetValue(lang, out strings);
if (!song.Strings.TryGetValue(lang, out var strings)) {
strings = song.Strings["en"];
}
matchesSearch |= strings.Locations.ToLower().Contains(searchText.ToLower());
matchesSearch |= strings.AdditionalInfo.ToLower().Contains(searchText.ToLower());
}
Expand Down

0 comments on commit 64c0804

Please sign in to comment.