add 'options' selectbox property

This commit is contained in:
MihailRis 2025-06-28 14:01:22 +03:00
parent 2aff1a39eb
commit ba13a4b61c
3 changed files with 55 additions and 0 deletions

View file

@ -58,6 +58,10 @@ const std::vector<SelectBox::Option>& SelectBox::getOptions() const {
return options;
}
void SelectBox::setOptions(std::vector<Option>&& options) {
this->options = std::move(options);
}
void SelectBox::drawBackground(const DrawContext& pctx, const Assets&) {
glm::vec2 pos = calcPos();
auto batch = pctx.getBatch2D();