mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'options' selectbox property
This commit is contained in:
parent
2aff1a39eb
commit
ba13a4b61c
3 changed files with 55 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue