add history to TextBox

This commit is contained in:
MihailRis
2025-03-12 01:52:08 +03:00
parent 223a846784
commit 4c493aff25
7 changed files with 230 additions and 33 deletions
+2 -2
View File
@@ -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 {