mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
Minor refactor
This commit is contained in:
parent
b0b3f6770b
commit
6e4d1703c9
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
#include "../../window/Window.h"
|
#include "../../window/Window.h"
|
||||||
#include "../../assets/Assets.h"
|
#include "../../assets/Assets.h"
|
||||||
#include "../../graphics/Batch2D.h"
|
#include "../../graphics/Batch2D.h"
|
||||||
#include "../../window/Events.h"
|
|
||||||
|
|
||||||
using std::shared_ptr;
|
using std::shared_ptr;
|
||||||
|
|
||||||
|
|
@ -19,7 +18,7 @@ Container::Container(vec2 coord, vec2 size) : UINode(coord, size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
shared_ptr<UINode> Container::getAt(vec2 pos, shared_ptr<UINode> self) {
|
shared_ptr<UINode> Container::getAt(vec2 pos, shared_ptr<UINode> self) {
|
||||||
if (!isInside(vec2(Events::x, Events::y))) return nullptr;
|
if (!isInside(pos)) return nullptr;
|
||||||
for (auto node : nodes) {
|
for (auto node : nodes) {
|
||||||
if (!node->visible())
|
if (!node->visible())
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue