Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Killface1980 committed Sep 10, 2017
1 parent eaa1259 commit 2c98522
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ModMetaData>
<name>Facial Stuff 0.17.3.3b</name>
<name>Facial Stuff 0.17.3.3c</name>
<author>Killface</author>
<url></url>
<targetVersion>0.17.1557</targetVersion>
Expand Down
Binary file modified Assemblies/FacialStuff.dll
Binary file not shown.
20 changes: 8 additions & 12 deletions Source/RW_FacialStuff/Harmony/HarmonyPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,29 +407,25 @@ private static void CheckAllInjected()
// [HarmonyPatch("DoWindowContents")]
static class Dialog_Options_DoWindowContents_Patch
{
private static bool hatsOnlyOnMap;
private static bool noHatsInBed;

static void MoreStuff(Listing_Standard listing_Standard)
{
hatsOnlyOnMap = Controller.settings.HideHatWhileRoofed;
listing_Standard.CheckboxLabeled("Settings.HideHatWhileRoofed".Translate(), ref hatsOnlyOnMap, "Settings.HideHatWhileRoofedTooltip".Translate());
bool hideHatWhileRoofed = Controller.settings.HideHatWhileRoofed;
listing_Standard.CheckboxLabeled("Settings.HideHatWhileRoofed".Translate(), ref hideHatWhileRoofed, "Settings.HideHatWhileRoofedTooltip".Translate());

noHatsInBed = Controller.settings.HideHatInBed;
listing_Standard.CheckboxLabeled("Settings.HideHatInBed".Translate(), ref noHatsInBed, "Settings.HideHatInBedTooltip".Translate());
bool hideHatsInBed = Controller.settings.HideHatInBed;
listing_Standard.CheckboxLabeled("Settings.HideHatInBed".Translate(), ref hideHatsInBed, "Settings.HideHatInBedTooltip".Translate());

if (GUI.changed)
{

if (hatsOnlyOnMap != Controller.settings.HideHatWhileRoofed)
if (hideHatWhileRoofed != Controller.settings.HideHatWhileRoofed)
{
Controller.settings.HideHatWhileRoofed = hatsOnlyOnMap;
Controller.settings.HideHatWhileRoofed = hideHatWhileRoofed;
Controller.settings.Write();
}

if (noHatsInBed != Controller.settings.HideHatInBed)
if (hideHatsInBed != Controller.settings.HideHatInBed)
{
Controller.settings.HideHatInBed = noHatsInBed;
Controller.settings.HideHatInBed = hideHatsInBed;
Controller.settings.Write();
}
}
Expand Down

0 comments on commit 2c98522

Please sign in to comment.