diff --git a/Assets/Src/UI/Crosshair.uxml b/Assets/Src/UI/Crosshair.uxml
index 38bc683..05cf984 100644
--- a/Assets/Src/UI/Crosshair.uxml
+++ b/Assets/Src/UI/Crosshair.uxml
@@ -1,5 +1,6 @@
+
-
+
diff --git a/Assets/Src/UI/CrosshairComponents.cs b/Assets/Src/UI/CrosshairComponents.cs
index 161fc0e..87f873a 100644
--- a/Assets/Src/UI/CrosshairComponents.cs
+++ b/Assets/Src/UI/CrosshairComponents.cs
@@ -14,6 +14,9 @@ namespace CrosshairComponents {
}
public new class UxmlFactory : UxmlFactory { }
+ public static readonly string ussClassName = "crosshair";
+ public static readonly string ussLabelClassName = "crosshair__label";
+
static CustomStyleProperty s_TrackColor = new CustomStyleProperty("--track-color");
static CustomStyleProperty s_ProgressColor = new CustomStyleProperty("--progress-color");
@@ -39,8 +42,10 @@ namespace CrosshairComponents {
public ThreeArmCrosshair() {
// Create a Label, add a USS class name, and add it to this visual tree.
- m_Label = new Label();
- Add(m_Label);
+ // m_Label = new Label();
+ // m_Label.AddToClassList(ussLabelClassName);
+ AddToClassList(ussClassName);
+ // Add(m_Label);
// Register a callback after custom style resolution.
RegisterCallback(evt => CustomStylesResolved(evt));
@@ -113,7 +118,6 @@ namespace CrosshairComponents {
}
public new class UxmlFactory : UxmlFactory { }
- // These are USS class names for the control overall and the label.
public static readonly string ussClassName = "crosshair";
public static readonly string ussLabelClassName = "crosshair__label";
@@ -141,9 +145,10 @@ namespace CrosshairComponents {
}
public FourArmCrosshair() {
- // Create a Label, add a USS class name, and add it to this visual tree.
- m_Label = new Label();
- Add(m_Label);
+ // m_Label = new Label();
+ // m_Label.AddToClassList(ussLabelClassName);
+ AddToClassList(ussClassName);
+ // Add(m_Label);
// Register a callback after custom style resolution.
RegisterCallback(evt => CustomStylesResolved(evt));
diff --git a/TODO.md b/TODO.md
index 4397ec5..e1c169a 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,7 +1,5 @@
# SpaceRace!
-- shields
-
- power units
- tab through outputs
- accel