This commit is contained in:
2026-04-26 04:39:59 +07:00
parent fdb2460c3b
commit 5b22d31259
81 changed files with 14099 additions and 277 deletions

View File

@@ -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