Fix terrain brush popup

Closes #729
1. Dark mode now applied correctly (was previously lacking)
2. Fixed terrain brush action (brush active is higher priority than drag, fix tile fetch)
3. Fixed writing of Building/structure labels; apply after Terrain
4. Single terrain brush form allowed, center to Field Editor on launch

Somewhat related: fix Show() load for non-ShowDialog() forms to center to parent.
This commit is contained in:
Kurt
2026-01-30 22:55:26 -06:00
parent 5c51055a4c
commit e6f45d1805
11 changed files with 170 additions and 316 deletions

View File

@@ -21,6 +21,12 @@ public SysBotRAMEdit(InjectionType type)
Bot.PopPrompt();
}
protected override void OnLoad(EventArgs e)
{
CenterToParent();
base.OnLoad(e);
}
private void B_Connect_Click(object sender, EventArgs e)
{
if (!Bot.Connect(TB_IP.Text, TB_Port.Text))

View File

@@ -36,6 +36,12 @@ public SysBotUI(AutoInjector injector, SysBotController c, AutoInjector injector
TIM_Interval.Tick += (s, e) => injector.Read();
}
protected override void OnLoad(EventArgs e)
{
CenterToParent();
base.OnLoad(e);
}
private void B_Connect_Click(object sender, EventArgs e)
{
if (!Bot.Connect(TB_IP.Text, TB_Port.Text))