Графика списка растений в процессе
This commit is contained in:
1 parent
7c207ef5b9
commit
0c73922662
240 files changed
+107167
-178
No files matched your search
@@ -0,0 +1,34 @@
|
||||
using Code.Infrastructure.UI;
|
||||
using Reflex.Attributes;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Code.Calendar.Panels
|
||||
{
|
||||
public class PlantAddButton : MonoBehaviour, IUIPanelLoaded
|
||||
{
|
||||
[Inject] private IUIService _uiService;
|
||||
[SerializeField] private Button button;
|
||||
|
||||
public void SummonPlantAddMenu()
|
||||
{
|
||||
_uiService.TryLoadCreatePanel(UIPanelType.PlantAdd);
|
||||
|
||||
button.SetEnabled(false);
|
||||
}
|
||||
|
||||
public void UISinglePanelLoaded(UIPanelType uiPanelType)
|
||||
{
|
||||
if (uiPanelType != UIPanelType.PlantAdd) return;
|
||||
|
||||
_uiService.OpenPanel(uiPanelType);
|
||||
|
||||
button.SetEnabled(true);
|
||||
}
|
||||
|
||||
public void UIMultiplePanelLoaded(UIPanelType uiPanelType, UIPanel panel)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc8e93f138d6408f807f76bdfa1865e1
|
||||
timeCreated: 1772703039
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using Code.Calendar.Constants;
|
||||
using Code.Calendar.DataStructures;
|
||||
using Code.Infrastructure.EventBus;
|
||||
using Code.Infrastructure.UI;
|
||||
using PrimeTween;
|
||||
using Reflex.Attributes;
|
||||
@@ -13,6 +14,7 @@ namespace Code.Calendar.Panels
|
||||
public class PlantAddPanel : UIPanel
|
||||
{
|
||||
[Inject] private IPlantService _plantService;
|
||||
[Inject] private EventBus _eventBus;
|
||||
[SerializeField] private TMP_InputField plantName;
|
||||
[SerializeField] private Image image;
|
||||
|
||||
|
||||
Reference in new issue
Block a user