public override void OnChanged() { UISidebar uISidebar = ModContent.GetInstance <TerramonMod>().UISidebar; if (uISidebar != null) { if (!TerramonMod.ShowHelpButton) { uISidebar.RemoveChild(uISidebar.choose); } else { uISidebar.Append(uISidebar.choose); } } }
public override void OnChanged() { TerramonMod.PartyUITheme = PartyUITheme; TerramonMod.PartyUIAutoMode = PartyUIAutoMode; TerramonMod.PartyUIReverseAutoMode = PartyUIReverseAutoMode; TerramonMod.ShowHelpButton = ShowHelpButton; UISidebar uISidebar = ModContent.GetInstance <TerramonMod>().UISidebar; if (uISidebar != null) { if (!TerramonMod.ShowHelpButton) { uISidebar.RemoveChild(uISidebar.choose); } else { uISidebar.Append(uISidebar.choose); } } }