Esempio n. 1
0
        internal override void PostSetupContent()
        {
            if (!Main.dedServ)
            {
                int             count = 0;
                ArmorShaderData shader;
                do
                {
                    shader = GameShaders.Armor.GetSecondaryShader(count + 1, Main.LocalPlayer);
                    count++;
                } while (shader != null);
                shaderCount = count - 1;

                count = Terraria.ID.DustID.Count;
                ModDust dust;
                while (true)
                {
                    dust = ModDust.GetDust(count);
                    if (dust == null)
                    {
                        break;
                    }
                    count++;
                }
                dustCount = count;

                dustUI = new DustUI(userInterface);
                dustUI.Activate();
                userInterface.SetState(dustUI);
            }
        }
Esempio n. 2
0
        // should ui even initialize during load? are static members nulled out on reload?
        public override void ClientInitialize()
        {
            Interface = new UserInterface();

            dustUI = new DustUI(Interface);
            dustUI.Activate();

            Interface.SetState(dustUI);

            //dustUI = new DustUI(userInterface);
            //dustUI.Activate();
            //userInterface.SetState(dustUI);
        }