mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
Inventory (WIP part I)
This commit is contained in:
parent
fe5cab0db0
commit
5142f3b4e7
13 changed files with 865 additions and 176 deletions
|
|
@ -10,8 +10,6 @@ using gui::Align;
|
|||
using glm::vec2;
|
||||
using glm::vec4;
|
||||
|
||||
#include <iostream>
|
||||
|
||||
UINode::UINode(vec2 coord, vec2 size) : coord(coord), size_(size) {
|
||||
}
|
||||
|
||||
|
|
@ -85,7 +83,7 @@ shared_ptr<UINode> UINode::getAt(vec2 pos, shared_ptr<UINode> self) {
|
|||
}
|
||||
|
||||
bool UINode::isInteractive() const {
|
||||
return interactive;
|
||||
return interactive && visible();
|
||||
}
|
||||
|
||||
void UINode::setInteractive(bool flag) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue