freeso/TSOClient/FSO.UI/Debug/TSOClientTools.cs
RHY3756547 59ae89d8fe [UI] Large scale refactor, remove mobile projects
- Also some optimisations for animation, zoom level switch, changes to
pie menu head.
2017-08-07 17:44:59 +01:00

61 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Xna.Framework;
namespace FSO.Client.Debug
{
public partial class TSOClientTools : Form
{
private TSOClientUIInspector uiInspetor;
private TSOSceneInspector sceneInspector;
public TSOClientTools()
{
InitializeComponent();
/**
* UI Inspector
*/
uiInspetor = new TSOClientUIInspector();
uiInspetor.Show();
sceneInspector = new TSOSceneInspector();
sceneInspector.Show();
}
public void PositionAroundGame(GameWindow gameWindow)
{
this.Location = new System.Drawing.Point(gameWindow.ClientBounds.X - this.Width - 10, gameWindow.ClientBounds.Y);
uiInspetor.Location = new System.Drawing.Point(
gameWindow.ClientBounds.X - uiInspetor.Width - 10,
gameWindow.ClientBounds.Y + this.Height + 10
);
sceneInspector.Location = new System.Drawing.Point(
gameWindow.ClientBounds.X + gameWindow.ClientBounds.Width + 10,
gameWindow.ClientBounds.Y
);
}
private void btnSearch_Click(object sender, EventArgs e)
{
var window = new TSOClientFindAssetSearch();
window.StartSearch(txtFindAsset.Text);
window.Show();
}
private void button1_Click(object sender, EventArgs e)
{
//var window = new TSOEdith();
//window.Show();
}
}
}