Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jess84 on April 13, 2014, 11:22:22 AM

Title: Daikon Forge example scenes?
Post by: jess84 on April 13, 2014, 11:22:22 AM
I've been looking through both the example DKForge scenes, and the PlayMaker actions - but I have no clue where to start with plugging the 2 together to make a working menu system.  (and there doesn't seem to be any tutorials on here or the DKForge site)

Are there any working example scenes that use PlayMaker actions?

Would anyone be willing to share a scene as a starting point?
Title: Re: Daikon Forge example scenes?
Post by: jeanfabre on April 14, 2014, 07:47:59 AM
Hi,

 I am using DFGui at the moment, but there isn't any examples provided explaining how to build a menu, so the first step would be to request a menu sample to the DFGui author, then I can port it into playmaker.

bye,

 Jean
Title: Re: Daikon Forge example scenes?
Post by: kuolema on April 15, 2014, 12:09:29 AM
I have been using Daikon Forge and PlayMaker together extensively as well. If you haven't already, start by looking at the example scenes. The one scene in particular that is of the most use is called "Game Menu". That shows a very good example of a menu as it shows/hides elements based on where you're at. It's very complex, but you'll learn a lot.

After you have reviewed that scene and understand how the elements work and interact, you can add a DF GUI interface wizard to your scene. From there, you can either make an empty game object for all of your PlayMaker UI actions, or you can add a PlayMaker FSM to the DF GUI UI root itself.

Personally, I like to keep all of my UI stuff in one place, and the UI root object seems like the best place, so I add my FSM there. I also make FSMs for each button (create a template!) and have a state that performs the "onclick" action which simply broadcasts an event to the UI root FSM. From there, it's all PlayMaker!

Please post again if you need more details or whatever. I don't know your experience level with playmaker or DF, so this was a pretty simple "overview", but feel free to ask more questions. I'll monitor this thread =)
Title: Re: Daikon Forge example scenes?
Post by: jeanfabre on April 15, 2014, 10:12:15 AM
Hi,

 ok, thats odd, I don't have a "game menu" scene? can you precise a bit more? what version of DFGui are you using and where is the scene precisly located wirthin the assets?

bye,

 Jean
Title: Re: Daikon Forge example scenes?
Post by: kuolema on April 15, 2014, 09:41:06 PM
Hey Jean - the version of DF-GUI that I'm running is the latest version, 1.0.15(hotfix). The "Game Menu" example scene is located in the package under /Daikon Forge/Examples/Game Menu/. You can view the scene in the examples section of their website using the unity web player here: http://www.daikonforge.com/dfgui/examples/menu/
Title: Re: Daikon Forge example scenes?
Post by: jeanfabre on April 17, 2014, 02:31:51 PM
Hi,

 very odd, I don't have this and I am using the same version. Can you try on a a fresh project, maybe this "game menu" folder was on previous version and got removed.

bye,

 Jean
Title: Re: Daikon Forge example scenes?
Post by: jess84 on April 17, 2014, 02:34:30 PM
It's there in a fresh project:

Assets\Daikon Forge\Examples\Game Menu\
Title: Re: Daikon Forge example scenes?
Post by: jeanfabre on April 17, 2014, 02:43:48 PM
fun...

 Can you package that folder and send it to me? I just don't have it here...

Bye,

 Jean
Title: Re: Daikon Forge example scenes?
Post by: jess84 on April 17, 2014, 02:49:49 PM
.
Title: Re: Daikon Forge example scenes?
Post by: jeanfabre on April 17, 2014, 03:49:51 PM
Hi,

 you need to "package" it using Unity, Select the folder and then go to the menu "Assets/Export Package", unselect ""Include dependancies" and then export.

bye,

 Jean
Title: Re: Daikon Forge example scenes?
Post by: jess84 on April 17, 2014, 03:53:01 PM
Is that really necessary when you have the latest version of DKForge installed? Surely you just need to copy that folder into your examples folder?
Title: Re: Daikon Forge example scenes?
Post by: jeanfabre on April 17, 2014, 04:07:36 PM
hi,

 As I said, I just don't have this at all, I am running the same version as you, and I don't have this folder AT ALL...  I have no idea why you have this and I don't... I am creating a fresh project, downloading DFgui from the asset store and I just don't have the same content for some very obscur reasons...

I do have Daikon Forge GUI v1.0.15 (hotfix) ( double checked using the Change log itself).

As soon as I have an example with a menu created in dfgui, then I can support it, else I can't, because I don't know how to do this, I need a sample to check it out first.

Bye,

 Jean
Title: Re: Daikon Forge example scenes?
Post by: kuolema on April 17, 2014, 08:10:56 PM
Here ya go. Keep in mind it's their example game menu, so there's quite a bit of work to get it into playmaker and out of the bindings that drive DF GUI tweens. I also made some code changes to my local copy of their actions because they don't support calling tweens by name (and therefore assigning the tweens to variables) and it's insanely frustrating to drag and drop the correct component into playmaker. Have fun!
Title: Re: Daikon Forge example scenes?
Post by: jess84 on April 17, 2014, 08:24:09 PM
That's great, thanks!

One of the (probably quite easy) things that I couldn't work out - how to get the float value from the DF slider (e.g. SFX Volume) using a playmaker action.
Title: Re: Daikon Forge example scenes?
Post by: kuolema on April 17, 2014, 10:00:02 PM
jess - You should be able to easily do that with the "DFGUI Slider Get Value" action in the "Daikon Forge GUI - Slider" area, and you can store that retrieved value in any Float type variable.
Title: Re: Daikon Forge example scenes?
Post by: jess84 on April 18, 2014, 11:20:18 AM
Thanks for that! I spent ages playing around with regular Get Properties. Doh.
Title: Re: Daikon Forge example scenes?
Post by: doppelmonster on April 22, 2014, 05:24:27 AM
Hi ,
i also started using DF-GUI recently. In my opinion the actions where to prominent in the action browser so i reordered them. I attached the package.
Here is a screenschot how i use it for basic menues:

http://www.evernote.com/shard/s239/sh/47c859c3-27ff-4e93-8623-344883279736/1df8faa018fa9adf2f0492e205fe3168 (http://www.evernote.com/shard/s239/sh/47c859c3-27ff-4e93-8623-344883279736/1df8faa018fa9adf2f0492e205fe3168)

I mainly use "Set is visible" actions to hide/unhide the menues and "click events"  to listen to button clicks. Its pretty much the same as you would use GUI Text/Texture.

You can check the result here:

http://hutonggames.com/playmakerforum/index.php?topic=7060.0 (http://hutonggames.com/playmakerforum/index.php?topic=7060.0)
Title: Re: Daikon Forge example scenes?
Post by: jess84 on April 25, 2014, 09:53:39 AM
Thanks DoppleMonster - that's really useful information!