Exemplo n.º 1
0
        public void LoadUI()
        {
            if (!Main.dedServ)
            {
                // Load textures
                CheckMark = ModContent.GetTexture("FargowiltasSouls/UI/Assets/CheckMark");
                CheckBox  = ModContent.GetTexture("FargowiltasSouls/UI/Assets/CheckBox");
                SoulTogglerButtonTexture           = ModContent.GetTexture("FargowiltasSouls/UI/Assets/SoulTogglerToggle");
                SoulTogglerButton_MouseOverTexture = ModContent.GetTexture("FargowiltasSouls/UI/Assets/SoulTogglerToggle_MouseOver");
                PresetButtonOutline = ModContent.GetTexture("FargowiltasSouls/UI/Assets/PresetOutline");
                PresetOffButton     = ModContent.GetTexture("FargowiltasSouls/UI/Assets/PresetOff");
                PresetOnButton      = ModContent.GetTexture("FargowiltasSouls/UI/Assets/PresetOn");
                PresetMinimalButton = ModContent.GetTexture("FargowiltasSouls/UI/Assets/PresetMinimal");

                // Initialize UserInterfaces
                TogglerUserInterface       = new UserInterface();
                TogglerToggleUserInterface = new UserInterface();

                // Activate UIs
                SoulToggler = new SoulToggler();
                SoulToggler.Activate();
                SoulTogglerButton = new SoulTogglerButton();
                SoulTogglerButton.Activate();

                TogglerToggleUserInterface.SetState(SoulTogglerButton);
            }
        }
Exemplo n.º 2
0
        public void LoadUI()
        {
            if (!Main.dedServ)
            {
                // Load textures
                CheckMark = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/CheckMark", AssetRequestMode.ImmediateLoad);
                CheckBox  = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/CheckBox", AssetRequestMode.ImmediateLoad);
                SoulTogglerButtonTexture           = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/SoulTogglerToggle", AssetRequestMode.ImmediateLoad);
                SoulTogglerButton_MouseOverTexture = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/SoulTogglerToggle_MouseOver", AssetRequestMode.ImmediateLoad);
                PresetButtonOutline       = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/PresetOutline", AssetRequestMode.ImmediateLoad);
                PresetOffButton           = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/PresetOff", AssetRequestMode.ImmediateLoad);
                PresetOnButton            = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/PresetOn", AssetRequestMode.ImmediateLoad);
                PresetMinimalButton       = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/PresetMinimal", AssetRequestMode.ImmediateLoad);
                OncomingMutantTexture     = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/OncomingMutant", AssetRequestMode.ImmediateLoad);
                OncomingMutantAuraTexture = ModContent.Request <Texture2D>("FargowiltasSouls/UI/Assets/OncomingMutantAura", AssetRequestMode.ImmediateLoad);

                // Initialize UserInterfaces
                TogglerUserInterface       = new UserInterface();
                TogglerToggleUserInterface = new UserInterface();

                // Activate UIs
                SoulToggler = new SoulToggler();
                SoulToggler.Activate();
                SoulTogglerButton = new SoulTogglerButton();
                SoulTogglerButton.Activate();

                TogglerToggleUserInterface.SetState(SoulTogglerButton);
            }
        }