Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
        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);
                }
            }
        }