Added basic central popup service and way to highlight settings.

This commit is contained in:
Simon Lübeß
2025-07-08 19:35:40 +02:00
parent 081f7b4a7e
commit ecfe838ad4
7 changed files with 246 additions and 79 deletions
+9 -1
View File
@@ -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;
}
}