Announcement

Collapse
No announcement yet.

Using Scaleform in UDK Five Part Tutorial

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    here's hoping

    thanks in advance

    Comment


      #32
      Indeed. Thanks for the tutorials!

      Comment


        #33
        AWESOME! I bought myself Adobe Flash Pro CS5 to make use of Scale form and to broaden my Skill set. these will be very helpful in the future when I make more and more advanced UDK projects.

        Thank you...

        Comment


          #34
          Loving your enthusiasm Mr. Doyle, thanks for all your hard work.

          Comment


            #35
            I don't know if it's you (Matt Doyle) who can do this, but somebody should update the link to the video here too: http://udn.epicgames.com/Three/Scaleform.html

            Comment


              #36
              Originally posted by Matt Doyle View Post
              • Functional options menu (this was already on the plate)
              • List CLIK widgets via UnrealScript
              These would be great, there's very little documentation (that I can find) regarding the unrealscript-side of CLIK interaction. For example, how to I get/set the value of dropdown menus or checkboxes in unrealscript?

              Comment


                #37
                The following UnrealScript would work to get the value of a checkbox, assuming your checkbox has an instance name in Flash of 'aCheckBox' and assuming you're using a CLIK widget for that checkbox:

                Getting a Checkbox's Value

                Code:
                var GFxClikWidget MyCheckBox;
                var bool MyOption;
                
                event bool WidgetInitialized(name WidgetName, name WidgetPath, GFxObject Widget)
                {    
                    switch(WidgetName)
                    {                 
                        case ('aCheckBox'):
                            MyCheckBox = GFxClikWidget(Widget);
                            MyCheckBox.AddEventListener('CLIK_select', OnMyCheckBoxChange);
                        default:
                            break;
                    }
                    return true;
                }
                
                function OnMyCheckBoxChange(GFxClikWidget.EventData ev) {
                    MyOption = bool(MyCheckBox.GetString("_selected"));
                    `log(MyOption);
                }
                
                defaultproperties
                {    
                    WidgetBindings.Add((WidgetName="aCheckBox",WidgetClass=class'GFxClikWidget'))
                }
                This will return true or false, though it will return undefined at first unless you specify the checkbox's value in UnrealScript and/or ActionScript first as true or false.

                NOTE: While you could use CLIK_press as the event to listen for, this would yield the previous state of the checkbox and not the current state. CLIK_select ensures you get the current state of the checkbox AFTER the user pressed the checkbox button.

                Setting a Checkbox's Value

                To set a checkbox from UnrealScript:

                Code:
                SetMyCheckBox(true); // or false
                
                function SetMyCheckBox(bool b) {
                    ActionScriptVoid("SetMyCheckBox");
                }
                In ActionScript, you should have the following code:

                Code:
                function SetMyCheckBox(checked:Boolean) {
                    aCheckBox.selected = checked;
                }

                Comment


                  #38
                  Cool, thanks! I will give that a try.

                  Edit[1] can I use GetBool instead of GetString?
                  Code:
                      MyCheckBox.GetBool("_selected");
                  Edit[2] nevermind, I tested it myself and it works

                  Edit[3] also, as an FYI, I can set the checkbox purely through unrealscript if I use:
                  Code:
                      MyCheckBox.SetBool("selected", MyBooleanVlaue);

                  Comment


                    #39
                    I don't see why not. Give it a try. By the way, I made some adjustments to the code. So you should refresh the post and read the code again.

                    Comment


                      #40
                      Ok. So after tons of researchI cant seem to find the 3Di functionality for UDK. I have the august build but is scaleform 3.2+ not available to UDK Users? The reason i ask is because I want to use it to build my main menu for the game me and my Class mates are building for our project for school. I have tried to register at scaleform and am not able to due to my email being a public address.

                      Please if anyone can help me figure this out i would GREATLY APPRECIATE IT!

                      Thanks

                      Pete

                      Comment


                        #41
                        The video on it is here: http://www.youtube.com/user/scalefor...16/kuEZdxKS3Ns

                        Comment


                          #42
                          in the videos you refer to the 'getting started with click document'
                          where is this?

                          Comment


                            #43
                            Please be aware that most of our documents are only available to licensees of GFx. The videos were originally created for licensees as well, but we have released them to the public to help you guys out.

                            Comment


                              #44
                              looking forward to the settings menu vid matt - my team want to beat me for not having one implemented yet!

                              Comment


                                #45
                                Hi there!,
                                these videos seem extremely helpfull, really!.

                                I´ve a got a basic plain flash menu setup with only one button invoking an FScommand to load a map...

                                Id like to ask if the following assumption is correct:

                                - If I follow the Getting started with CLIK videos to setup a menu using those components, I could later use the 3Di extensions to rotate those same components and convert that menu into the same one but in 3D perspective?

                                Thanks for all the help, cant wait to get home to try some stuff out with this and get on the road with the menu for my game!

                                cheers!

                                Comment

                                Working...
                                X