Ejemplo n.º 1
0
        public void LoadUI()
        {
            if (!Main.dedServ)
            {
                // Load textures
                StatsButtonTexture           = (ModContent.Request <Texture2D>("Fargowiltas/UI/Assets/StatsButton", AssetRequestMode.ImmediateLoad));
                StatsButton_MouseOverTexture = (ModContent.Request <Texture2D>("Fargowiltas/UI/Assets/StatsButton_MouseOver", AssetRequestMode.ImmediateLoad));

                // Initialize UserInterfaces
                StatSheetUserInterface        = new UserInterface();
                StatSheetTogglerUserInterface = new UserInterface();

                // Activate UIs
                StatSheet = new StatSheetUI();
                StatSheet.Activate();
                StatButton = new StatButton();
                StatButton.Activate();

                StatSheetTogglerUserInterface.SetState(StatButton);
            }
        }
Ejemplo n.º 2
0
        public void LoadUI()
        {
            if (!Main.dedServ)
            {
                // Load textures
                StatsButtonTexture           = ModContent.GetTexture("Fargowiltas/UI/Assets/StatsButton");
                StatsButton_MouseOverTexture = ModContent.GetTexture("Fargowiltas/UI/Assets/StatsButton_MouseOver");

                // Initialize UserInterfaces
                StatSheetUserInterface        = new UserInterface();
                StatSheetTogglerUserInterface = new UserInterface();

                // Activate UIs
                StatSheet = new StatSheetUI();
                StatSheet.Activate();
                StatButton = new StatButton();
                StatButton.Activate();

                StatSheetTogglerUserInterface.SetState(StatButton);
            }
        }