Update 29.10.2022
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
namespace Nexd.ESX.Client
|
||||
{
|
||||
public static partial class ESX
|
||||
{
|
||||
public static partial class UI
|
||||
{
|
||||
public class MenuElement
|
||||
{
|
||||
public dynamic Raw;
|
||||
|
||||
public MenuElement(dynamic data) => Raw = data;
|
||||
|
||||
public MenuElement(dynamic label, dynamic value, dynamic customdata = null, string type = "default")
|
||||
{
|
||||
Raw = new System.Dynamic.ExpandoObject();
|
||||
Raw.label = label;
|
||||
Raw.value = value;
|
||||
Raw.type = type;
|
||||
custom = customdata;
|
||||
}
|
||||
|
||||
public MenuElement()
|
||||
{
|
||||
Raw = new System.Dynamic.ExpandoObject();
|
||||
Raw.label = new System.Dynamic.ExpandoObject();
|
||||
Raw.value = new System.Dynamic.ExpandoObject();
|
||||
Raw.name = new System.Dynamic.ExpandoObject();
|
||||
Raw.options = new System.Dynamic.ExpandoObject();
|
||||
Raw.type = "default";
|
||||
|
||||
custom = new System.Dynamic.ExpandoObject();
|
||||
}
|
||||
|
||||
public dynamic label
|
||||
{
|
||||
get => Raw.label;
|
||||
set => Raw.label = value;
|
||||
}
|
||||
|
||||
public dynamic name {
|
||||
get => Raw.name;
|
||||
set => Raw.name = value;
|
||||
}
|
||||
|
||||
public dynamic value
|
||||
{
|
||||
get => Raw.value;
|
||||
set => Raw.value = value;
|
||||
}
|
||||
|
||||
public dynamic options {
|
||||
get => Raw.options;
|
||||
set => Raw.options = value;
|
||||
}
|
||||
|
||||
public string type
|
||||
{
|
||||
get => Raw.type;
|
||||
set => Raw.type = value;
|
||||
}
|
||||
|
||||
public dynamic custom { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user