chore: organized project ui structure

This commit is contained in:
Gerard Gascón 2024-04-15 17:53:15 +02:00
parent 58ec07b1a0
commit d6c618add0
10 changed files with 8 additions and 4 deletions

View file

@ -2,6 +2,7 @@
using Domain; using Domain;
using Presenter; using Presenter;
using UnityEngine; using UnityEngine;
using View.UI;
namespace View { namespace View {
public class Dependencies : MonoBehaviour { public class Dependencies : MonoBehaviour {

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8ed2eebce0014d24a29eea7ee5f51ba4
timeCreated: 1713196313

View file

@ -1,7 +1,7 @@
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
namespace View { namespace View.UI {
public class CloseButton : MonoBehaviour { public class CloseButton : MonoBehaviour {
private Button _button; private Button _button;

View file

@ -4,7 +4,7 @@ using Presenter;
using TMPro; using TMPro;
using UnityEngine; using UnityEngine;
namespace View { namespace View.UI {
public class ExpressionInput : MonoBehaviour, IExpressionInput { public class ExpressionInput : MonoBehaviour, IExpressionInput {
[SerializeField] private TMP_Text text; [SerializeField] private TMP_Text text;
private ExpressionClick _click; private ExpressionClick _click;

View file

@ -4,7 +4,7 @@ using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityEngine.UI; using UnityEngine.UI;
namespace View { namespace View.UI {
public class UIVisibility : MonoBehaviour, IExpressionInput { public class UIVisibility : MonoBehaviour, IExpressionInput {
[SerializeField] private CanvasGroup ui; [SerializeField] private CanvasGroup ui;
[SerializeField] private float fadeDuration = .5f; [SerializeField] private float fadeDuration = .5f;

View file

@ -1,6 +1,6 @@
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
namespace View { namespace View.UI {
public class UnfocusableEventSystem : EventSystem { public class UnfocusableEventSystem : EventSystem {
//Dummy method to prevent calling base method //Dummy method to prevent calling base method
protected override void OnApplicationFocus(bool hasFocus) { } protected override void OnApplicationFocus(bool hasFocus) { }