Skip to content

Commit

Permalink
[PUSH] v2.0.2.3
Browse files Browse the repository at this point in the history
Do not believe Ondore's lies!
  • Loading branch information
MKhayle committed Jan 5, 2025
1 parent 832effc commit 4141f6b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 22 deletions.
6 changes: 3 additions & 3 deletions XIVComboExpanded/Interface/Changelog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public static Dictionary<string, string[]> GetChangelog()
return new Dictionary<string, string[]>()
{
{
"v2.0.2.2",
"v2.0.2.3",
[
"Fixed the theme failing imgui assertion when clicked repeatedly and crashing the game.",
"There's never been a 2.0.2.1",
"Fixed the theme failing imgui assertion when clicked repeatedly and crashing the game.",
"There's never been a 2.0.2.1 nor a 2.0.2.2",
"Do not believe Ondore's lies!"
]
},
Expand Down
23 changes: 13 additions & 10 deletions XIVComboExpanded/Interface/ConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,27 @@ namespace XIVComboExpandedPlugin.Interface;
/// </summary>
public class ConfigWindow : Window
{
bool themePushed = false;
StyleModel pluginStyle = StyleModel.Deserialize("DS1H4sIAAAAAAAACq1YWXPTMBD+K4yfO4xlWT76RhugzFCmQ8twvCmJmpi4cXCccHT631lLWl1xStqQF1vSfp/20nqV+4hHp+RlfBKNo9P76Et0WvSDr/L5cBJNYDXuZ6ZaTGixWIvFLxmI3cLqSTTT03MtW+kxH+uJ7xqcajCVeyz0RK2l7gJNUim1DLBqtglmEzm72lGyn/0By3KDFjaSL2st0qGVG6nTSbTVjD/185dW7bchZo71fwa341xPU8/aSQN23kc34len14lel89v+vlZPkG+FxxVaz6uxXR3dwmQTwP4XC2nzc+zmREmZUJYVuQaQ4oioYxqpF00BOfzqp46eGOUhijtlJFXzWqzcmULFC5QutDiZQryZ007Fa0Rz7M0j1mpMRlLyzjRuJShnkYxBb6ec7DvIO3etPxOuJ5gSZkSgjoS2I6UGUFXmFWzoya4aLaiddyfgdKgHUbBDiWPHYY8ryZdtbUniMoNE81ClTZov1m0mVB1tWvN8+CBDkTanJvkSNwY2MWQ5bypa75aOz55KtGlWG7OeOtGJzVxQVjqAK4nLWw69iCPBd/Iv237AjTsNBzt8ZnHEWaBCjMqbUaSyoyGqcIgmET86ifiN3/VOaJisrjk7cJQlPIoZZrBjCRBweKyiD1l6gpOkucYhob0L6qoDCMC3TOMeP+i8989s5uua5bPzVmFPs7xiuO4o3chuFu2WEFzEqcUPQbDOEVvm5HMREoMPDRjuIhDuAwidDV6Gh3txkeseMu7pn32gTQMoZ6U5j0WfaV+6G+zuMtzZKX5KNbVH/G2rVbP/FxYgtCipx0WyxNY9DR1bvZXoX+W7mOLDxAcW/f5+NPytpls3Jpvc2E4NXAo05r0fqVlEpAFejEv2ZAqyeQPWwkie5aMAtWomSyq5eyqFdtK2K6A5TGhDK1Lc5bmGUaYwCjJqDmhRUoJzR2y13er7rfzlcE4oXvc0FzVTfe+Woq1PaVYxk1j4ZVuA/Ajik0gKIutGWUB7KJad80MWgmbyBh/7/s3gNi3GfrE6zj7XlMVoCO6SMmiO7aubZb/hel9NZt3xxF99HrjxxoIK/6q/levDohMN+vXohaTTrgddIKlpi8Wcp8SU5n2F4hRy2ejtlnd8HYm9m1llSsB8oFvL8AZteeQvfso+wGjLgeQ4yF4v2F5gBxVd45p2Etjs4J29cf8spnyWuEOA4Ez+pse9MrRaTSC9ubFp3cR3D3VlYnvZK/vGGWkLbJ5cDjcVIB77QFSh124xEH3uFtrfW7sz40H+jcjO9uxNI8xoi7nfCePs4Gdqx0p01mqCu3Ift/zgRny9GJvorqfntoyhq4uM9eNtqqlQfV36WwrCR+owfOh5PCPAWt0SpULfefY5iLr11Wdj42GnnPgD4QgLCzGGu9y2h6sKPBEpoYzY26o7Xej6M+qFx7JriVBFCo4zD78BaxA6BSzEQAA");
// Code to be executed before conditionals are applied and the window is drawn.
public override void PreDraw()
// Code to be executed before conditionals are applied and the window is drawn.
public override void PreDraw()
{
if (Service.Configuration.EnableTheme)
if (Service.Configuration.EnableTheme && themePushed == false)
{
pluginStyle.Push();

themePushed = true;
}
}

// Code to be executed after the window is drawn.
public override void PostDraw()
{
if (Service.Configuration.EnableTheme)
StyleModel.GetFromCurrent().Pop();

}
{
if (themePushed == true)
{
pluginStyle.Pop();
themePushed = false;
}
}

public enum Tabs
{
Expand Down Expand Up @@ -374,7 +377,7 @@ public override void Draw()
if (ImGui.Checkbox("Enforce the custom theme.", ref enableTheme))
{
Service.Configuration.EnableTheme = enableTheme;
Service.Configuration.Save();
Service.Configuration.Save();
}

var hideChildren = Service.Configuration.HideChildren;
Expand Down
16 changes: 8 additions & 8 deletions XIVComboExpanded/Interface/OneTimeModal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ public override void Draw()
Service.Configuration.BigJobIcons = bigJobIcons;
Service.Configuration.Save();

}

var enableTheme = Service.Configuration.EnableTheme;
if (ImGui.Checkbox("Enforce the custom theme.", ref enableTheme))
{
Service.Configuration.EnableTheme = enableTheme;
Service.Configuration.Save();
}
}

var enableTheme = Service.Configuration.EnableTheme;
if (ImGui.Checkbox("Enforce the custom theme.", ref enableTheme))
{
Service.Configuration.EnableTheme = enableTheme;
Service.Configuration.Save();
}

var hideIcons = Service.Configuration.HideIcons;
if (ImGui.Checkbox("Hide icons for combos and features.", ref hideIcons))
Expand Down
2 changes: 1 addition & 1 deletion XIVComboExpanded/XIVComboExpanded.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Authors>attick, daemitus, Khayle</Authors>
<Company>-</Company>
<Version>2.0.2.2</Version>
<Version>2.0.2.3</Version>
<Description>This plugin condenses combos and mutually exclusive abilities onto a single button.</Description>
<Copyright>Copyleft attick 2020 baybeeee</Copyright>
<PackageProjectUrl>https://github.com/daemitus/XIVComboPlugin</PackageProjectUrl>
Expand Down

0 comments on commit 4141f6b

Please sign in to comment.