UI HUGE UPDATE
This commit is contained in:
@@ -6,6 +6,7 @@ public class uRecentGameHistory : MonoBehaviour
|
||||
{
|
||||
private const string SongResourcesPath = "song_songIndex";
|
||||
private const int MaxVisibleRecordCount = 5;
|
||||
private const float DefaultPrefabScaleRatio = 1.25f;
|
||||
|
||||
[Header("gameobjects")]
|
||||
public GameObject gameHistoryPrefab;
|
||||
@@ -13,6 +14,9 @@ public class uRecentGameHistory : MonoBehaviour
|
||||
public Transform dGameHistoryParent;
|
||||
public GameObject more_gameHistory;
|
||||
|
||||
[Header("layout")]
|
||||
public float prefabScaleRatio = DefaultPrefabScaleRatio;
|
||||
|
||||
[Header("buttons")]
|
||||
public Button more_gameHistoryButton;
|
||||
public Button shut_gameHistoryButton;
|
||||
@@ -71,6 +75,7 @@ public class uRecentGameHistory : MonoBehaviour
|
||||
}
|
||||
|
||||
GameObject instance = Instantiate(gameHistoryPrefab, gameHistoryParent);
|
||||
instance.transform.localScale *= prefabScaleRatio;
|
||||
previewEntries.Add(instance);
|
||||
ghPrefab controller = instance.GetComponent<ghPrefab>();
|
||||
if (controller == null)
|
||||
|
||||
Reference in New Issue
Block a user