This commit is contained in:
2026-04-30 19:33:16 +08:00
commit fb2252f688
556 changed files with 69721 additions and 0 deletions
@@ -0,0 +1,6 @@
namespace GeometryTD.UI
{
public class CombineAreaContext
{
}
}
@@ -0,0 +1,8 @@
namespace GeometryTD.UI
{
public class CompAreaContext
{
public RepoItemContext[] ComponentItems;
public TowerRepoItemContext[] TowerItems;
}
}
@@ -0,0 +1,12 @@
using GeometryTD.UI;
namespace GeometryTD.UI
{
public class EventFormContext : UIContext
{
public int EventId;
public string Title;
public string Description;
public EventOptionItemContext[] OptionItems;
}
}
@@ -0,0 +1,10 @@
namespace GeometryTD.UI
{
public class EventOptionItemContext
{
public int OptionIndex;
public string OptionText;
public bool IsSelectable;
public string BlockedReason;
}
}
@@ -0,0 +1,6 @@
namespace GeometryTD.UI
{
public class MainFormContext : UIContext
{
}
}
@@ -0,0 +1,16 @@
using GeometryTD.Procedure;
namespace GeometryTD.UI
{
public sealed class NodeItemContext : UIContext
{
public int NodeId;
public int SequenceIndex;
public RunNodeType NodeType;
public bool IsLocked;
public bool IsCurrent;
public bool IsCompleted;
public bool IsException;
public bool CanClick;
}
}
@@ -0,0 +1,11 @@
namespace GeometryTD.UI
{
public sealed class NodeMapFormContext : UIContext
{
public string Title;
public string ProgressText;
public string CurrentNodeText;
public bool IsRunCompleted;
public NodeItemContext[] NodeItems;
}
}
@@ -0,0 +1,8 @@
namespace GeometryTD.UI
{
public class ParticipantAreaContext : UIContext
{
public TowerRepoItemContext[] TowerItems;
public int MaxCount;
}
}
@@ -0,0 +1,16 @@
namespace GeometryTD.UI
{
public class RepoFormContext : UIContext
{
public string GoldText;
public RepoFormState State;
public bool ShowSellModeButton;
public string SellModeButtonText;
public bool ShowCombineArea;
public bool ShowSellArea;
public CombineAreaContext CombineAreaContext;
public SellAreaContext SellAreaContext;
public CompAreaContext CompAreaContext;
public ParticipantAreaContext ParticipantAreaContext;
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace GeometryTD.UI
{
public enum RepoFormState
{
Assemble = 0,
Sell = 1
}
}
@@ -0,0 +1,8 @@
namespace GeometryTD.UI
{
public enum RepoItemClickActionType : byte
{
OpenDetail = 0,
RemoveParticipant = 1
}
}
@@ -0,0 +1,19 @@
using System;
using GeometryTD.Definition;
namespace GeometryTD.UI
{
[Serializable]
public class RepoItemContext
{
public long InstanceId;
public bool CanDrag;
public float EnduranceRate01;
public RepoItemClickActionType ClickActionType;
public TowerCompSlotType ComponentSlotType;
public bool IsSellMode;
public bool IsSellable = true;
public bool IsSellSelected;
public IconAreaContext IconAreaContext;
}
}
@@ -0,0 +1,10 @@
namespace GeometryTD.UI
{
public class SellAreaContext
{
public string TotalPriceText;
public bool CanConfirmSell;
public RepoItemContext[] ComponentItems;
public TowerRepoItemContext[] TowerItems;
}
}
@@ -0,0 +1,9 @@
using System;
namespace GeometryTD.UI
{
[Serializable]
public class TowerRepoItemContext : RepoItemContext
{
}
}