move shaders into .glsl files and add #include feature

This commit is contained in:
2019-02-21 19:26:40 +01:00
parent 16eb9de358
commit eaab9c79e5
47 changed files with 1124 additions and 777 deletions

View File

@@ -108,6 +108,14 @@ void NodeCheckBox::set_icon(const std::string& icon_path)
update_icon();
}
void NodeCheckBox::set_value(bool checked, bool trigger_event)
{
this->checked = checked;
update_icon();
if (trigger_event && on_value_changed)
on_value_changed(this, checked);
}
void NodeCheckBox::update_icon()
{
if (m_icon_path.empty())