2024-01-27 15:19:52 +03:00
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
2024-01-28 18:37:24 +07:00
|
|
|
|
namespace Content.Shared._White.Cult.UI;
|
2024-01-27 15:19:52 +03:00
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum ListViewSelectorUiKey
|
|
|
|
|
|
{
|
|
|
|
|
|
Key
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public class ListViewBUIState : BoundUserInterfaceState
|
|
|
|
|
|
{
|
2024-03-22 17:23:33 +09:00
|
|
|
|
public List<EntProtoId> Items { get; set; }
|
2024-01-27 15:19:52 +03:00
|
|
|
|
public bool IsUsingPrototypes { get; set; }
|
|
|
|
|
|
|
2024-03-22 17:23:33 +09:00
|
|
|
|
public ListViewBUIState(List<EntProtoId> items, bool isUsingPrototypes)
|
2024-01-27 15:19:52 +03:00
|
|
|
|
{
|
|
|
|
|
|
Items = items;
|
|
|
|
|
|
IsUsingPrototypes = isUsingPrototypes;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public class ListViewItemSelectedMessage : BoundUserInterfaceMessage
|
|
|
|
|
|
{
|
|
|
|
|
|
public string SelectedItem { get; private set; }
|
|
|
|
|
|
public int Index { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
public ListViewItemSelectedMessage(string selectedItem, int index)
|
|
|
|
|
|
{
|
|
|
|
|
|
SelectedItem = selectedItem;
|
|
|
|
|
|
Index = index;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|