Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kinetiknz on May 15, 2012, 12:13:44 AM

Title: Playmaker / EZGUI resolution
Post by: kinetiknz on May 15, 2012, 12:13:44 AM
Hey so, I am using Playmaker and EZGUI for an application GUI and all logic.

It's all working, but I am struggling with using Playmaker to scale up/down the EZGUI gui when resolution changes. In my case the GUI is 'pixel perfect' so in fact I want it to always scale to make the gui look sharp on screen.

Anyway, the gui starts perfectly at any resolution but after changing res in-app the gui isn't scaling. EZGUI doesn't know that the resolution has changed.

The producer of EZGUI told me that I need to broadcast a message the GUI components that gets them to update to the new resolution.

I've made a script that contains:

function Update () {
BroadcastMessage("UpdateCamera");
}

After enabling the script, nothing seems to update. I know this isn't specifically a Playmaker issue, but I'm hoping someone else has run into the same problem, as PM and EZGUI are a common combo.

I could use the built in 'call method' on the EZGUI button, but I really know nothing of scripting, and what methods even are.

Thanks for any advice.










Title: Re: Playmaker / EZGUI resolution
Post by: Alex Chouls on May 15, 2012, 12:23:59 AM
Try using the Send Message action with Delivery set to Broadcast, and Method Name set to UpdateCamera.
Title: Re: Playmaker / EZGUI resolution
Post by: kinetiknz on May 15, 2012, 12:26:02 AM
OH! I didn't even realise that the PM broadcast was the same as the 'code version'

trying now
Title: Re: Playmaker / EZGUI resolution
Post by: Alex Chouls on May 17, 2012, 04:19:14 PM
Did that work?
Title: Re: Playmaker / EZGUI resolution
Post by: kinetiknz on May 17, 2012, 09:13:57 PM
Hmm, nah doesn't seem to work. What would be the best way to actually enable it? At the moment I have the broadcast message FSM on the root of the GUI, and I enable the FSM when the button is clicked. Nothing changes when updated though.
Title: Re: Playmaker / EZGUI resolution
Post by: Alex Chouls on May 18, 2012, 08:50:40 PM
Can you add a Debug.Log to the UpdateCamera method to make sure it's getting called?