mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
b UI
fix from json not setting function ptr to null
This commit is contained in:
@@ -7,7 +7,8 @@ UI_button::UI_button(std::string id, std::string text, Color fg_color, Color bg_
|
|||||||
}
|
}
|
||||||
|
|
||||||
UI_button::UI_button(const json& j)
|
UI_button::UI_button(const json& j)
|
||||||
: UI_item(UI_BUTTON_TYPE)
|
: UI_item(UI_BUTTON_TYPE),
|
||||||
|
m_on_click(nullptr)
|
||||||
{
|
{
|
||||||
from_json(j);
|
from_json(j);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ UI_slider::UI_slider(std::string id, std::string text, Color fg_color, Color bg_
|
|||||||
}
|
}
|
||||||
|
|
||||||
UI_slider::UI_slider(const json& j)
|
UI_slider::UI_slider(const json& j)
|
||||||
: UI_item(UI_SLIDER_TYPE)
|
: UI_item(UI_SLIDER_TYPE),
|
||||||
|
m_on_change(nullptr)
|
||||||
{
|
{
|
||||||
from_json(j);
|
from_json(j);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ UI_textbox::UI_textbox(std::string id, std::string hint, Color fg_color, Color b
|
|||||||
}
|
}
|
||||||
|
|
||||||
UI_textbox::UI_textbox(const json& j)
|
UI_textbox::UI_textbox(const json& j)
|
||||||
: UI_item(UI_TEXTBOX_TYPE)
|
: UI_item(UI_TEXTBOX_TYPE),
|
||||||
|
m_on_change(nullptr)
|
||||||
{
|
{
|
||||||
from_json(j);
|
from_json(j);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user