mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add history to TextBox
This commit is contained in:
parent
223a846784
commit
4c493aff25
7 changed files with 230 additions and 33 deletions
|
|
@ -111,11 +111,11 @@ bool UINode::isInside(glm::vec2 point) {
|
|||
point.x < pos.x + size.x && point.y < pos.y + size.y);
|
||||
}
|
||||
|
||||
std::shared_ptr<UINode> UINode::getAt(const glm::vec2& point, const std::shared_ptr<UINode>& self) {
|
||||
std::shared_ptr<UINode> UINode::getAt(const glm::vec2& point) {
|
||||
if (!isInteractive() || !enabled) {
|
||||
return nullptr;
|
||||
}
|
||||
return isInside(point) ? self : nullptr;
|
||||
return isInside(point) ? shared_from_this() : nullptr;
|
||||
}
|
||||
|
||||
bool UINode::isInteractive() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue