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>
 /// Windows initialization
 /// </summary>
 void InitializeWindows()
 {
     // Make help window, item window
     helpWindow = new WindowHelp();
     itemWindow = new WindowItem();
     // Associate help window
     itemWindow.HelpWindow = helpWindow;
     // Make target window (set to invisible / inactive)
     targetWindow           = new WindowTarget();
     targetWindow.IsVisible = false;
     targetWindow.IsActive  = false;
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param Name="viewport">viewport for the arrow cursor</param>
 public ArrowBase(Viewport viewport)
     : base(viewport)
 {
     this.Bitmap = Cache.Windowskin(InGame.System.WindowskinName);
     this.Ox     = 16;
     this.Oy     = 64;
     this.Z      = 2500;
     blinkCount  = 0;
     index       = 0;
     HelpWindow  = null;
     Update();
 }
Esempio n. 4
0
 /// <summary>
 /// Windows initialization
 /// </summary>
 void InitializeWindows()
 {
     // Make help window, status window, and skill window
     helpWindow   = new WindowHelp();
     statusWindow = new WindowSkillStatus(actor);
     skillWindow  = new WindowSkill(actor);
     // Associate help window
     skillWindow.HelpWindow = helpWindow;
     // Make target window (set to invisible / inactive)
     targetWindow           = new WindowTarget();
     targetWindow.IsVisible = false;
     targetWindow.IsActive  = false;
 }
Esempio n. 5
0
 /// <summary>
 /// Initialize savegame windows
 /// </summary>
 public void InitializeWindows()
 {
     // Make help window
     helpWindow = new WindowHelp();
     helpWindow.SetText(helpText);
     // Make save file window
     savefileWindows = new WindowSaveFile[4];
     for (int i = 0; i < 4; i++)
     {
         savefileWindows[i] = new WindowSaveFile(i, MakeFilename(i), container);
     }
     // Select last file to be operated
     fileIndex = InGame.Temp.LastFileIndex;
     savefileWindows[fileIndex].IsSelected = true;
     // Loading is now possible
     isLoadingReady = true;
 }
Esempio n. 6
0
 /// <summary>
 /// Windows initialization
 /// </summary>
 void InitializeWindows()
 {
     helpWindow      = new WindowHelp();
     leftWindow      = new WindowEquipLeft(actor);
     rightWindow     = new WindowEquipRight(actor);
     weaponWindow    = new WindowEquipItem(actor, 0);
     shieldWindow    = new WindowEquipItem(actor, 1);
     headWindow      = new WindowEquipItem(actor, 2);
     bodyWindow      = new WindowEquipItem(actor, 3);
     accessoryWindow = new WindowEquipItem(actor, 4);
     // Associate help window
     rightWindow.HelpWindow     = helpWindow;
     weaponWindow.HelpWindow    = helpWindow;
     shieldWindow.HelpWindow    = helpWindow;
     headWindow.HelpWindow      = helpWindow;
     bodyWindow.HelpWindow      = helpWindow;
     accessoryWindow.HelpWindow = helpWindow;
     // Set cursor position
     rightWindow.Index = equipIndex;
     Refresh();
 }
Esempio n. 7
0
        private void OnWindowHelpCommand()
        {
            IntPtr hForeground = NativeMethods.GetForegroundWindow();

            System.Drawing.Rectangle rect = new System.Drawing.Rectangle();
            NativeMethods.GetWindowRect(hForeground, ref rect);

            var dlg = new WindowHelp
            {
                DataContext           = this,
                WindowStartupLocation = WindowStartupLocation.Manual,

                Left = rect.Left + 50,
                Top  = rect.Top + 50,
            };

            if (_fe != null)
            {
                dlg.Owner = Window.GetWindow(_fe);
            }
            dlg.ShowDialog();
        }
Esempio n. 8
0
 public void UpdateOpenGLContext(bool isShowing, Gdk.Window window)
 {
     WindowHelp.UpdateOpenGLContext(isShowing, this.csWindow, window);
 }
Esempio n. 9
0
 public GameWindow(IntPtr windowHandle, int width, int height)
 {
     this.csWindow     = WindowHelp.CreateCSWindow(windowHandle, width, height);
     this.sceneEntity  = new SceneObject(this.csWindow.GetScene());
     this.canvasEntity = new CanvasObject(this.csWindow.GetCanvas());
 }
Esempio n. 10
0
 public GameWindow(Gdk.Window gdkWindow)
 {
     this.csWindow     = WindowHelp.CreateCSWindow(gdkWindow);
     this.sceneEntity  = new SceneObject(this.csWindow.GetScene());
     this.canvasEntity = new CanvasObject(this.csWindow.GetCanvas());
 }
Esempio n. 11
0
 private static string GetHelpString(WindowHelp specificWindow) => specificWindow switch
 {
Esempio n. 12
0
 protected override void OnSourceInitialized(EventArgs e)
 {
     WindowHelp.RemoveIcon(this);
 }