Change WorldScreen side panel color

This commit is contained in:
Stone_Red
2023-10-12 17:10:32 +02:00
parent a71a80182b
commit 9966986d5e
3 changed files with 6 additions and 7 deletions
@@ -1,6 +1,6 @@
<Project StylesheetPath="stylesheet/default_ui_skin.xmms">
<Project.ExportOptions />
<Grid CanSelectNothing="True" >
<Grid CanSelectNothing="True">
<Grid.ColumnsProportions>
<Proportion Type="Part" />
<Proportion Type="Part" Value="3" />
@@ -8,10 +8,10 @@
</Grid.ColumnsProportions>
<VerticalStackPanel Id="info">
<Label Text="FPS:" TextColor="#CF56BFFF" Id="fps" />
<Label Text="FRQ: " TextColor="#CF56BFFF" Id="ups" />
<Label Text="FRQ: " TextColor="#CF56BFFF" Id="ups" />
<Label Text="X/Y: " TextColor="#CF56BFFF" Id="position" />
</VerticalStackPanel>
<Panel GridColumn="2" Background="#4BD961FF">
<Panel GridColumn="2" TransformOrigin="1, 0" Background="#FFA500FF" Id="sidePanel">
<VerticalStackPanel Id="settings">
<Label Text="Frequency:" />
<SpinButton Maximum="1E+09" Minimum="1" HorizontalAlignment="Stretch" Value="100" Integer="True" Id="frequency" />
@@ -17,9 +17,9 @@ internal abstract class LogicGate
private int output;
private int cachedOutput;
private LogicGateConnection[] logicGateConnectionsArray = Array.Empty<LogicGateConnection>();
public IReadOnlyList<LogicGateConnection> LogicGateConnections => logicGateConnections.AsReadOnly();
public abstract int OutputCount { get; set; }
public abstract int InputCount { get; set; }
internal IReadOnlyList<LogicGateConnection> LogicGateConnections => logicGateConnections.AsReadOnly();
internal GraphicsDevice? GraphicsDevice { get; set; }
internal LogicGateWorldData WorldData { get; init; } = new LogicGateWorldData();
internal ulong Id { get; set; }
+2 -3
View File
@@ -20,6 +20,7 @@ namespace StoneRed.LogicSimulator;
internal class Srls : Game
{
public const ushort CurrentSaveVersion = 1;
private readonly ScreenManager screenManager;
private SrlsWindow? currentSrlsWindow = null;
private SrlsScreen? currentSrlsScreen = null;
@@ -37,8 +38,6 @@ internal class Srls : Game
public Settings Settings { get; set; }
public const ushort CurrentSaveVersion = 1;
public Srls()
{
Content.RootDirectory = "Content";
@@ -121,7 +120,7 @@ internal class Srls : Game
protected override void Update(GameTime gameTime)
{
Scale = 1f / 800 * Window.ClientBounds.Width * Settings.Scale;
Scale = 1f / 800 * Window.ClientBounds.Height * Settings.Scale;
Desktop.Root.Scale = currentSrlsScreen?.ScalingEnabled == true ? new Vector2(Scale, Scale) : Vector2.One;
if (Desktop.ContextMenu is not null)