Графика списка растений в процессе

This commit is contained in:
ThomasCharester committed 2026-03-05 12:51:19 +03:00
1 parent 7c207ef5b9
commit 0c73922662
240 files changed
+107167 -178

No files matched your search

@@ -51,6 +51,8 @@ namespace Code.Calendar.DataStructures
else
{
await using (File.Create(path)) { }
_plants = new();
}
_inAction = false;
@@ -45,6 +45,7 @@ namespace Code.Calendar.DataStructures
else
{
await using (File.Create(path)) { }
_tasks = new ();
}
_eventBus.RaiseEvent<ITaskServiceHandle>(x => x.TasksLoaded());
@@ -1,12 +0,0 @@
using UnityEngine;
namespace Code.Calendar.OtherUIElements
{
public class AddPlantButton : MonoBehaviour
{
public void OpenAddPlant()
{
}
}
}
@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 67f6127a30aa48ea8157228ad37df8a6
timeCreated: 1772560454
@@ -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;