Skip to content

Commit

Permalink
Adapt various UI to different aspect ratios (YARC-Official#382)
Browse files Browse the repository at this point in the history
* Update Credits.txt

* Added `dev` branch warning to README

* make MusicLibrary's Sidebar adapt to various aspect ratios

next: fix the song list

* fix MusicLibrary song listing

* fix up MusicLibrary

- adjust margins
- fix DifficultyRing stretch

* Update MenuScene.unity

* fix performance text and solo box

* add scrollbar to settings' tabs area

* fix credits screen

* fix Players Editor

* Change MusicLibrary scaling type

allows fitting more songs in list in ultrawide

---------

Co-authored-by: EliteAsian <[email protected]>
Co-authored-by: EliteAsian <[email protected]>
  • Loading branch information
3 people authored May 27, 2023
1 parent 5a03118 commit ca42030
Show file tree
Hide file tree
Showing 15 changed files with 3,390 additions and 2,359 deletions.
71 changes: 61 additions & 10 deletions Assets/Prefabs/UI/DifficultyRing.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 6670584188681310990}
- {fileID: 5594939885326121917}
- {fileID: 7525821467028091687}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand Down Expand Up @@ -103,7 +102,6 @@ MonoBehaviour:
- {fileID: 1263751245, guid: 3b63aeee98f00194d897a42695807211, type: 3}
- {fileID: 1378811686, guid: 3b63aeee98f00194d897a42695807211, type: 3}
- {fileID: -1032094120, guid: 3b63aeee98f00194d897a42695807211, type: 3}
searchButton: {fileID: 2857051289790792871}
--- !u!114 &2857051289790792871
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -173,18 +171,18 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4109224399020810241}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_LocalScale: {x: 0.73, y: 0.73, z: 0.73}
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 397774209812536632}
m_Father: {fileID: 7525821467028091687}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -18, y: -18}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4326148238973366159
CanvasRenderer:
Expand Down Expand Up @@ -224,6 +222,59 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &5580199597893381376
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7525821467028091687}
- component: {fileID: 7546507804791373283}
m_Layer: 5
m_Name: Aspect Ratio Maintainer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7525821467028091687
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5580199597893381376}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 6670584188681310990}
- {fileID: 5594939885326121917}
m_Father: {fileID: 397774209812536632}
m_RootOrder: 0
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_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &7546507804791373283
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5580199597893381376}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86710e43de46f6f4bac7c8e50813a599, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AspectMode: 3
m_AspectRatio: 1
--- !u!1 &7605917222897663352
GameObject:
m_ObjectHideFlags: 0
Expand All @@ -249,12 +300,12 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7605917222897663352}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 397774209812536632}
m_Father: {fileID: 7525821467028091687}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
Expand Down
Loading

0 comments on commit ca42030

Please sign in to comment.