From 0c0446746ca7edc9f0e471bc8ab6e9f1b074c961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Mon, 5 Aug 2019 14:45:40 +0200 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e74da9d..671e365 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,15 @@ Monarch comes with a system for setting up transitions easily in a gui_script us 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: * ```slide_in_right```