- Retained the existing screen positioning logic
- Add support for button actions
1. Open a URL on click (e.g. for a watermark sprite)
2. Call a named method on all Room objects
- Moved example implementation to Button Room
The Photon Networking add on for PlayMaker defines a class called
‘Room’ in the global namespace which conflicts with Fungus.Room. To fix
this, I’ve moved all Room derived example classes into the Fungus
namespace.
- Default page position (reset every time player enters a Room)
- Option to auto-center the choose menu
- Moved continue and manual pan icons to bottom left
- Refactored page rect calculations to avoid redundant code
- Added manual pan to example room
- There is now only one Page game object. It is created automatically
by the Game class on startup.
- To control Page layout, use the new SetPageTop(), SetPageMiddle(),
SetPageBottom(), SetPageRect() & SetPageBounds() commands.
- You can still specify Page layout in the editor using the new
PageBounds script & prefab, using the SetPageBounds() method.
- Replaced Game.mainCamera with built-in Camera.main
- Added StoreView() and PanToStoredView()
- Game class now handles rendering fade texture (instead of
CameraController)
- Game class handles rendering pan / continue icons
- Added new StartManualPan() and StopManualPan() commands to manually
pan between 2 views
- Removed continueStyle class & prefab (replaced by continue icon
rendering)
- Removed Game.activeView as it’s not needed
- Parallax factor can now be controlled in X & Y
- Reorganised command classes
- Added PanToPosition() command
- Pages now default to display full-size at bottom of screen.
- Changed Page.VerticalAlign to Page.Layout and provided better options
for controlling how the page automatically resizes.
- Added ContinueStyle component and prefab to control appearance of
continue button
- Can control continue button position on screen and padding from
screen edge.
- Added Game.continueStyle property
- Buttons now have a Button component at design time
- The Button.autoHide property controls automatic hiding when
displaying page text / waiting
- The Button.hideOnFlag property controls hiding when a named flag
value is set to true
- Added Button prefab asset
- Added default Button sprite texture
- Auto Buttons stay hidden while executing wait commands
- Added WaitForInput() command to wait for a click/tap/keypress
- Replaced click sound with a quieter version
- Added Button example room
- New AddAutoButton() method to make buttons which automatically
show/hide depending on game context.
- Added a fadeButtonDuration property to Game
- Added a button click sound effect
- Added CC button icon images to example project