Add radio button with simple/advanced view, add widget visibility

This commit is contained in:
dec05eba
2024-08-07 00:21:32 +02:00
parent b229b060ad
commit a3e479d5b2
18 changed files with 404 additions and 24 deletions

View File

@@ -11,11 +11,17 @@ namespace gsr {
}
void Label::draw(mgl::Window &window, mgl::vec2f offset) {
if(!visible)
return;
text.set_position((position + offset).floor());
window.draw(text);
}
mgl::vec2f Label::get_size() {
if(!visible)
return {0.0f, 0.0f};
return text.get_bounds().size;
}
}