-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slice9 Example #19
Slice9 Example #19
Conversation
Example showcasing slice-9 scaling gui node. Node animation is used for scaling in real time showing slice-9 potential.
function getshape(self) -- < 2 > | ||
local node = gui.get_node("slice_box") | ||
local function animate_size(node, shape) -- < 3 > | ||
gui.animate(node, "size", shape, gui.EASING_INOUTCUBIC, 1.75, 2.5, getshape, gui.PLAYBACK_ONCE_FORWARD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation looks off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you pointing to the tab space after getshape? If so fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Please review the comments!
Good catch thanks! made getshape function local. I think I fixed indentation, was it before the -- < 2 > ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Example showcasing slice-9 scaling gui node. Node animation is used for scaling in real time showing slice-9 potential.