mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added basic central popup service and way to highlight settings.
This commit is contained in:
@@ -17,6 +17,12 @@ namespace GlitchyEngine
|
||||
{
|
||||
}
|
||||
|
||||
enum SettingEditor
|
||||
{
|
||||
case Default;
|
||||
case Path;//(bool MultiSelect, bool OpenFolderDialog, StringView Filter);
|
||||
}
|
||||
|
||||
/// Fields with this Attribute will be exposed as settings.
|
||||
[AttributeUsage(.Field, .ReflectAttribute)]
|
||||
struct SettingAttribute : Attribute
|
||||
@@ -24,12 +30,14 @@ namespace GlitchyEngine
|
||||
public String Category;
|
||||
public String Name;
|
||||
public String Tooltip;
|
||||
public SettingEditor EditorMode;
|
||||
|
||||
public this(String category, String name, String tooltip = "")
|
||||
public this(String category, String name, String tooltip = "", SettingEditor editorMode = .Default)
|
||||
{
|
||||
Category = category;
|
||||
Name = name;
|
||||
Tooltip = tooltip;
|
||||
EditorMode = editorMode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user