|
|
@ -56,10 +56,12 @@ DECLARE_MENU_EDIT_TYPE(float, float3, ftostr3, 1 ); // 123 |
|
|
|
DECLARE_MENU_EDIT_TYPE(float, float52, ftostr52, 100 ); // 123.45
|
|
|
|
DECLARE_MENU_EDIT_TYPE(float, float43, ftostr43sign, 1000 ); // 1.234
|
|
|
|
DECLARE_MENU_EDIT_TYPE(float, float5, ftostr5rj, 0.01f ); // 12345 right-justified
|
|
|
|
DECLARE_MENU_EDIT_TYPE(float, float5_25, ftostr5rj, 0.04f ); // 12345 right-justified (25 increment)
|
|
|
|
DECLARE_MENU_EDIT_TYPE(float, float51, ftostr51rj, 10 ); // 1234.5 right-justified
|
|
|
|
DECLARE_MENU_EDIT_TYPE(float, float51sign, ftostr51sign, 10 ); // +1234.5
|
|
|
|
DECLARE_MENU_EDIT_TYPE(float, float52sign, ftostr52sign, 100 ); // +123.45
|
|
|
|
DECLARE_MENU_EDIT_TYPE(uint32_t, long5, ftostr5rj, 0.01f ); // 12345 right-justified
|
|
|
|
DECLARE_MENU_EDIT_TYPE(uint32_t, long5_25, ftostr5rj, 0.04f ); // 12345 right-justified (25 increment)
|
|
|
|
|
|
|
|
////////////////////////////////////////////
|
|
|
|
///////// Menu Item Draw Functions /////////
|
|
|
@ -124,10 +126,12 @@ DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(float3); // 123 right-justif |
|
|
|
DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(float52); // 123.45
|
|
|
|
DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(float43); // 1.234
|
|
|
|
DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(float5); // 12345 right-justified
|
|
|
|
DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(float5_25); // 12345 right-justified (25 increment)
|
|
|
|
DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(float51); // 1234.5 right-justified
|
|
|
|
DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(float51sign); // +1234.5
|
|
|
|
DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(float52sign); // +123.45
|
|
|
|
DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(long5); // 12345 right-justified
|
|
|
|
DEFINE_DRAW_MENU_ITEM_SETTING_EDIT(long5_25); // 12345 right-justified (25 increment)
|
|
|
|
|
|
|
|
#define draw_menu_item_edit_bool(sel, row, pstr, pstr2, data, ...) DRAW_BOOL_SETTING(sel, row, pstr, data) |
|
|
|
#define draw_menu_item_edit_accessor_bool(sel, row, pstr, pstr2, pget, pset) DRAW_BOOL_SETTING(sel, row, pstr, data) |
|
|
@ -205,10 +209,12 @@ DECLARE_MENU_EDIT_ITEM(float3); |
|
|
|
DECLARE_MENU_EDIT_ITEM(float52); |
|
|
|
DECLARE_MENU_EDIT_ITEM(float43); |
|
|
|
DECLARE_MENU_EDIT_ITEM(float5); |
|
|
|
DECLARE_MENU_EDIT_ITEM(float5_25); |
|
|
|
DECLARE_MENU_EDIT_ITEM(float51); |
|
|
|
DECLARE_MENU_EDIT_ITEM(float51sign); |
|
|
|
DECLARE_MENU_EDIT_ITEM(float52sign); |
|
|
|
DECLARE_MENU_EDIT_ITEM(long5); |
|
|
|
DECLARE_MENU_EDIT_ITEM(long5_25); |
|
|
|
|
|
|
|
class MenuItem_bool { |
|
|
|
public: |
|
|
|