Развитие системы растений

This commit is contained in:
ThomasCharester committed 2026-03-02 18:25:46 +03:00
1 parent 1b578067f3
commit ba49ef5015
218 files changed
+70415 -1519

No files matched your search

@@ -0,0 +1,22 @@
using System;
using Code.Infrastructure.UI;
using PrimeTween;
using UnityEngine;
using UnityEngine.UI;
namespace Code.Calendar.Panels
{
public class LoadingPanel : UIPanel
{
[SerializeField] private Image loadingScreen;
public override void Open(Action callback = null)
{
Tween.Alpha(loadingScreen, 1f, 1f).OnComplete(target: this, _ => callback?.Invoke());
}
public override void Close(Action callback = null)
{
Tween.Alpha(loadingScreen, 0f, 1f).OnComplete(target: this, _ => callback?.Invoke());
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 4466c13a031a42498f42c15baf25ec03
timeCreated: 1772123986
+22
View File
@@ -0,0 +1,22 @@
using System;
using Code.Infrastructure.UI;
using PrimeTween;
using UnityEngine;
using UnityEngine.UI;
namespace Code.Calendar.Panels
{
public class LogoPanel : UIPanel
{
[SerializeField] private Image logo;
public override void Open(Action callback = null)
{
Tween.Alpha(logo, 1f, 1f).OnComplete(target: this, _ => callback?.Invoke());
}
public override void Close(Action callback = null)
{
Tween.Alpha(logo, 0f, 1f).OnComplete(target: this, _ => callback?.Invoke());
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 03f95468478e4025944889f8b4a54798
timeCreated: 1772123906
@@ -0,0 +1,19 @@
using System;
using Code.Infrastructure.UI;
namespace Code.Calendar.Panels
{
public class PictureChooseMenu : UIPanel
{
public override void Open(Action callback = null)
{
}
public override void Close(Action callback = null)
{
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 46e10e555bb5495899af512610cde913
timeCreated: 1772119767
@@ -0,0 +1,43 @@
using System;
using Code.Calendar.Constants;
using Code.Calendar.DataStructures;
using Code.Infrastructure.UI;
using PrimeTween;
using Reflex.Attributes;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
namespace Code.Calendar.Panels
{
public class PlantAddPanel : UIPanel
{
[Inject] private IPlantService _plantService;
[SerializeField] private TMP_InputField plantName;
[SerializeField] private Image image;
public void TryGetIcon()
{
}
public void TryAddPlant()
{
Plant newPlant = new()
{
Name = plantName.text,
IconPath = null
};
_plantService.AddPlant(newPlant);
}
public override void Open(Action callback = null)
{
Tween.Alpha(image, 1f, 1f).OnComplete(target: this, _ => callback?.Invoke());
}
public override void Close(Action callback = null)
{
Tween.Alpha(image, 0f, 1f).OnComplete(target: this, _ => callback?.Invoke());
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2b11bfff50fe458c8799204f39f395ce
timeCreated: 1772119636