mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 10:27:49 +02:00
Update README.md
This commit is contained in:
parent
49dd390812
commit
0c0446746c
@ -188,6 +188,15 @@ Monarch comes with a system for setting up transitions easily in a gui_script us
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
It is also possible to assign transitions to multiple nodes:
|
||||||
|
|
||||||
|
function init(self)
|
||||||
|
self.transition = transitions.create() -- note that no node is passed to transition.create()!
|
||||||
|
.show_in(gui.get_node("node1"), transitions.slide_in_right, gui.EASING_OUTQUAD, 0.6, 0)
|
||||||
|
.show_in(gui.get_node("node2"), transitions.slide_in_right, gui.EASING_OUTQUAD, 0.6, 0)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
The predefined transitions provided by ```monarch.transitions.gui``` are:
|
The predefined transitions provided by ```monarch.transitions.gui``` are:
|
||||||
|
|
||||||
* ```slide_in_right```
|
* ```slide_in_right```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user