|
@@ -213,6 +213,8 @@ method move*(self: NodePtr, x, y: float) {.base, inline.} =
|
|
|
## - `x`: how much to add to the position on the X axis.
|
|
|
## - `y`: how much to add to the position on the Y axis.
|
|
|
self.position += Vector2(x, y)
|
|
|
+ self.can_use_anchor = false
|
|
|
+ self.can_use_size_anchor = false
|
|
|
|
|
|
method move*(self: NodePtr, vec2: Vector2Ref) {.base, inline.} =
|
|
|
## Adds `vec2` to the node position.
|
|
@@ -223,13 +225,6 @@ method move*(self: NodePtr, vec2: Vector2Ref) {.base, inline.} =
|
|
|
self.can_use_anchor = false
|
|
|
self.can_use_size_anchor = false
|
|
|
|
|
|
-method move*(self: NodePtr, x, y: GLfloat) {.base, inline.} =
|
|
|
- ## Adds `x` and `y` to the node position.
|
|
|
- self.position.x += x
|
|
|
- self.position.y += y
|
|
|
- self.can_use_anchor = false
|
|
|
- self.can_use_size_anchor = false
|
|
|
-
|
|
|
method removeChild*(self: NodePtr, index: int) {.base.} =
|
|
|
## Removes node child at a specific position.
|
|
|
##
|