mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 02:17:53 +02:00
Added new screenshots and linked to them from the docs (#30)
This commit is contained in:
parent
c98a8ef44a
commit
8a0a36a2d5
@ -34,7 +34,7 @@ For proxies the recommended setup is to create one game object per screen and pe
|
||||
* **Transition Url (url)** - Optional URL to call when the screen is about to be shown/hidden. Use this to trigger a transition (see the section on [transitions](#transitions)).
|
||||
* **Focus Url (url)** - Optional URL to call when the screen gains or loses focus (see the section on [screen focus](#screen-focus-gainloss)).
|
||||
|
||||

|
||||

|
||||
|
||||
### Collection factories
|
||||
For factories the recommended setup is to create one game object per screen and per game object attach a collection factory component and an instance of the ```screen_factory.script``` provided by Monarch. The ```screen_factory.script``` will take care of the setup of the screen. All you need to do is to make sure that the script properties on the script are correct:
|
||||
@ -46,6 +46,8 @@ For factories the recommended setup is to create one game object per screen and
|
||||
* **Transition Id (url)** - Optional id of the game object to send a message to when the screen is about to be shown/hidden. Use this to trigger a transition (see the section on [transitions](#transitions)).
|
||||
* **Focus Id (url)** - Optional id of the game object to send a message to when the screen gains or loses focus (see the section on [screen focus](#screen-focus-gainloss)).
|
||||
|
||||

|
||||
|
||||
|
||||
## Navigating between screens
|
||||
The navigation in Monarch is based around a stack of screens. When a screen is shown it is pushed to the top of the stack. When going back to a previous screen the topmost screen on the stack is removed. Example:
|
||||
|
BIN
docs/setup_factory.png
Normal file
BIN
docs/setup_factory.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
docs/setup_proxy.png
Normal file
BIN
docs/setup_proxy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Loading…
x
Reference in New Issue
Block a user