if type.kind != .Struct do continue;
feature := cast(^Type_Info_Struct) type;
-
+
for ^tag: feature.tags {
if tag.type == Feature {
debug_log(.Debug, "Found feature: {}", (cast(^Feature) tag.data).name);
use package core
}
+Hide :: struct {}
Rename :: struct { name: str; }
Slider_Int :: struct { min, max: i32; }
Slider_Float :: struct { min, max: f32; }
for ^member: settings_type.members {
__counter += 1;
+
+ if array.some(member.tags, (x) => {
+ if x.type != type_expr do return false;
+ return *cast(^type_expr) x.data == Hide;
+ }) do continue;
+
member_type := get_type_info(member.type);
row_rect, *rect = ui.Flow.split_horizontal(*rect, top_height=48);
resizable := true;
should_close := false;
- dragging := false;
- resizing := false;
+ [editor.Hide] dragging := false;
+ [editor.Hide] resizing := false;
[editor.Slider_Float.{ 0, 24 }]
shadow := 10.0f;