mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-21 19:24:00 +00:00
Paint增加保存,重写StartMenu的UI,修复部分渲染bug
This commit is contained in:
@@ -155,6 +155,27 @@ namespace CMLeonOS.Gui.UILib
|
||||
private int originalWidth;
|
||||
private int originalHeight;
|
||||
|
||||
private void RefreshWindowTree()
|
||||
{
|
||||
wm.Update(this);
|
||||
RenderDecoration();
|
||||
|
||||
foreach (Window child in wm.Windows)
|
||||
{
|
||||
if (child.RelativeTo == this)
|
||||
{
|
||||
if (child is Control control)
|
||||
{
|
||||
control.Render();
|
||||
}
|
||||
else
|
||||
{
|
||||
wm.Update(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void StartOpenAnimation()
|
||||
{
|
||||
int targetY = Y;
|
||||
@@ -170,6 +191,7 @@ namespace CMLeonOS.Gui.UILib
|
||||
EasingType = EasingType.Sine,
|
||||
EasingDirection = EasingDirection.Out
|
||||
};
|
||||
animation.Completed = RefreshWindowTree;
|
||||
animation.Start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user