Ejemplo n.º 1
0
        public override void Load()
        {
            LoadShaders();

            blankTexture = ("ProjectPhoenix/UI/blank");
            Instance     = ModContent.GetInstance <ProjectPhoenix>();



            //playboy = Main.LocalPlayer.GetModPlayer<PlayerMod>();

            Text.SmokeyDialogue1.LoadText();
            TextBoxTest = RegisterHotKey("Dialogue Key", "P"); // See https://docs.microsoft.com/en-us/previous-versions/windows/xna/bb197781(v=xnagamestudio.41) for special keys
                                                               //TextBoxTest2 = RegisterHotKey("I am ses)", "L"); // See https://docs.microsoft.com/en-us/previous-versions/windows/xna/bb197781(v=xnagamestudio.41) for special keys

            ModContent.GetInstance <ProjectPhoenix>().Logger.Debug("ProjectPhoenix loaded.");
            if (!Main.dedServ)
            {
                if (FontExists("Fonts/Smokey"))
                {
                    Smokey = GetFont("Fonts/Smokey");
                }
                MyInterface = new UserInterface();

                Texting = new Textbox();
                //TextboxI = new TextboxInternal();
                Texting.Activate(); // Activate calls Initialize() on the UIState if not initialized, then calls OnActivate and then calls Activate on every child element
                                    //	TextboxI.Activate();
            }

            base.Load();
        }
Ejemplo n.º 2
0
        public override void Unload()
        {
            Instance     = null;
            blankTexture = null;
            TextBoxTest  = null;
            TextBoxTest2 = null;

            ModContent.GetInstance <ProjectPhoenix>().Logger.Debug("WAAA IM BEING UNLOADED.");
            //Texting?.SomeKindOfUnload(); // If you hold data that needs to be unloaded, call it in OO-fashion
            Texting = null;
            //	TextboxI = null;
            base.Unload();
        }