mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 04:13:40 +01:00
Merge pull request #2533 from wolfcomp/patch-7
Some checks are pending
Some checks are pending
Add new themes and update themed path logic
This commit is contained in:
commit
5e4ad4a694
1 changed files with 3 additions and 3 deletions
|
|
@ -26,8 +26,8 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets;
|
||||||
internal class UldWidget : IDataWindowWidget
|
internal class UldWidget : IDataWindowWidget
|
||||||
{
|
{
|
||||||
// ULD styles can be hardcoded for now as they don't add new ones regularly. Can later try and find where to load these from in the game EXE.
|
// ULD styles can be hardcoded for now as they don't add new ones regularly. Can later try and find where to load these from in the game EXE.
|
||||||
private static readonly string[] ThemeDisplayNames = ["Dark", "Light", "Classic FF", "Clear Blue"];
|
private static readonly string[] ThemeDisplayNames = ["Dark", "Light", "Classic FF", "Clear Blue", "Clear White", "Clear Green"];
|
||||||
private static readonly string[] ThemeBasePaths = ["ui/uld/", "ui/uld/img01/", "ui/uld/img02/", "ui/uld/img03/"];
|
private const string UldBaseBath = "ui/uld/";
|
||||||
|
|
||||||
// 48 8D 15 ?? ?? ?? ?? is the part of the signatures that contain the string location offset
|
// 48 8D 15 ?? ?? ?? ?? is the part of the signatures that contain the string location offset
|
||||||
// 48 = 64 bit register prefix
|
// 48 = 64 bit register prefix
|
||||||
|
|
@ -263,7 +263,7 @@ internal class UldWidget : IDataWindowWidget
|
||||||
}
|
}
|
||||||
|
|
||||||
private string ToThemedPath(string path) =>
|
private string ToThemedPath(string path) =>
|
||||||
ThemeBasePaths[this.selectedTheme] + path[ThemeBasePaths[0].Length..];
|
UldBaseBath + (this.selectedTheme > 0 ? $"img{this.selectedTheme:D2}" : "") + path[UldBaseBath.Length..];
|
||||||
|
|
||||||
private void DrawTextureEntry(UldRoot.TextureEntry textureEntry, TextureManager textureManager)
|
private void DrawTextureEntry(UldRoot.TextureEntry textureEntry, TextureManager textureManager)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue