Графика списка растений в процессе
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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user