playMaker

Author Topic: Daikon Forge example scenes?  (Read 7213 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
Daikon Forge example scenes?
« 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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Daikon Forge example scenes?
« Reply #1 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

kuolema

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Daikon Forge example scenes?
« Reply #2 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 =)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Daikon Forge example scenes?
« Reply #3 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

kuolema

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Daikon Forge example scenes?
« Reply #4 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/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Daikon Forge example scenes?
« Reply #5 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

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Daikon Forge example scenes?
« Reply #6 on: April 17, 2014, 02:34:30 PM »
It's there in a fresh project:

Assets\Daikon Forge\Examples\Game Menu\

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Daikon Forge example scenes?
« Reply #7 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

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Daikon Forge example scenes?
« Reply #8 on: April 17, 2014, 02:49:49 PM »
.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Daikon Forge example scenes?
« Reply #9 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

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Daikon Forge example scenes?
« Reply #10 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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Daikon Forge example scenes?
« Reply #11 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

kuolema

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Daikon Forge example scenes?
« Reply #12 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!

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Daikon Forge example scenes?
« Reply #13 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.

kuolema

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Daikon Forge example scenes?
« Reply #14 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.