Merge dev into main #18
@ -82,6 +82,7 @@ public class AccountButton : UserControl
|
|||||||
SM.Selected = this;
|
SM.Selected = this;
|
||||||
SM.page.Controls.Clear();
|
SM.page.Controls.Clear();
|
||||||
OnPageLoad.Invoke();
|
OnPageLoad.Invoke();
|
||||||
|
Globals.ms.ForceUpdate(new(Globals.ms.CS));
|
||||||
}
|
}
|
||||||
|
|
||||||
BlockDraw = false;
|
BlockDraw = false;
|
||||||
|
@ -27,10 +27,8 @@ public class AddServerOverlay : UserControl, IServerOverlay
|
|||||||
public AddServerOverlay()
|
public AddServerOverlay()
|
||||||
{
|
{
|
||||||
base.Size = Globals.ms.ClientSize;
|
base.Size = Globals.ms.ClientSize;
|
||||||
BackgroundColor = new(0, 0, 0, 130);
|
base.BackgroundColor = new(0, 0, 0, 130);
|
||||||
Anchor = ObjectAnchor.All;
|
Anchor = ObjectAnchor.All;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Form = new(Globals.ms.TextureManager.GetTextureResource("RoundedRectangle.png"))
|
Form = new(Globals.ms.TextureManager.GetTextureResource("RoundedRectangle.png"))
|
||||||
{
|
{
|
||||||
@ -337,7 +335,6 @@ public class AddServerOverlay : UserControl, IServerOverlay
|
|||||||
DisplayName.Textures[0] = UserName.Textures[0];
|
DisplayName.Textures[0] = UserName.Textures[0];
|
||||||
rec.ForceDistanceUpdate(page);
|
rec.ForceDistanceUpdate(page);
|
||||||
Globals.ms.TryDraw();
|
Globals.ms.TryDraw();
|
||||||
Globals.ms.ForceUpdate(new(Size));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ca.Size = new((Form.Size.X - tb.Location.X - tb.Location.X - (tb.Location.X / 2)) / 2, ca.Size.Y);
|
ca.Size = new((Form.Size.X - tb.Location.X - tb.Location.X - (tb.Location.X / 2)) / 2, ca.Size.Y);
|
||||||
@ -396,6 +393,7 @@ public class AddServerOverlay : UserControl, IServerOverlay
|
|||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
};
|
};
|
||||||
|
UserName.Size = UserName.Size;
|
||||||
|
|
||||||
page.Controls.Add(Password = new()
|
page.Controls.Add(Password = new()
|
||||||
{
|
{
|
||||||
@ -443,8 +441,12 @@ public class AddServerOverlay : UserControl, IServerOverlay
|
|||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
};
|
};
|
||||||
|
Password.Size = Password.Size;
|
||||||
|
Password.ForceDistanceUpdate(page);
|
||||||
DisplayName = null!;
|
DisplayName = null!;
|
||||||
rec = null!;
|
rec = null!;
|
||||||
|
Globals.ms.ForceUpdate(new(Globals.ms.CS));
|
||||||
|
TryDraw();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
lo.Size = ca.Size;
|
lo.Size = ca.Size;
|
||||||
@ -554,7 +556,6 @@ public class AddServerOverlay : UserControl, IServerOverlay
|
|||||||
Globals.ms.ser.Controls.Insert(Globals.ms.ser.Controls.Length - 1, ss);
|
Globals.ms.ser.Controls.Insert(Globals.ms.ser.Controls.Length - 1, ss);
|
||||||
await ss.LoadServer();
|
await ss.LoadServer();
|
||||||
Globals.ms.Controls.Remove(this);
|
Globals.ms.Controls.Remove(this);
|
||||||
Globals.ms.ForceUpdate(new(Size));
|
|
||||||
Globals.ms.TryDraw();
|
Globals.ms.TryDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -396,7 +396,7 @@ public class MainScreenWindow : Window
|
|||||||
Controls.Add(aso);
|
Controls.Add(aso);
|
||||||
|
|
||||||
TryDraw();
|
TryDraw();
|
||||||
OnResize(new(Size));
|
OnResize(new(CS));
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user