Update
This commit is contained in:
@@ -11,9 +11,20 @@ namespace UIEditor
|
||||
{
|
||||
UIManager manager = (UIManager)target;
|
||||
|
||||
// Vẽ giao diện mặc định (List screens, sliders...)
|
||||
// Draw default fields (Initial Screen, Focus Radius, Global Opacity, etc.)
|
||||
base.OnInspectorGUI();
|
||||
|
||||
EditorGUILayout.Space(10);
|
||||
EditorGUILayout.LabelField("GLOBAL STYLING", EditorStyles.boldLabel);
|
||||
|
||||
// Re-sync if opacity slider changes
|
||||
EditorGUI.BeginChangeCheck();
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
manager.SyncScreens();
|
||||
EditorUtility.SetDirty(manager);
|
||||
}
|
||||
|
||||
EditorGUILayout.Space(20);
|
||||
EditorGUILayout.LabelField("QUICK DASHBOARD", EditorStyles.boldLabel);
|
||||
EditorGUILayout.HelpBox("Click các nút dưới đây để xem nhanh giao diện mà không cần Play game.", MessageType.Info);
|
||||
@@ -28,7 +39,7 @@ namespace UIEditor
|
||||
if (GUILayout.Button($"SHOW: {screen.screenName}", GUILayout.Height(30)))
|
||||
{
|
||||
manager.ShowOnly(screen.screenName);
|
||||
EditorUtility.SetDirty(manager); // Lưu trạng thái
|
||||
EditorUtility.SetDirty(manager);
|
||||
}
|
||||
|
||||
// Toggle nhanh trạng thái Active
|
||||
|
||||
Reference in New Issue
Block a user