Fixed ui for int fields
This commit is contained in:
@@ -180,7 +180,9 @@ generate_member_ui :: (type: *Type_Info_Struct, builder: *String_Builder, path:
|
|||||||
}
|
}
|
||||||
//case .ENUM; #through;
|
//case .ENUM; #through;
|
||||||
case .INTEGER; {
|
case .INTEGER; {
|
||||||
print_to_builder(builder, "\tui_int_field(tprint(\"%\"), cast(*int)*e.%);\n", new_path, new_path);
|
print_to_builder(builder, "\t{val := cast(int)e.%;\n", new_path);
|
||||||
|
print_to_builder(builder, "\tui_int_field(tprint(\"%\"), *val);\n", new_path);
|
||||||
|
print_to_builder(builder, "\te.% = xx val;}\n", new_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user