mirror of
https://github.com/riperiperi/FreeSO
synced 2026-08-13 20:26:13 -04:00
61 lines
1.7 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|