mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
[OriginShift] Fixed BTKUI icons
This commit is contained in:
parent
2375678a59
commit
153d8adfe0
4 changed files with 5 additions and 12 deletions
|
@ -18,10 +18,10 @@ namespace NAK.OriginShiftMod.Integrations
|
|||
private static void Setup_OriginShiftModCategory(Page page)
|
||||
{
|
||||
// dear category
|
||||
_ourCategory = AddMelonCategory(ref page, ModSettings.OSM_SettingsCategory);
|
||||
_ourCategory = page.AddCategory(ModSettings.OSM_SettingsCategory, ModSettings.ModName, true, true, false);
|
||||
|
||||
// the button
|
||||
_ourMainButton = _ourCategory.AddButton(string.Empty, string.Empty, string.Empty, ButtonStyle.TextOnly);
|
||||
_ourMainButton = _ourCategory.AddButton(string.Empty, string.Empty, string.Empty, ButtonStyle.TextWithIcon);
|
||||
_ourMainButton.OnPress += OnMainButtonClick;
|
||||
SetButtonState(OriginShiftManager.OriginShiftState.Inactive); // default state
|
||||
|
||||
|
|
|
@ -22,8 +22,10 @@ namespace NAK.OriginShiftMod.Integrations
|
|||
{
|
||||
QuickMenuAPI.PrepareIcon(ModSettings.ModName, "OriginShift-Icon-Active",
|
||||
GetIconStream("OriginShift-Icon-Active.png"));
|
||||
|
||||
QuickMenuAPI.PrepareIcon(ModSettings.ModName, "OriginShift-Icon-Inactive",
|
||||
GetIconStream("OriginShift-Icon-Inactive.png"));
|
||||
GetIconStream("OriginShift-Icon-Inactive.png"));
|
||||
|
||||
QuickMenuAPI.PrepareIcon(ModSettings.ModName, "OriginShift-Icon-Forced",
|
||||
GetIconStream("OriginShift-Icon-Forced.png"));
|
||||
}
|
||||
|
|
|
@ -48,12 +48,6 @@ namespace NAK.OriginShiftMod.Integrations
|
|||
return category;
|
||||
}
|
||||
|
||||
private static Category AddMelonCategory(ref Page page, string displayName, bool showHeader = true)
|
||||
{
|
||||
Category category = page.AddCategory(displayName, showHeader);
|
||||
return category;
|
||||
}
|
||||
|
||||
#endregion Melon Preference Helpers
|
||||
|
||||
#region Icon Utils
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<RootNamespace>Sprays</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="BTKUILib">
|
||||
<HintPath>..\.ManagedLibs\BTKUILib.dll</HintPath>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue