Esempio n. 1
0
 /// <summary>
 /// Initialize windows
 /// </summary>
 void InitializeWindows()
 {
     // Make help window
     helpWindow = new WindowHelp();
     // Make command window
     commandWindow = new WindowShopCommand();
     // Make gold window
     goldWindow       = new WindowGold();
     goldWindow.X     = 480 * GeexEdit.GameWindowWidth / 640;
     goldWindow.Y     = 64;
     goldWindow.Width = goldWindow.Width * GeexEdit.GameWindowWidth / 640;
     // Make dummy window
     dummyWindow = new WindowBase(0, 128, GeexEdit.GameWindowWidth, GeexEdit.GameWindowHeight - 128);
     // Make buy window
     buyWindow            = new WindowShopBuy(InGame.Temp.ShopGoods);
     buyWindow.IsActive   = false;
     buyWindow.IsVisible  = false;
     buyWindow.HelpWindow = helpWindow;
     // Make sell window
     sellWindow            = new WindowShopSell();
     sellWindow.IsActive   = false;
     sellWindow.IsVisible  = false;
     sellWindow.HelpWindow = helpWindow;
     // Make quantity input window
     numberWindow           = new WindowShopNumber();
     numberWindow.IsActive  = false;
     numberWindow.IsVisible = false;
     // Make status window
     statusWindow           = new WindowShopStatus();
     statusWindow.IsVisible = false;
 }
Esempio n. 2
0
        /// <summary>
        /// Initialize window
        /// </summary>
        void InitializeWindow()
        {
            // Make command window
            List <string> Commandlist = new List <string>();

            Commandlist.Add(Data.System.Wordings.Item);
            Commandlist.Add(Data.System.Wordings.Skill);
            Commandlist.Add(Data.System.Wordings.Equip);
            Commandlist.Add("Status");
            Commandlist.Add("Save");
            Commandlist.Add("End Game");
            commandWindow       = new WindowCommand(GameOptions.MenuCommandListWidth, Commandlist);
            commandWindow.Index = menuIndex;
            // If number of party members is 0
            if (InGame.Party.Actors.Count == 0)
            {
                // Disable items, skills, equipment, and status
                commandWindow.DisableItem(0);
                commandWindow.DisableItem(1);
                commandWindow.DisableItem(2);
                commandWindow.DisableItem(3);
            }
            // If save is forbidden
            if (InGame.System.IsSaveDisabled)
            {
                // Disable save
                commandWindow.DisableItem(4);
            }
            // Make play time window
            playtimeWindow = new WindowPlayTime();
            // Make steps window
            stepsWindow = new WindowSteps();
            // Make gold window
            goldWindow = new WindowGold();
            // Make status window
            statusWindow = new WindowMenuStatus();
        }