This commit is contained in:
2026-07-02 09:35:52 +07:00
parent e6e0d7640f
commit cf7369e530
13 changed files with 6070 additions and 358 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
using UnityEngine;
using UnityEngine.UIElements;
namespace Hallucinate.UI
{
public abstract class BaseUIController
{
protected VisualElement root;
protected UIManager uiManager;
public virtual void Initialize(VisualElement uxmlRoot, UIManager manager)
{
root = uxmlRoot;
uiManager = manager;
}
public virtual void Update() { }
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 872f8bfaee91588488a3393579135de9

View File

@@ -0,0 +1,4 @@
namespace Hallucinate.UI
{
public class LobbyController : BaseUIController { }
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 9c37c552a9c18a242bcc8860a0a5212f

View File

@@ -0,0 +1,30 @@
using System;
using UnityEngine;
namespace Hallucinate.UI
{
public class LocalizationManager : MonoBehaviour
{
public static LocalizationManager Instance { get; private set; }
public event Action OnLanguageChanged;
private void Awake()
{
if (Instance == null)
{
Instance = this;
DontDestroyOnLoad(gameObject);
}
else
{
Destroy(gameObject);
}
}
public string GetLocalizedString(string key)
{
return key;
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: ff7ac0ce8c8c98445b895ac53a4618f1

View File

@@ -2,9 +2,6 @@ using UnityEngine;
using UnityEngine.UIElements;
using PrimeTween;
using System.Threading.Tasks;
using DG.Tweening;
using Tween = PrimeTween.Tween;
using Ease = PrimeTween.Ease;
namespace Hallucinate.UI
{
@@ -166,8 +163,8 @@ namespace Hallucinate.UI
public override async Task PlayTransitionOut()
{
/*if (_rotationTween.isAlive) _rotationTween.Stop();
await base.PlayTransitionOut();#1#
if (_rotationTween.isAlive) _rotationTween.Stop();
await base.PlayTransitionOut();
}*/
/*private async void OnLogoClicked(ClickEvent evt)

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 691980524acfc544f9660cfc35ce3616

View File

@@ -0,0 +1,4 @@
namespace Hallucinate.UI
{
public class ProfileController : BaseUIController { }
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: fdea16b110511ef45889ed832b63560b

View File

@@ -0,0 +1,18 @@
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UIElements;
namespace Hallucinate.UI
{
public class UIManager : MonoBehaviour
{
[SerializeField] private UIDocument uiDocument;
public async Task Push<T>() where T : BaseUIController
{
await Task.CompletedTask;
}
public void ToggleSettings() { }
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: bcb7b8ed439bb4546b0648c627c2ce5d