UI换了很多,spine主视觉停用

This commit is contained in:
FloatGaming
2026-06-15 20:17:25 +08:00
parent 5eec879582
commit 216ab08e8d
3634 changed files with 814422 additions and 382766 deletions
+48 -2
View File
@@ -162,6 +162,7 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
[SerializeField] RectTransform top_PlayerName;
[SerializeField] RectTransform button_Character_Set_Rect;
[SerializeField] RectTransform launch_EzGame_Rect;
[SerializeField] UI_CharacterDialogController character_Dialog_Controller;
[Header("Jiantou Loop")]
[SerializeField] bool play_Jiantou_Loop = true;
@@ -317,7 +318,7 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
button_Story.onClick.AddListener(
() =>
{
gNotice.warning.display("姝ょ増鏈湭寮€鏀捐鍔熻兘");
gNotice.warning.display("此版本未开放该功能");
//Try_Open_Panel(ui_Panel_Story);
});
if (button_Idol != null)
@@ -336,7 +337,7 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
worldChatObject.SetActive(false);
if (button_worldChat != null && worldChatObject != null)
button_worldChat.onClick.AddListener(
() => worldChatObject.SetActive(true));
() => OpenManagedPanel(worldChatObject));
if (button_Select_Music != null)
@@ -361,6 +362,7 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
enterAnim.enabled = true;
}
panel.SetActive(true);
RegisterManagedPanel(panel);
return true;
}
@@ -386,6 +388,7 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
}
panel.SetActive(true);
RegisterManagedPanel(panel);
}
GameObject Try_Open_Prefab(GameObject prefab, ref GameObject instance)
@@ -399,9 +402,42 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
AssignPrefabCanvasCamera(instance);
if (!instance.activeSelf) instance.SetActive(true);
Play_Prefab_Enter(instance);
RegisterManagedPanel(instance);
return instance;
}
void OpenManagedPanel(GameObject panel)
{
if (panel == null)
{
return;
}
panel.SetActive(true);
RegisterManagedPanel(panel);
}
void RegisterManagedPanel(GameObject panel)
{
if (panel == null)
{
return;
}
UIBackStack.RegisterOrBump(
panel,
() => panel != null && panel.activeInHierarchy,
() =>
{
if (panel != null)
{
panel.SetActive(false);
}
return true;
});
}
void AssignPrefabCanvasCamera(GameObject instance)
{
if (instance == null) return;
@@ -498,6 +534,16 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
return;
}
if (character_Dialog_Controller != null)
{
if (!character_Dialog_Controller.enabled)
{
character_Dialog_Controller.enabled = true;
}
character_Dialog_Controller.RebindSoon();
return;
}
GameObject host = null;
Transform[] all = UnityEngine.Object.FindObjectsByType<Transform>(FindObjectsInactive.Include, FindObjectsSortMode.None);
for (int i = 0; i < all.Length; i++)