mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-06 07:46:29 +02:00
Code cleanup
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
using RemSox.UI.GUI.Rendering;
|
||||
|
||||
using System.Drawing;
|
||||
|
||||
namespace RemSox.UI.GUI.UIEelements.Controls;
|
||||
|
||||
public class Panel() : Control("Panel")
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using RemSox.UI.GUI.Rendering;
|
||||
|
||||
using System.Drawing;
|
||||
|
||||
namespace RemSox.UI.GUI.UIEelements.Shapes;
|
||||
|
||||
public class Circle() : Shape("Circle")
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using RemSox.UI.GUI.Rendering;
|
||||
|
||||
using System.Drawing;
|
||||
|
||||
namespace RemSox.UI.GUI.UIEelements.Shapes;
|
||||
|
||||
public class Pixel() : Shape("Pixel")
|
||||
|
||||
@@ -23,5 +23,8 @@ public abstract class UIElement(string type) : ChangedPropertiesTracker
|
||||
public abstract IEnumerable<RenderCommand> ToPrimitives(int windowId);
|
||||
|
||||
/// <summary> Builds a stable primitive ID from element ID and sub-index. </summary>
|
||||
protected int PrimitiveId(int subIndex) => (Id << PrimitiveIdShift) | subIndex;
|
||||
protected int PrimitiveId(int subIndex)
|
||||
{
|
||||
return (Id << PrimitiveIdShift) | subIndex;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user