Skip to content

Commit

Permalink
Results Screen: Remove unnecessary horizontal scrolling when there ar…
Browse files Browse the repository at this point in the history
…e exactly 4 players. (#933)
  • Loading branch information
thomeval authored Jan 2, 2025
1 parent 7e2cca6 commit a944884
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 106 deletions.
27 changes: 1 addition & 26 deletions Assets/Prefabs/Menu/ScoreScreen/DrumsScoreCard.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ PrefabInstance:
- target: {fileID: 1007692541323341066, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_Value
value: 1
value: 1.0000076
objectReference: {fileID: 0}
- target: {fileID: 1516494443395727076, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
Expand Down Expand Up @@ -397,16 +397,6 @@ PrefabInstance:
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_SizeDelta.x
value: 480
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_SizeDelta.y
value: 837
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalPosition.x
Expand All @@ -417,11 +407,6 @@ PrefabInstance:
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalRotation.w
Expand All @@ -442,16 +427,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down
27 changes: 1 addition & 26 deletions Assets/Prefabs/Menu/ScoreScreen/GuitarScoreCard.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ PrefabInstance:
- target: {fileID: 1007692541323341066, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_Value
value: 1
value: 1.0000007
objectReference: {fileID: 0}
- target: {fileID: 1516494443395727076, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
Expand Down Expand Up @@ -674,16 +674,6 @@ PrefabInstance:
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_SizeDelta.x
value: 480
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_SizeDelta.y
value: 837
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalPosition.x
Expand All @@ -694,11 +684,6 @@ PrefabInstance:
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalRotation.w
Expand All @@ -719,16 +704,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down
27 changes: 1 addition & 26 deletions Assets/Prefabs/Menu/ScoreScreen/ProKeysScoreCard.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ PrefabInstance:
- target: {fileID: 1007692541323341066, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_Value
value: 1
value: 1.0000076
objectReference: {fileID: 0}
- target: {fileID: 1516494443395727076, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
Expand Down Expand Up @@ -397,16 +397,6 @@ PrefabInstance:
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_SizeDelta.x
value: 480
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_SizeDelta.y
value: 837
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalPosition.x
Expand All @@ -417,11 +407,6 @@ PrefabInstance:
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalRotation.w
Expand All @@ -442,16 +427,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down
7 changes: 6 additions & 1 deletion Assets/Prefabs/Menu/ScoreScreen/ScoreCard.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 480, y: 837}
m_SizeDelta: {x: 470, y: 837}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2885240813551093157
MonoBehaviour:
Expand Down Expand Up @@ -3184,6 +3184,11 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6232041351873830570, guid: 81863a63e0d96cf459c263ee0ea6f98e,
type: 3}
propertyPath: m_Value
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8632074353890534202, guid: 81863a63e0d96cf459c263ee0ea6f98e,
type: 3}
propertyPath: m_AnchorMax.x
Expand Down
2 changes: 1 addition & 1 deletion Assets/Prefabs/Menu/ScoreScreen/StatInfo.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 480, y: 21}
m_SizeDelta: {x: 470, y: 21}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &5955370018740084784
MonoBehaviour:
Expand Down
45 changes: 20 additions & 25 deletions Assets/Prefabs/Menu/ScoreScreen/VocalsScoreCard.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2558536234367322089, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2644023843467096552, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchorMax.y
Expand Down Expand Up @@ -392,16 +397,6 @@ PrefabInstance:
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_SizeDelta.x
value: 480
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_SizeDelta.y
value: 837
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalPosition.x
Expand All @@ -412,11 +407,6 @@ PrefabInstance:
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalRotation.w
Expand All @@ -437,16 +427,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2885240813551093152, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -612,6 +592,21 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3191902544221229210, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3191902544221229210, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3191902544221229210, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3280583778863149243, guid: 1b5d8949b9f2d7345a0fed53e687c843,
type: 3}
propertyPath: m_AnchorMax.y
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scenes/ScoreScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ MonoBehaviour:
m_Top: 0
m_Bottom: 0
m_ChildAlignment: 4
m_Spacing: 15
m_Spacing: 10
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 0
Expand Down

0 comments on commit a944884

Please sign in to comment.