Remove Driver, Make ColorSelector Bigger

This commit is contained in:
Tim
2025-06-30 23:42:53 +02:00
parent ca2db2830a
commit 03ba166c46
2 changed files with 11 additions and 56 deletions

View File

@@ -14657,8 +14657,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 20, y: 0}
m_SizeDelta: {x: 40, y: 0}
m_AnchoredPosition: {x: 50, y: 0}
m_SizeDelta: {x: 100, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1065735602
MonoBehaviour:
@@ -19292,8 +19292,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 3.088, y: -1.921}
m_SizeDelta: {x: 100, y: 541}
m_AnchoredPosition: {x: 3.2, y: -1.921}
m_SizeDelta: {x: 150, y: 600}
m_Pivot: {x: 1, y: 0}
--- !u!114 &1423573434
MonoBehaviour:
@@ -21342,8 +21342,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c488bedd8c9cbf4448fef2edf45f0788, type: 3}
m_Name:
m_EditorClassIdentifier:
cms: {fileID: 0}
marker: {fileID: 0}
cms: {fileID: 89481405}
marker: {fileID: 755573186}
--- !u!222 &1541654566
CanvasRenderer:
m_ObjectHideFlags: 0
@@ -24121,9 +24121,9 @@ RectTransform:
- {fileID: 2065890175}
m_Father: {fileID: 1423573433}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 44, y: -218.7}
m_SizeDelta: {x: 40, y: 389.4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1728979212
@@ -30013,8 +30013,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 20, y: -20}
m_SizeDelta: {x: 40, y: 40}
m_AnchoredPosition: {x: 50, y: -50}
m_SizeDelta: {x: 102, y: 104}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!65 &2065890176
BoxCollider:

View File

@@ -11,13 +11,9 @@ public class ModelList
{
Color.black,
Color.gray,
Color.white,
Color.blue,
Color.green,
Color.red,
Color.yellow,
Color.magenta,
Color.cyan,
};
public static readonly List<BaseModel> BaseModels = new List<BaseModel>()
@@ -42,7 +38,6 @@ public class ModelList
Port.Hidden(Definitions.PORT_BIKE_TIRE, "idBikeTire_Back", new Vector3(-0.01431298f, 0.4673222f, -0.7874681f)),
Port.Choosable("Front Rim", Definitions.PORT_BIKE_RIM, "idBikeRim_Front", new Vector3(0.01984263f, 0.4673225f, 0.9462124f)),
Port.Hidden( Definitions.PORT_BIKE_TIRE_FRONT, "idBikeTire_Front", new Vector3(0.01984263f, 0.4673225f, 0.9462124f)),
Port.Choosable("Driver", Definitions.PORT_BIKE_DRIVER, "nuke", new Vector3(0f, 1.25f, -0.65f), Quaternion.Euler(70f, 0f, 0f)),
}
),
new BaseModel(
@@ -157,39 +152,6 @@ public class ModelList
};
public static readonly List<ChildModel> ChildModels = new List<ChildModel>()
{
new ChildModel(
Definitions.PORT_BIKE_DRIVER,
"Bacteria",
"bacteria",
Resources.Load<Mesh>("Plagues/Mesh/bacteria"),
Resources.Load<Material>($"Material/AluminiumScratched"),
new Vector3(0f, 0.2f, 0.3f),
Quaternion.identity,
Vector3.one,
null,
DefaultColors
),
new ChildModel(
Definitions.PORT_BIKE_DRIVER,
"ICBM",
"nuke",
Resources.Load<Mesh>("Plagues/Mesh/Nuke"),
Resources.Load<Material>($"Material/AluminiumScratched"),
null,
DefaultColors
),
new ChildModel(
Definitions.PORT_BIKE_RIM,
"30\" Rim",
"idBikeRim_HEX",
Resources.Load<Mesh>("Plagues/Mesh/Hex"),
Resources.Load<Material>($"Material/AluminiumScratched"),
Vector3.zero,
Quaternion.Euler(0,90f,0),
new Vector3(2,2,1),
null,
DefaultColors
),
//Felge 1
new ChildModel(
Definitions.PORT_ERL_RIM_RH,
@@ -353,13 +315,6 @@ public class ModelList
static ModelList()
{
if (!ColorUtility.TryParseHtmlString("#4c00b0", out Color purple))
{
Debug.LogError("Who messed the purple Hex code up?");
return;
}
DefaultColors.Add(purple);
/*
* ██████ ██ ██ ██ ███████
* ██ ██ ██ ██ ██ ██