mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
update InlineFrame::act
This commit is contained in:
parent
203862e206
commit
fc68d6ceca
1 changed files with 4 additions and 5 deletions
|
|
@ -36,12 +36,11 @@ void InlineFrame::setDocument(const std::shared_ptr<UiDocument>& document) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void InlineFrame::act(float delta) {
|
void InlineFrame::act(float delta) {
|
||||||
Container::act(delta);
|
if (document == nullptr && !src.empty()) {
|
||||||
if (document || src.empty()) {
|
const auto& assets = *gui.getEngine().getAssets();
|
||||||
return;
|
setDocument(assets.getShared<UiDocument>(src));
|
||||||
}
|
}
|
||||||
const auto& assets = *gui.getEngine().getAssets();
|
Container::act(delta);
|
||||||
setDocument(assets.getShared<UiDocument>(src));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void InlineFrame::setSize(glm::vec2 size) {
|
void InlineFrame::setSize(glm::vec2 size) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue