New Toggle
This commit is contained in:
parent
29d425b555
commit
0b56b1ab1c
@ -118,7 +118,7 @@ public class ServerRoleOptions : UserControl
|
|||||||
SelectedLine.Size = new(Display.Size.X, Line.Size.Y);
|
SelectedLine.Size = new(Display.Size.X, Line.Size.Y);
|
||||||
SelectedLine.Location = new(Display.Location.X, Line.Location.Y);
|
SelectedLine.Location = new(Display.Location.X, Line.Location.Y);
|
||||||
Page.Controls.Clear();
|
Page.Controls.Clear();
|
||||||
Window!.TryDraw();
|
TryDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
private ServerPermission TempPermissions = ServerPermission.None;
|
private ServerPermission TempPermissions = ServerPermission.None;
|
||||||
@ -197,7 +197,7 @@ public class ServerRoleOptions : UserControl
|
|||||||
Page.ScrollValue = scrval.Value;
|
Page.ScrollValue = scrval.Value;
|
||||||
}
|
}
|
||||||
BlockDraw = false;
|
BlockDraw = false;
|
||||||
Window!.TryDraw();
|
TryDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task PermissionSave()
|
private async Task PermissionSave()
|
||||||
@ -239,7 +239,7 @@ public class ServerRoleOptions : UserControl
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
BlockDraw = false;
|
BlockDraw = false;
|
||||||
Window!.TryDraw();
|
TryDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Role r;
|
private Role r;
|
||||||
|
@ -121,6 +121,17 @@ public class MainScreenWindow : Window
|
|||||||
UseSubFrames = b;
|
UseSubFrames = b;
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (LuskiExperiments.GUI.LiveViews.IsEnabled())
|
||||||
|
{
|
||||||
|
UseLiveView = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
LuskiExperiments.GUI.LiveViews.EventToggled += b =>
|
||||||
|
{
|
||||||
|
UseLiveView = b;
|
||||||
|
return Task.CompletedTask;
|
||||||
|
};
|
||||||
Globals.ms = this;
|
Globals.ms = this;
|
||||||
SetWindowSize(new(1332.ScaleInt(), 866.ScaleInt()));
|
SetWindowSize(new(1332.ScaleInt(), 866.ScaleInt()));
|
||||||
Shader s = new Shader("Luski.Resources.Shaders.LeftToRightLabel", Embeded: true, Assembly: Assembly.GetExecutingAssembly());
|
Shader s = new Shader("Luski.Resources.Shaders.LeftToRightLabel", Embeded: true, Assembly: Assembly.GetExecutingAssembly());
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="GraphicsManager" Version="1.1.1-alpha30" />
|
<PackageReference Include="GraphicsManager" Version="1.1.1-alpha31" />
|
||||||
<PackageReference Include="Luski.net" Version="2.0.1-alpha18" />
|
<PackageReference Include="Luski.net" Version="2.0.1-alpha18" />
|
||||||
<PackageReference Include="Updater" Version="1.0.0-alpha04" />
|
<PackageReference Include="Updater" Version="1.0.0-alpha04" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -34,6 +34,15 @@ public static class LuskiExperiments
|
|||||||
{
|
{
|
||||||
GUI.BufferCopy
|
GUI.BufferCopy
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
DisplayName = "Live View",
|
||||||
|
Name = "2024_11_live_view",
|
||||||
|
Options = new()
|
||||||
|
{
|
||||||
|
GUI.LiveViews
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -95,12 +104,17 @@ public static class LuskiExperiments
|
|||||||
public static readonly ExperimentSelectorInfo SubFrames = new()
|
public static readonly ExperimentSelectorInfo SubFrames = new()
|
||||||
{
|
{
|
||||||
Name = "Sub Frames",
|
Name = "Sub Frames",
|
||||||
Description = "Speeds up rendering controls by smaller area.", RequiresRestart = false
|
Description = "Speeds up rendering controls by drawing to smaller area.", RequiresRestart = false
|
||||||
};
|
};
|
||||||
public static readonly ExperimentSelectorInfo BufferCopy = new()
|
public static readonly ExperimentSelectorInfo BufferCopy = new()
|
||||||
{
|
{
|
||||||
Name = "Buffer Copy",
|
Name = "Buffer Copy",
|
||||||
Description = "Speeds up rendering controls during resize by copying from the GPU", RequiresRestart = false
|
Description = "Speeds up rendering controls during resize by copying from the GPU", RequiresRestart = false
|
||||||
};
|
};
|
||||||
|
public static readonly ExperimentSelectorInfo LiveViews = new()
|
||||||
|
{
|
||||||
|
Name = "Live Views",
|
||||||
|
Description = "Speeds up rendering controls by checking in on GPU", RequiresRestart = false
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user