Skip to main content

GettingStartedControls Part 2


Part

Climate2 of the GettingStartedControls Tutorial covers the creation of a scene for climate control using various predefined Scene

Composer controls. As basis for part 2 of our GettingStartedControls creation tutorial please use your own created solution from part 1.

OurThe final sceneresult of our ClimateControl Scene will look like this:

drawing-7-1676530817.pngdrawing-7-1676530817.png

Please


create

Preparing the Climate Scene

    Create a new scene usingvia the Scenemenu menu's"Scene" - "New 2D Scene…Scene" or press < Ctrl+2 > on your keyboard
      The "Add menuNew item.Scene
      2D"
      dialog
      will
      be
      drawing-7-1676530835.png
      opened.

      Name

      In the newfirst scenerow select "/Scenes" from the drop-down menu. Enter "SceneClimate" as name and press [ OK ]. We always use the prefix "Scene" to have all scenes listed nearnext to each other in the Solution Explorer view.panel.
      drawing-5-1731659961.png

      A new scene "SceneClimate" is created and visible in the Solution Explorer panel in folder "Scenes". The new scene is nowopened createdin the Scene Editor and already opened insidein the Scene Tree panel. ItIn the Scene Tree panel you can see that the scene already containshas a standardcamera. camera.In Thethe ViewportRender sizeTargets ofpanel you can see that the camera is usingalready the size of the Render Target (1024x768). The new scene's camera should automatically connectadded to the RenderRenderTarget.
      Target.
      drawing-5-1740742661.png
      If


      it isn't, please drag the Camera under the Render Target inIn the Render Targets panel.panel check the checkbox of "SceneClimate\Camera" in order to enable rendering. In the Render Targets panel select the SceneClimate\Camera. In the Properties panel's [ Camera ] section change the sequence number to 1.
        The camera's sequence number is set to 1. In the Scene Tree panel the red Information/Warning/Error square disappears.
        drawing-5-1731660060.png

        Before dragging

        Configure the new Camera of SceneClimate, the RenderTarget setup looks like this:

        drawing-5-1731660115.png

        After dragging and dropping, please check the checkbox in front of the SceneClimate/Camera(0) entry to enable rendering.

        drawing-5-1731660172.png

        Setting up the Climate SceneClimateScene's Layout

        For the climate scene we will use a more realistic setup of the scene than before, because very often the layout of the elements of a scene are dependent to the screen size or language. Some languages for example are written from right to left and others from left to right. This for sure will influence the layout of texts and controls. Instead of absolute positioning of all elements, we will use a GridLayout.

        Probably

          In the easiestToolbox layoutpanel mechanismunder to[ use is the grid layout control. You can find the grid layout in the toolbox in the group of "Nodes 2D".2D It] isdrag theand icondrop witha theGridLayout 9(see squaresimage as shown below.
          drawing-5-1731660819.png

          Drag the grid layoutbelow) into the Scene Editor panel or into the Scene Tree panel on the SceneClimate node. The

          onlyA difference of both actions is, that dragging into the EditorGridLayout is setting the last mouse position as the position of the grid layout. But this can be adapted easily. Open the context menu of the grid using the right mouse button on top of the nodevisible in the Scene Tree panel. ChooseIt is also available in the Scene Editor, but only its pivot point is visible when it is selected.
          drawing-5-1740746353.png


          In the Scene Tree panel right-click on the GridLayout to open the context menu and choose "Configure Layouter...".
            The "Grid Layouter Editor" will popup where the GridLayout can be configured.
            drawing-5-1731660931.png
            drawing-5-1740746340.png

            A

            new dialog is shown which helps in configuration ofOn the gridGrid layoutLayout control.Editor's Uselower thisleft dialogcorner, use the [ + ] buttons to configureadd rows and columns (see image below). Configure 6 rows and 4 columns. There
            areThe buttonsGridLayout atis configured with 6 rows and 4 columns.
            drawing-5-1740747781.png


            Configure the bottomcolumns' widths and the rows' heights according to addthe ortable deletebelow rows/columns.using
            the
            input
            drawing-7-1676530953.png

            You can now see a rough grid layout. The numbersfields on the top and onright. the

            right side can be used to define the width of the columsRows and thecolumns heightare of the rows. You can either use numbers greater than 1 as direct pixel sizes or you can use numbers between 0 and 1 to define ratios. See [GridLayouter].

            We use the first and last column as free space for aesthetic reasons. The second column will be used for text descriptions and the third column for the controls to change settings. Therefore, enter into the edit fields on top of the grid (0.05 / 0.3 / 0.5 / 0.05). For all rows please fill in 0.2configured as in the image above. Press

            Column Width
            Row Width
            Column 1
            0.05
            Row 1 0.20 Column 2
            0.30
            Row 2
            0.20 Column 3
            0.50
            Row 3
            0.20 Column 4
            0.05

            Row 4
            0.20


            Row 5
            0.20    
            Row 6
            0.20 When you're done configuring, press the [ OK to] closebutton. the
            dialog.The Grid Layout Editor will be closed.

            InBe theaware Scene Editorthat you cannot see the gridGridLayout. untilIts now,size becauseis 0 as long as no size and no content for its cells has been configured.


            In the gridProperties haspanel's no[ content.Transformations Let] ussection create dummy content to better understand and seeconfigure the grid.following Dragposition a Solid Color Node fromof the ToolboxGridLayout.
            on
            topThe position of the GridLayout node in the Scene TreeEditor Panel.has
            changed.
            Target
            drawing-5-1731661379.png
            Item
            Setting Value
            Position
            drawing-5-1731661485.png
            X
            0
            YouPosition canY now0 see

            In the firstProperties (toppanel's left)[ cellTransformations of] yoursection grid. To be able to see all 24 cells we need additional 23 Solid Color Nodes. We will create this usingconfigure the multifollowing clone function accessible via the context menusize of the Solid Color Node.

            drawing-5-1731661579.png
            GridLayout.

            Switch to the Multiple Clone tab and enter 23 into the Number of Copies field. Press OK.

            drawing-7-1676531006.png

            And this is what the Scene Tree and the Editor panel look like now, when the GridLayout is selected:

            drawing-5-1731662138.png

            Go back into the Configure Layouter dialog via the context menu.

            drawing-5-1731662238.png

            As you can see, all of the nodes have a warning symbol. This is because all nodes are sharing one single cell. To automatically spread the SolidColorNodes into different cells press the Apply default arrangement button. You can also do it by hand with dragging and dropping the nodes from the left list into the cells.

            drawing-5-1731662307.png

            After pressing OK your Editor should contain something like this:

            drawing-5-1731662346.png

            As mentioned earlier we have to position the grid into its scene. Therefore change the grid's position to (0/0).

            drawing-5-1731662477.png

            And change its size to 1024x714. The size is currently calculated automatically. In order to be able to change the values for the size, you have to click on the [ A ] button to disable the automatic calculation of the size.

             

              The size of the GridLayout has changed. The GridLayout's grid is now visible.
              Target Item Setting Value Size X
              1024 Size Y 714
              drawing-5-1731662585.png
              drawing-5-1740758687.png

              You

              can now see It is recommended to save the structureScene ofComposer oursolution.
              scene. Please save your scene now.
              drawing-5-1731662645.png

              AddingCreating and Configuring the Labels

              Each of the Controls in the Climate Control Scene Content

              To put real content into our scene, importhas a fewlabel, images by clicking (Import > Import Resources) and selectingtelling the imagesuser inwhich /cgi_studio_content/Resources/GettingStartedControls/Climate:

              setting
              drawing-5-1731663013.png
              he

              Letis usable startto change with theit.

              texts
              needed for our Climate scene. Use the Text controls fromFrom the Toolbox panel (Controlsdrag -and Common - Text) to place the following texts:
              drawing-5-1731663193.png

              To set the text itself please edit the Control property, "Text". We are usingdrop a smaller"Text" font than the default one. Please choose OpenSansRegular25.

              drawing-5-1731663326.png

              For the Steering heater text we adapt the settings to be able to use multiple lines. Check the "Multiline" property.

              drawing-5-1731663454.png

              Repeat editing the texts and text styles for all of the listed texts. Also, you can press Shift and click all the text controls, and then set the VerticalAlignment of these textscontrol into VCenter, all at once.

              drawing-5-1731663533.png

              Please instantiate the following controls by dragging from the Toolbox to the SceneClimate root node:

                1 Slider (for temperature)
                4 Buttons (2 for slider, 2 for off and max button for fan) 1 Text Value (for temperature) 1 CheckBox (for steering heater) 1 GroupBox (for air condition radio buttons) 2 RadioButtons (as group box content) 2 MultiStateButtons (for fan and seat heater) 1 SpinBox (for heating) 2 GridLayouts (for slider and fan elements) 1 StackLayout

                Before structuring the Scene Tree,Tree wepanel rename the controls accordingly:

                drawing-5-1731665153.png

                Now it's time to restructure the controls.

                The following Radio Buttons will be placed inside the Stack Layout:

                  RadioButton_AC On
                  RadioButton_AC Off

                  And the StackLayout itself will be dragged into the content anchor of group box GroupBox_AC.

                  The controls for temperature adjustments will be dragged into the GridLayout_Slider:

                    Slider_Temperature
                    Text Value
                    Button_TempDec
                    Button_TempInc

                    The elements for the fan will be dragged into the GridLayout_Fan:

                      MultiStateButton_Fan
                      Button_Fan Max
                      Button_Fan Off
                      drawing-5-1731665594.png

                      We will now remove all Solid Color Nodes and fill the GridLayout with our new controls.
                      Select all SolidColor Nodes and press the Delete key or use the context menu to delete them. Confirm deleting the SolidColorNodes in the delete items dialog with OK.
                      Drag all new itemsdirectly onto the "GridLayout" node. The resulting"Text" scenecontrol treecan structurebe found in the Toolbox panel's [ Control ] section in the list of "Common" controls.

                        The "Text" Control can be seen in the Scene Editor's top left corner. It is also visible in the SceneTree panel, hierarchically ordered below the GridLayout. In the Properties panel's [ Control ] section click on the magnifying glass icon next to the "Text Style" property.
                          The "Text Style Palette" dialog will lookbe likeopened this:displaying
                          a list of text styles. The currently configured "OpenSans35" is selected.
                          drawing-5-1731667359.pngdrawing-5-1741335570.png
                          In

                          this "Text Style Palette" dialog select "OpenSans25" and click [ OK ]

                            In the Scene Editor the size of the "Text" control's text has decreased. In the Scene Tree right-click on the "Text" control to open the context menu ofand select "Clone".
                              The "Clone Item" dialog is opened. In the GridLayout,"Clone Item" dialog set the "Number of Copies" to 5 and click "Configure[ Layouter…"OK ].
                              drawing-5-1731667973.png

                              Drag the elements to their positions.

                              drawing-5-1731667917.png

                              The result should look like in

                              In the Scene Editor:Tree
                              drawing-5-1731668115.png

                              Setting up the Temperature Controls

                              Aspanel you can see,see that 5 new "Text" controls have been added, named "Text_1", "Text_2" ...

                              drawing-5-1741935184.png
                              In the structureScene ofTree panel right-click on the climate"GridLayout" sceneand can be roughly recognized. However, we need to layout the elements carefully.
                              We start with the GridLayout_Slider. Configure the GridLayout as below usingchoose "Configure Layouter…Layouter..." from the context menu:menu.
                              The
                              Grid
                              Layout
                              drawing-5-1731668276.png
                              Editor
                              will
                              be
                              opened. The

                              Set6 "Text" controls are listed in the panel on the left.

                              By default the 6 "Text" controls are also positioned in the top left cell of the GridLayout. In the "FormatGrid Layout Editor" drag and drop the "Text" propertycontrols from the left into their destination cells one by one as seen in the image below and click [ OK ].
                                The "Text" controls' position in the GridLayout are now configured correctly. In the Scene Editor you can see that the "Text" controls are now neatly positioned in the Scene. The layout is done by the GridLayout according to its configuration.
                                drawing-5-1741344470.png
                                In the Scene Tree panel select all "Text" nodes. Keeping the <SHIFT> key pressed allows you to add items to your selection. In the Properties panel's [ Layout ] section configure VerticalAlignment to "VCenter"
                                  "VertigalAlignment" is configured to "VCenter" for all "Text" controls. In the Scene Editor all "Text" controls are vertically centered in their cell.
                                  drawing-5-1741935250.png
                                  In the Scene Tree panel select the "Text" controls one after the other and rename them either via the context menu entry "Rename" or by pressing <F2> on your keyboard. Apply the names provided in the table below.
                                    In the Scene Tree panel you can see that the "Text" controls have been renamed.
                                    Target Item Name
                                    Text
                                    Text_Temperature Text_1 Text_Steering wheel heating Text_2 Text_Air Condition
                                    Text_3 Text_Fan
                                    Text_4 Text_Seat heater
                                    Text_5 Text_Heating
                                    In the Scene Tree panel select the "Text" controls one after the other again and change text that is displayed by the "Text" controls according to the table below. This can be done in the Property panel's [ Control ] section.
                                      In the Scene Editor you can see that the "Text" controls display different texts.
                                      Target Item
                                      Text Text_Temperature Temperature Text_Steering wheel heating Steering wheel heating Text_Air Condition
                                      Air Condition
                                      Text_Fan
                                      Fan
                                      Text_Seat heater
                                      Seat heater
                                      Text_Heating
                                      Heating
                                      drawing-5-1741934993.png

                                      Importing Images

                                      This scene uses the built-in Scene Composer controls but they will be customized with new images. Therefore these images have to be imported into the Scene Composer solution.

                                        In the main menu select Import > Import Resources...
                                          The "Import Resources" dialog will be opened. In the "Import Resources" dialog navigate to the path given in the table below. Select all 36 files and press [ Open ]
                                            The "Import Images" dialog will be opened.
                                            Import Resources
                                            Path

                                            /cgi_studio_content/Resources/GettingStartedControls/Climate In the "Import Images" dialog select folder "/Resources", make sure to create a new folder "Climate" for the imported images and click [ OK ].
                                              In the Solution Explorer you can see that there is a new folder "Climate" in folder "Resources" that contains the 36 imported images. The images have been imported and can be used in the Scene Composer solution.
                                              drawing-5-1741348711.png

                                              Configuration of Temperature Controls

                                              The temperature settings of this scene are composed of a multitude of different controls that are arranged by a GridLayout. The currently set temperature value can be increased and decreased using the buttons on the left and right side of the Slider. The temperature value can also be controlled dragging the Slider knob.

                                              The configured temperature value is displayed in digits above the Slider. Therefore the Slider and the Text Value underControl GridLayout_Sliderdisplaying the value will be connected with a ForwardValue behavior.

                                              To finish the configuration of the temperature controls, the look and feel of the configured temperature controls will be adjusted by exchanging the Slider's and Buttons' default images to %2.1fbe °C,consistent with the scene's design.

                                              Configuring the Layout for the Temperature

                                              The temperature setting for this sample is composed by

                                                a Text Value control that will displays the current value a Slider control that shows the current value as well as the range of the possible values a Button control to decrease the currently set value a Button control to increase the currently set value a GridLayout that layouts the controls above.

                                                The following steps show how to arrange all these fragments to a temperature configuration item.

                                                  From the Toolbox panel's [ 2D Nodes ] drag and drop a "GridLayout" into the Scene Tree panel directly onto the already configured "GridLayout" node.
                                                    In the Scene Tree the new GridLayout will be inserted as element of the already existing GridLayout. From the Toolbox panel drag and drop a "Text Value" control into the Scene Tree panel directly onto the new GridLayout. The "TextValue" control can be found in the Toolbox panel's [ Controls ] section under "Common".
                                                      In the Scene Tree panel the "Text Value" control is visible as subordinates to the new GridLayout. From the Toolbox panel drag and drop 2 "Button" controls and a "Slider" control into the Scene Tree panel directly onto the new GridLayout. "Button" and "Slider" control can be found in the Toolbox panel's [ Controls ] section under "Touchable".
                                                        In the Scene Tree panel the Buttons and the "HorizontalAlignment"Slider propertyare visible as subordinates to the new GridLayout. In the Scene Tree panel rename the newly created controls according to the table below using the context menu or pressing <F2> on your keyboard.
                                                          In the Scene Tree panel the controls appear with their new names.
                                                          Target Item
                                                          Name GridLayout
                                                          GridLayout_Slider
                                                          Text Value
                                                          Text Value
                                                          Button Button_TempDec Button_1 Button_TempInc Slider
                                                          Slider_Temperature
                                                          In the Scene Tree panel right-click on GridLayout_Slider and choose "HCenter"Configure Layouter..." from the context menu.
                                                            The "Grid Layout Editor" will be opened. In the "Grid Layout Editor" configure 2 rows and 5 columns using the buttons on the bottom left.
                                                              In the "Grid Layout Editor" a grid with rows and columns will be displayed as configured. In the "Grid Layout Editor" drag and drop the controls to their destination position as seen in the image below and click [ OK ].
                                                                The "Grid Layout Editor" is configured as in the image.
                                                                drawing-5-1741357031.png
                                                                In the Scene Tree panel right-click on the (outer, older) GridLayout and choose "Configure Layouter..." from the context menu.
                                                                  The "Grid Layout Editor" will be opened. In the "Grid Layout Editor" drag and drop GridLayout_Slider into the cell right next to the "Text_Temperature" Text control. Then click [ OK ].
                                                                    In Scene Editor GridLayout_Slider and all its content is now placed at the correct position.
                                                                    drawing-5-1741358144.png

                                                                    Connect Slider and Text Value Control

                                                                    The Temperature controls' functionality will be configured in the following steps: The slider's default, minimum and maximum values, the Text Value control's formatting text as well as the "Forward Value Behavior" that takes care that Slider and Text Value will display the same value at all times.

                                                                    drawing-5-1731668451.png
                                                                    In
                                                                    the
                                                                    Scene Tree panel select the "Text Value" control. In the Properties panel apply the changes according to the table below.
                                                                    In

                                                                    Forthe Scene Editor, the "Text Value" will display "0.0°C" in the center.

                                                                    Item Name Section
                                                                    Property Value Text Value Control
                                                                    Format Text %2.1f°C Layout
                                                                    HorizontalAlignment
                                                                    HCenter
                                                                    In the Scene Tree panel select the Slider_Temperature. In the Properties panel in the [ Control ] section apply the changes according to the table below.
                                                                      The slider's current value, its minimum and maximum value are configured. In the Scene Editor the knob of the slider is on a different position than before.
                                                                      Item Name Section
                                                                      Property Value Slider_Temperature Control
                                                                      Value 22
                                                                      Minimum 15
                                                                      Maximum
                                                                      28
                                                                      From the Toolbox panel's [ Behaviors ] section drag and drop a ForwardValue Behavior into the Scene Tree panel directly onto the Slider_Temperature. The ForwardValue Behavior can be found in the Toolbox panel's [ Behaviors ] section under "Value Processing".
                                                                        In the Scene Tree an orange square appears next to the Slider_Temperature, setindicating that this node has a behavior attached. When selecting the followingSlider_Temperature properties:
                                                                        drawing-5-1731668527.png

                                                                        To adjustin the imagesScene (NormalTree, Imagethe attached Forward Value behavior is visible in the right side of the Scene Tree.

                                                                        drawing-5-1741361665.png
                                                                        In the Scene Tree panel select Slider_Temperature and Pressedthen Image)select the Forward Value behavior in the right side of Button_TempDecthe Scene Tree panel. It's time to configure where the value should be forwarded to. In the Properties panel press the padlock icon on the top right to lock the Properties panel to the properties of the Forward Value behavior.
                                                                          The pad lock icon changes to locked state. The Properties panel is now locked to the properties of the Forward Value behavior. From the Scene Tree panel drag and drop the Text Value control into the Properties panel directly onto the property "TargetNode".
                                                                            In the Properties panel the textfield next to the property "TargetNode" will be filled with the path to the Text Value control. In the Properties panel's top right, click on the padlock icon one more time to unlock the Properties panel again.
                                                                              The padlock icon changes to unlocked state. The Properties panel is unlocked again. Press the <F5> key to trigger a refresh.
                                                                                In the Scene Editor you can see that the Text Value will display "22°C", which is the value currently configured in the Slider control.
                                                                                drawing-5-1741938346.png

                                                                                Beautifying Temperature Setting Controls

                                                                                The default visual appearance of the Scene Composer's Slider does not fit to this sample's design. Luckily the Slider's images are exchangeable, so are the Button's images.

                                                                                  In the Scene Tree panel select Button_TempDec. In the Properties panel press the magnifying glass icon onnext to the rightproperty "Normal Image" to open the "Choose Item" dialog.
                                                                                    The "Choose Item" dialog will be opened. Select image "/Resources/Climate/NewTempDecreaseBmp" and press OK.
                                                                                      The "Choose Item" dialog will be closed. Property "Normal Image" is set to "NewTempDecreasBmp". In the Scene Editor a new image will be displayed differently.
                                                                                      drawing-5-1741944782.png

                                                                                      Repeat steps 1 and 2 to set a new "Pressed Image" for Button_TempDec. Finally, Button_TempDec should be configured according to the table below.
                                                                                        Button_TempDec is configured with new "Normal Image" and "Pressed Image" which completely changed its appearance.
                                                                                        Target Item
                                                                                        Property
                                                                                        Image Button_TempDec Normal Image
                                                                                        /Resources/Climate/NewTempDecreaseBmp Pressed Image
                                                                                        /Resources/Climate/NewTempDecrease_pressedBmp
                                                                                        drawing-5-1741944378.png
                                                                                        In the Scene Tree panel select Button_TempInc and repeat steps 1 to 3 above to configure new images for "Button_TempInc" according to the table below.
                                                                                          Button_TempInc is configured with new "Normal Image" and "Pressed Image" changing its appearance completely.
                                                                                          Target Item
                                                                                          Property
                                                                                          Image Button_TempInc Normal Image
                                                                                          /Resources/Climate/NewTempIncreaseBmp Pressed Image
                                                                                          /Resources/Climate/NewTempIncreae_pressedBmp
                                                                                          drawing-5-1741944431.png
                                                                                          In the Scene Tree panel select "Slider_Temperature". In the [ Control ] section of the propertyProperties panel set new images according to the table below.
                                                                                            In the Properties panel the Slider Control's image properties are configured with new images. In the Scene Editor you can see the final result of the configured Temperature Slider Control.
                                                                                            Property
                                                                                            Image Knob Normal Image
                                                                                            /Resources/Climate/NewSliderKnobBmp Knob Pressed Image
                                                                                            /Resources/Climate/NewSliderKnobPressedBmp
                                                                                            Track Image
                                                                                            /Resources/Climate/NewSliderBackgroundBmp Track Fill Image
                                                                                            /Resources/Climate/NewSliderBmp
                                                                                            drawing-5-1741951638.png

                                                                                            Configuration of Steering Wheel Heating CheckBox

                                                                                            Steering wheel heating is easy to configure. It uses a simple CheckBox Control for turning the steering wheel heating on and select the correct image from the imported SceneClimate images as below:
                                                                                            drawing-5-1731669730.pngoff.

                                                                                            Do the same for Button_TempInc, but using the corresponding "TempIncrease" images:

                                                                                            drawing-5-1731669841.png

                                                                                            Next, we will configure the images for Slider_Temperature as below:

                                                                                            drawing-5-1731671241.png

                                                                                            The slider's TextValue Control is supposed to display the value that is set via the slider. To add this functionality we need to drag a ForwardValue Behavior from

                                                                                            From the Toolbox topanel's [ Controls ] section under "Touchable" drag and drop a "CheckBox" into the Slider_TemperatureScene Tree panel directly onto the already configured "GridLayout" node.
                                                                                              The CheckBox will appear in the Scene Tree Panel.panel.
                                                                                              drawing-5-1731671555.png

                                                                                              The Slider_Temperature'sCheckBox valuewill needs toalso be forwarded to the TextValue control. Therefore, we need to set the ForwardValue Behavior's "TargetNode" property to the "Text Value". Click the magnifying glass icon on the right side of the propertyvisible in the PropertiesScene Editor. In the Scene Tree panel and select the TextCheckBox Valueand Controlrename fromit to "CheckBox_Steering heater" either via the choosecontext itemmenu dialog.entry
                                                                                              drawing-5-1731671856.png
                                                                                              "Rename"
                                                                                              or
                                                                                              by

                                                                                              pressing
                                                                                              <F2>
                                                                                              on

                                                                                              Andyour thiskeyboard. is

                                                                                              whatIn the fullyScene configuredTree Slider looks like.
                                                                                              drawing-7-1676532107.png

                                                                                              Our next goal is to center all cell content vertically in order to have a similar distance between the lines. Even for multiple lines inside a cell the optical impression will be improved

                                                                                              We have already centered the text controls. Next, we will set VerticalAlignment of the following controls to VCenter:

                                                                                              drawing-5-1731672414.png

                                                                                              Setting up the Steering Wheel Heating Controls

                                                                                              To configure the heating controls, selectpanel, the "CheckBox_Steering heater" can be seen.

                                                                                              In the Scene Tree panel right-click on the "GridLayout". In the opened context menu choose "Configure Layouter...".
                                                                                                The Grid Layout Editor will be opened. The newly added CheckBox will be placed in the grid's top left cell. In the Grid Layout Editor drag and drop the CheckBox into the cell to the right of "Text_Steering wheel heating". When you're done, press [ OK ].
                                                                                                  The Grid Layout Editor will be closed. In Scene Editor the CheckBox will be positioned in the correct cell of the GridLayout. In the Properties panel's [ Layout ] section change itsthe "Vertical Alignment" to VCenter.
                                                                                                    In the Scene Editor the CheckBox's position has changed, it is now in the same line as the text "Steering wheel heating". In the Properties panel's [ Control ] section change the Text to "On".
                                                                                                    Finally, and configure the CheckBox's images as in the table below.
                                                                                                      In the Scene Editor the CheckBox has a different visual appearance with the new images. The Steering Wheel heating Controls have been configured correctly.
                                                                                                      Property
                                                                                                      Image Normal Image /Resources/Climate/NewCheckBoxDeselectedBmp Pressed Image /Resources/Climate/NewCheckBoxDeselectedPressedBmp
                                                                                                      Selected Image /Resources/Climate/NewCheckBoxSelectedBmp Selected Pressed Image /Resources/Climate/NewCheckBoxSelectedPressedBmp
                                                                                                      drawing-5-1741951610.png

                                                                                                      Configuration of Air Conditioning RadioButtons

                                                                                                      This scene uses RadioButtons to configure Air Conditioning values. RadioButtons need to be put into a common GroupBox in order to ensure their functionality.

                                                                                                      Since these RadioButtons should fit into the scene's design, we will exchange the images for "CheckBox_Steeringvarious heater" as below:

                                                                                                      drawing-5-1731672757.png

                                                                                                      The configured "Checkbox_Steering heater" now looksstates like this.normal, pressed, selected and selected pressed.

                                                                                                      drawing-7-1676532943.png

                                                                                                      Setting up the Air Condition Controls

                                                                                                      In this section we focus on the radioRadio buttonsButtons for Air Condition (AC). Two Radio Buttons are configured inside a horizontal Stack Layout. They are grouped together in a GroupBox to help with the RadioButtons' functionality.

                                                                                                        From the Toolbox panel's [ Controls ] section under "Container" drag and drop a "GroupBox" into the Scene Tree panel directly onto the configured "GridLayout" node.
                                                                                                          In the Scene Tree panel the GroupBox is visible, hierarchically below the GridLayout. In the Scene Tree panel click the triangle on the left of the GroupBox to open the GroupBox.
                                                                                                            "Content" gets visible below "GroupBox".
                                                                                                            drawing-5-1741958892.png
                                                                                                            From the Toolbox panel's [ Nodes 2D ] section drag and drop a "Stack Layout" into the Scene Tree panel directly onto the "Content" anchor of the GroupBox that has been added in the first step.
                                                                                                              In the Scene Tree panel the Stack Layout has been added as the GroupBox's content. From the Toolbox panel's [ Controls ] section under "Touchable" drag and drop 2 "Radio Buttons" into the Scene Tree panel directly onto the "Stack Layout" that has been added in the previous step.
                                                                                                                In the Scene Tree panel the RadioButtons have been added to the Stack Layout. In the Scene Tree panel select the "GroupBox" and "RadioButtons" individually and rename them according to the table below either via the context menu entry "Rename" or by pressing <F2> on your keyboard.
                                                                                                                  In the Scene Tree panel, "RadioButton_AC On" and "RadioButton_AC Off" can be seen as in the image below.
                                                                                                                  Target Item
                                                                                                                  Name GroupBox GroupBox_AC RadioButton RadioButton_AC  Off RadioButton_1 RadioButton_AC On
                                                                                                                  drawing-5-1741957809.png
                                                                                                                  In the Scene Tree panel right-click on the GridLayout and choose "Configure Layouter..." from the context menu.
                                                                                                                    The TextGrid Layout Editor will be opened. In the Grid Layout Editor drag and drop GroupBox_AC onto its correct position to the right of "Text_Air Condition". When you're done press [ OK ].
                                                                                                                      In the Scene Editor you can see that GroupBox (and its RadioButton content) is in the correct cell in the GridLayout's grid. In the Scene Tree panel select the Stack Layout. In the Properties panel's [ Layout ] section set the Vertical Alignment property to "VCenter".
                                                                                                                        In Scene Editor the Radio Buttons needs to be changed to "Off" and "On"appear in respectcorrectly toaligned their names. "RadioButton_AC Off" should bewith the onetext on"Air theCondition". left,
                                                                                                                        drawing-5-1741965425.png
                                                                                                                        so you might have to change the order of the RadioButtons inIn the Scene Tree Panel.panel select GroupBox_AC. In the Properties panel's [ Control ] section uncheck the "Enable Background" property.
                                                                                                                        Additionally,
                                                                                                                          In Scene Editor you can see that a border around the Radio Buttons disappears.

                                                                                                                          Configure the Steering Wheel Heating RadioButtons

                                                                                                                          To adjust the Radio Buttons to the general look and feel of the scene we have towill configure the correctnew images for ourthem.

                                                                                                                          RadioButtons.

                                                                                                                          Remember: Remember ifIf you select both RadioButtons in a "multiple selection" in the Scene Tree panel, you can configure the imagesproperties ofthat are the same for both RadioButtons at once.

                                                                                                                          drawing-5-1731675016.png
                                                                                                                            In the Scene Tree panel select the Radio Buttons individually. In the Property panel's [ Control ] section change the "Text" property according to the table below.
                                                                                                                              In the Scene Editor the Radio Buttons' texts appear as configured.
                                                                                                                              Target Item
                                                                                                                              Text RadioButton_AC On
                                                                                                                              On RadioButton_AC Off
                                                                                                                              Off In the Scene Tree panel select both Radio Buttons. This can be achieved by selecting one Radio Button and click on the second Radio Button while keeping the <Shift> key pressed.
                                                                                                                                In the Scene Tree panel and in the Scene Editor you can see that both Radio Buttons are selected. In the Properties panel it says "Multiple items selected". In the Properties panel's [ Control ] section define new images according to the table below. To do this, click the magnifying glass icon next to the image property to open the "Choose Item" dialog, where you select the corresponding image.
                                                                                                                                  New images of the Radio Buttons have been configured.
                                                                                                                                  Property
                                                                                                                                  Image Normal Image /Resources/Climate/NewRadioButtonNormalBmp Pressed Image /Resources/Climate/NewRadioButtonNormalPressedBmp
                                                                                                                                  Selected Image /Resources/Climate/NewRadioButtonActivatedBmp Selected Pressed Image /Resources/Climate/NewRadioButtonActivatedPressedBmp
                                                                                                                                  drawing-5-1741966676.png
                                                                                                                                  In the Properties panel's [ Layout ] section configure the Margin property of both Radio Buttons according to the table below.
                                                                                                                                    In Scene Editor the two Radio Buttons are further apart than before. The configuration of the Air Condition Radio Buttons and GroupBox is now complete.
                                                                                                                                    Margin
                                                                                                                                    Value Left 0 Top 0 Right 100 Bottom 0
                                                                                                                                    drawing-5-1741968565.png

                                                                                                                                    Keeping both RadioButtons selected, we will adjust the right margin to 100 so that there is enough space between them.

                                                                                                                                    drawing-5-1731675148.png

                                                                                                                                    The default background

                                                                                                                                    Configuration of GroupBoxesFan makesControls

                                                                                                                                    them appear with a frame. As we don't want to see a frame in

                                                                                                                                    In our design, we have to uncheckscenario the "Enable Background" propertyvalue of the GroupBox.fan
                                                                                                                                    can be controlled by two Buttons and a MultiStateButton. These Controls are arranged by a GridLayout.

                                                                                                                                    drawing-5-1731675269.png

                                                                                                                                    The heightMultiStateButton ofis our GroupBox_AC should be setconfigured to 40.
                                                                                                                                    Currentlyhave the8 GroupBoxdifferent heightstates, isfor calculatedwhich automatically8 baseddifferent on the layout situation. Properties thatimages are calculatedprovided.

                                                                                                                                    automatically

                                                                                                                                    The Buttons' images are displayedupdated grayedas out,well, the text "(Auto)" is displayed nextmatching to the valuescene's design and youtheir canfunctionality.

                                                                                                                                    see

                                                                                                                                    Interactivity between each Button and the MultiStateButton is provided by an EventHandler. A SendValueByEvent behavior will send a configured value to the TargetNode "MultiStateButton" whenever a button with an "A" on it next to it.
                                                                                                                                    In order to be able to enter a value manually, you have disable the automatic calculation by pressing the blue "A" button first.

                                                                                                                                    You can see the tooltip for the blue "A" button in the image below.

                                                                                                                                    drawing-5-1731675588.png

                                                                                                                                    You might have wondered why we added a StackLayout previously. The reason is, the Stack Layout is able to layout child nodes horizontally or vertically. The "horizontal" arrangement is the one we need.clicked.

                                                                                                                                    drawing-5-1731675675.png

                                                                                                                                    Setting up the Fan Controls

                                                                                                                                    Now

                                                                                                                                    we
                                                                                                                                    take
                                                                                                                                    care
                                                                                                                                    ofFrom the GridLayout_Fan.ToolBox Openpanel's [ Nodes 2D ] section drag and drop a GridLayout into the Scene Tree panel directly onto the already existing "ConfigureGridLayout" Layouter…node.
                                                                                                                                      In the Scene Tree panel you can see that a GridLayout has been created under the already existing GridLayout. The newly created GridLayout is hierarchically below the older GridLayout. From the ToolBox panel's [ Controls ] section under "Touchable" dialogdrag and configuredrop 2 Buttons and 1 MultiStateButton into the Scene Tree panel directly onto the node "GridLayout" that was created in the previous step.
                                                                                                                                        In the Scene Tree panel you can see that 2 Buttons and 1 MultiStateButton have been created below the GridLayout asthat shownhas been created in the picture.previous step. In the Scene Tree panel create a multiple selection of all Fan Controls (GridLayout, the 2 Buttons and MultiStateButton) by clicking on the first one, holding the <Shift>-key on your keyboard and then clicking on the last one.
                                                                                                                                        For
                                                                                                                                          In the Scene Tree panel 4 items are selected. In the Properties panel's top it says "Multiple items selected".  In the Properties panel's [ Layout ] section change the VerticalAlignment to VCenter.
                                                                                                                                            Vertical Alignment of all 4 nodes is set to center. In the Scene Tree panel select the newly created GridLayout, Buttons and MultiStateButton individually and rename them according to the table below either via the context menu entry "Rename" or by pressing <F2> on your keyboard.
                                                                                                                                              In the Scene Tree panel the newly created Controls appear as in the image below.
                                                                                                                                              Target Item
                                                                                                                                              Name GridLayout GridLayout_Fan Button Button_Fan Off Button_1 Button_Fan Max MultiStateButton
                                                                                                                                              MultiStateButton_Fan
                                                                                                                                              drawing-5-1742547308.png
                                                                                                                                              In the Scene Tree panel right-click on the "older" GridLayout and choose "Configure Layouter..." from the context menu.
                                                                                                                                                The "Grid Layout Editor" will be opened. In the "Grid Layout Editor" drag and drop GridLayout_Fan into the cell right next to the "Text_Fan" Text control. Then click [ OK ].
                                                                                                                                                  In Scene Editor GridLayout_Fan and its content is now placed at the correct position. The MultiStateButton and the 2 Buttons are still overlapping. This will be solved by configuring the layout of GridLayout_Fan in the next steps.

                                                                                                                                                  Configuring GridLayout_Fan

                                                                                                                                                    In the Scene Tree panel right-click on the GridLayout_Fan and choose "Configure Layouter..." from the context menu.
                                                                                                                                                      The "Grid Layout Editor" will be opened. In the "Grid Layout Editor" configure 1 row and 6 columns using the buttons on the bottom left.
                                                                                                                                                        In the "Grid Layout Editor" a grid with rows and columns will be displayed as configured. In the "Grid Layout Editor" adjust the width of the thirdcolumns column, we are usingon the exact widthtop of the MultiStateButton'sgrid. Then drag and drop the controls to their destination position as seen in the image below and click [ OK ].
                                                                                                                                                          The "Grid Layout Editor" is configured as in order to get a pixel exact rendering of the image. After pressing [ OK ], the controls of GridLayout_Fan are arranged as in the image below.
                                                                                                                                                          drawing-5-1742553022.png
                                                                                                                                                          drawing-5-1731675766.png

                                                                                                                                                          Configuring

                                                                                                                                                          WeMultiStateButton_Fan
                                                                                                                                                          now

                                                                                                                                                          configureIn the imagesScene Tree panel select MultiStateButton_Fan. In the Properties panel's [ Layout ] section set the Vertical Alignment to VCenter. In the Properties panel's [ Control ] section set "Maximum State" to the value of "7".
                                                                                                                                                            In the properties panel the Maximum State property is set to 7. In the Properties panel's [ Control ] section click on the "StateImages" property.
                                                                                                                                                              In the Properties panel the StateImage property will be expanded.  Press the [ + ] button on the right of the MultiStateButton. You can find a"StateImages" property "StateImages"until there are 8 StateImages in the Controllist sectionbelow.
                                                                                                                                                                In the Properties panel the list of theStateImages MultiStateButton'swill properties,consist whereof multipleentries imagesfrom can"StateImages be defined.
                                                                                                                                                                drawing-5-1731675971.png

                                                                                                                                                                It is possible0" to add"StateImages images7".

                                                                                                                                                                using In the "+"Properties button or to remove images using the "x" button next to the image to be deleted (highlighted in the image above).
                                                                                                                                                                Pleasepanel click on the magnifying glass next to change"StateImages 0".
                                                                                                                                                                  The "Choose Item" dialog will be opened. In the Choose Item dialog navigate to "/Resources/Climate/NewClimate-0Bmp", select this image and click [ OK ].
                                                                                                                                                                    In the Properties panel the first StateImage has been configured. Repeat steps 4 and 5 to configure the remaining StateImages as in the table below.
                                                                                                                                                                      In Properties panel all StateImages are configured. In Scene Editor you can see the newly configured images. For our

                                                                                                                                                                      If GettingStarted,the wenew images are not visible try refreshing the screen by pressing the <F5> key on your keyboard.

                                                                                                                                                                      StateImages
                                                                                                                                                                      Image Path
                                                                                                                                                                      StateImages 0 /Resources/Climate/NewClimate-0Bmp StateImages 1
                                                                                                                                                                      /Resources/Climate/NewClimate-1Bmp StateImages 2
                                                                                                                                                                      /Resources/Climate/NewClimate-2Bmp StateImages 3
                                                                                                                                                                      /Resources/Climate/NewClimate-3Bmp StateImages 4
                                                                                                                                                                      /Resources/Climate/NewClimate-4Bmp StateImages 5
                                                                                                                                                                      /Resources/Climate/NewClimate-5Bmp StateImages 6
                                                                                                                                                                      /Resources/Climate/NewClimate-6Bmp StateImages 7
                                                                                                                                                                      /Resources/Climate/NewClimate-7Bmp
                                                                                                                                                                      drawing-5-1742552581.png

                                                                                                                                                                      Configuring Fan Buttons

                                                                                                                                                                        In the Scene Tree panel select "Button_Fan Off". In the Properties panel's [ Control ] section click the magnifying glass icon next to the "Normal Image" property.
                                                                                                                                                                          The "Choose Item" dialog will be opened. In the Choose Item dialog select "/Resources/Climate/NewButton offBmp" and click [ OK ].
                                                                                                                                                                            A new image is configured for "Button_Fan Off". In the Scene Editor the new image for the button is displayed. Repeat steps 1 and 2 above to configure the images fromfor "Button_Fan Off" and "Button_Fan Max" according to the climatetable folderbelow of
                                                                                                                                                                            ourThe resourcesimages ("NewClimate-0Bmp"for -the "NewClimate-7Bmp").Fan WeButtons have tobeen changechanged. In Scene Editor the Maximumnew Statenormal propertyimages can are visible.
                                                                                                                                                                            Target Item
                                                                                                                                                                            Property
                                                                                                                                                                            Image Path Button_Fan Off Normal Image /Resources/Climate/NewButton offBmp Pressed Image
                                                                                                                                                                            /Resources/Climate/NewButton offselectedBmp Button_Fan Max Normal Image
                                                                                                                                                                            /Resources/Climate/NewButton maxBmp Pressed Image
                                                                                                                                                                            /Resources/Climate/NewButton max_selectedBmp
                                                                                                                                                                            drawing-5-1742556198.png

                                                                                                                                                                            Add Interactivity to 7Fan in order to be able to display all selected images.Controls

                                                                                                                                                                            drawing-5-1731679570.png

                                                                                                                                                                            The MultiStateButton should be centered vertically, so we configure its layout accordingly.

                                                                                                                                                                            drawing-5-1731679712.png

                                                                                                                                                                            To change the image of "Button_Fan Max" and "Button_Fan Off" use the resources available. A button needs two different images to be able to reflect a mouse press or a touch on a touch screen. Therefore we will change the normal and pressed image as shown below:

                                                                                                                                                                            drawing-5-1731680943.png
                                                                                                                                                                            drawing-5-1731681056.png
                                                                                                                                                                            Both buttons should be centered vertically. Therefore we will select both buttons and set the vertical alignment to "VCenter".
                                                                                                                                                                            drawing-5-1731681153.png
                                                                                                                                                                            In
                                                                                                                                                                            Scene
                                                                                                                                                                            Tree

                                                                                                                                                                            Improvement of Interactivity using Behaviors

                                                                                                                                                                            We want to add the reset of the MultiStateButton_Fan to the off button and also we want to add the max functionality to the max button. To be able to do this we will need to use an Event Handler. When youpanel select the "Button_Fan Off". youIn canthe recognizeProperties twopanel tabs:activate an active "General" tab and an EventHandler tab:

                                                                                                                                                                            drawing-5-1731681479.png

                                                                                                                                                                            Select thisthe "Event Handler" tabtab. to be able to attach functionality toClick the button.[ Use+ the "+"] button next to "Actions".
                                                                                                                                                                            to

                                                                                                                                                                            add anAn action is added to the already attached "Click Event Handler". In the Properties panel's Event Handler Tab use the drop-down menu to select "Send Value as Event".

                                                                                                                                                                              Click into the drop-down menu field and start typing "send" to reduce the number of items in the list.

                                                                                                                                                                              A "Send Value as Event" action has been configured to be executed when a Click Event occurs. In the Properties panel at Action_0 set the Value that will be sent to "0".
                                                                                                                                                                                The Value that will be sent when a click action occurs on "Button_Fan Off" has been set to 0. In the Properties panel click on the padlock in the top right corner.
                                                                                                                                                                                  The Properties panel will be locked. In the Scene Tree panel select MultiStateButton_Fan and drag&drop it into the Properties panel directly onto the input field of property TargetNode of the configured "Send Value as Event" action.
                                                                                                                                                                                    MultiStateButton_Fan is configured as TargetNode, where the value will be sent to when a click action occurs on "Button_Fan Off".
                                                                                                                                                                                    drawing-5-1742560602.png
                                                                                                                                                                                    In the Properties panel click the padlock button again.
                                                                                                                                                                                      The Properties panel is unlocked. Repeat steps 1 to 6 with "Button_Fan Max" setting the Action's value to the maximum fan value of "7".
                                                                                                                                                                                        EventHandler of "Button_Fan Max" is configured according to the image below.
                                                                                                                                                                                        drawing-5-1742563919.png
                                                                                                                                                                                        drawing-5-1731681605.png

                                                                                                                                                                                        Use

                                                                                                                                                                                        the

                                                                                                                                                                                        Configuration dropof downSeat menuHeater to choose "Send Value As Event". Select the "MultiStateButton_Fan" as TargetNode using the magnifying glass.MultiStateButton

                                                                                                                                                                                        drawing-5-1731681864.png
                                                                                                                                                                                          From the ToolBox panel's [ Controls ] section under "Touchable" drag and drop 1 MultiStateButton into the Scene Tree panel directly onto the scene's GridLayout.
                                                                                                                                                                                            In the Scene Tree panel you can see that a MultiStateButton has been created below the scene's GridLayout that has been created in one of our first steps on this page. In the Scene Tree panel select the MultiStateButton and rename it to "MultiStateButton_Seat" either via the context menu entry "Rename" or by pressing <F2> on your keyboard.
                                                                                                                                                                                              In the Scene Tree panel, the "MultiStateButton_Seat" can be seen. In the Scene Tree panel select MultiStateButton_Seat. In the Properties panel's [ Layout ] section change the VerticalAlignment to VCenter.
                                                                                                                                                                                                In the Scene Editor MultiStateButton_Seat is displayed vertically centered inside its cell. In the Scene Tree panel right-click on the scene's GridLayout and choose "Configure Layouter..." from the context menu.
                                                                                                                                                                                                  The "Grid Layout Editor" will be opened. In the "Grid Layout Editor" drag and drop MultiStateButton_Seat into the cell right next to the "Text_Seat heater" Text control. Then click [ OK ].
                                                                                                                                                                                                    In Scene Editor MultiStateButton_Seat is now placed at the correct position.
                                                                                                                                                                                                    drawing-5-1742565408.png

                                                                                                                                                                                                    In the Scene Tree panel select MultiStateButton_Seat. In the Properties panel's [ Control ] section under "StateImages" click on the magnifying glass next to "StateImages 0".
                                                                                                                                                                                                      The "Choose Item" dialog will be opened. In the Choose Item dialog navigate to "/Resources/Climate/NewButtonState1Bmp", select this image and click [ OK ].
                                                                                                                                                                                                        In the Properties panel the first StateImage has been configured. Repeat steps 6 and 7 to configure the remaining StateImages as in the table below.
                                                                                                                                                                                                          In Properties panel all StateImages are configured. In Scene Editor you can see the newly configured images.

                                                                                                                                                                                                          If the new images are not visible try refreshing the screen by pressing the <F5> key on your keyboard.

                                                                                                                                                                                                          StateImages
                                                                                                                                                                                                          Image Path
                                                                                                                                                                                                          StateImages 0 /Resources/Climate/NewButtonState1Bmp StateImages 1
                                                                                                                                                                                                          /Resources/Climate/NewButtonState2Bmp StateImages 2
                                                                                                                                                                                                          /Resources/Climate/NewButtonState3Bmp StateImages 3
                                                                                                                                                                                                          /Resources/Climate/NewButtonState4Bmp You can check the functionality by changing the Control's "Current State" property to any value from 0 to 3 in the Properties panel's [ Control ] section.
                                                                                                                                                                                                            In the Scene Editor a different image will be displayed for the Seat heater depending on the configured value of the "Current State" property. Below you can see the MultiStateButton_Seat when "Current State" is 3.
                                                                                                                                                                                                            drawing-5-1743147149.png

                                                                                                                                                                                                            The Event Handler tab should now look like this:

                                                                                                                                                                                                            drawing-5-1731681958.png

                                                                                                                                                                                                            Due to the more complex possibilities

                                                                                                                                                                                                            Configuration of eventHeating handlersSpinBox

                                                                                                                                                                                                            we will now explain in more detail what the different properties are usually used for.
                                                                                                                                                                                                            With the Event drop down you can select on which type of event a certain action will be performed.

                                                                                                                                                                                                            In our case a click event(mouse click or touch) will trigger the action. For a description of available events please have a look inside the documentation FeatStd::Event. The Condition property can be used for some events to only react if a certain condition is evaluates to "true". For our case the "Check Click" will count the number of clicks happened and compares it with the given ClickCount property. We have provided AnyClick which means we will react on single, double and even triple clicks. With the Sender property we can give the Action Behavior additional information on who has executed the action. In our example we do not evaluate this and it is left empty.

                                                                                                                                                                                                            The Value is used to specify the type of the value and the value itself which will be sent to the target node. ChangeValue states if the change of the value will be relative or absolute.
                                                                                                                                                                                                            Last but not least the Target Node has to be specified to know who will be the receiver of the event.

                                                                                                                                                                                                            We will now add a similar action to the "Button_Fan Max" button to always change the value of the MultiState button to its maximum value of 7.

                                                                                                                                                                                                            drawing-5-1731682104.png


                                                                                                                                                                                                            Setting up the Seat Heater controls

                                                                                                                                                                                                            For the Seat Heater controls, we just need to replace the images with new ones, as below:

                                                                                                                                                                                                            drawing-5-1731682499.png

                                                                                                                                                                                                            Setting up the Heating controls

                                                                                                                                                                                                            Last but not the least,section we will configure the SpinBox.Heating control. The SpinBox allows the user to change the values by clicking the uptick and downtick buttons.

                                                                                                                                                                                                            We will configure the SpinBox control as follows. We will also change the images of the SpinBox Control.

                                                                                                                                                                                                              From the Toolbox panel's [ Controls ] section under "Touchable" drag and drop a SpinBox into the Scene Tree directly onto the scene's GridLayout.
                                                                                                                                                                                                                In the Scene Tree panel you can see that SpinBox has been created below the scene's GridLayout that has been created in one of our first steps on this page. In the Scene Tree panel select the SpinBox and rename it to "SpinBox_Heating" either via the context menu entry "Rename" or by pressing <F2> on your keyboard.
                                                                                                                                                                                                                  In the Scene Tree panel, the "SpinBox_Heating" can be seen. In the Scene Tree panel select SpinBox_Heating. In the Properties panel's [ Layout ] section change the VerticalAlignment to VCenter and change the Size's X property to "150".

                                                                                                                                                                                                                    To change the Size's X property you might have to click the disabled [ A ] button first.

                                                                                                                                                                                                                    In the Scene Editor SpinBox_Heating is displayed vertically centered inside its cell and its width is reduced to 150px.
                                                                                                                                                                                                                    Target Item
                                                                                                                                                                                                                    Value
                                                                                                                                                                                                                    Vertical Alignment VCenter Size X 150,00 In the Scene Tree panel right-click on the scene's GridLayout and choose "Configure Layouter..." from the context menu.
                                                                                                                                                                                                                      The "Grid Layout Editor" will be opened. In the "Grid Layout Editor" drag and drop SpinBox_Heating into the cell right next to the "Text_Heating" Text control. Then click [ OK ].
                                                                                                                                                                                                                        In Scene Editor SpinBox_Heating is now placed at the correct position. In the Scene Tree panel select Spinbox_Heating. In the Properties panel's [ Control ] section adjust the properties given in table below.
                                                                                                                                                                                                                          SpinBox_Heating is configured according to the table. In Scene Editor the displayed text is changed to "22°C".

                                                                                                                                                                                                                          If the displayed value doesn't change to "22°C" try refreshing the screen by pressing the <F5> key on your keyboard

                                                                                                                                                                                                                          Target Item
                                                                                                                                                                                                                          Value
                                                                                                                                                                                                                          Value Float 22.00 Minimum Value Float 15,00 Maximum Value Float 28,00 Text Format %02d°C In the Properties panel's [ Control ] section click on the magnifying glass icon next to "Arrow Up Normal Image".
                                                                                                                                                                                                                            The "Choose Item" dialog will be opened. In the Choose Item dialog select /Resources/Climate/New_arrow_incrementBmp
                                                                                                                                                                                                                              In Scene Editor you can see that a new image has been configured for the SpinBox. Repeat steps 7 and 8 to configure new images according to the table below.
                                                                                                                                                                                                                                In Properties panel new images are configured for the SpinBox_Heating as seen in the image below. In the Scene Editor new images are visible for the SpinBox.
                                                                                                                                                                                                                                Target Item
                                                                                                                                                                                                                                Value
                                                                                                                                                                                                                                Arrow Up Normal Image /Resources/Climate/New_arrow_incrementBmp Arrow Up Pressed Image /Resources/Climate/New_arrow_increment_activeBmp Arrow Down Normal Image /Resources/Climate/New_arrow_decrementBmp Arrow Down Pressed Image /Resources/Climate/New_arrow_decrement_activeBmp
                                                                                                                                                                                                                                drawing-5-1731683315.pngdrawing-5-1742571558.png

                                                                                                                                                                                                                                Set

                                                                                                                                                                                                                                Check the widthClimate of the SpinBox to 150. Please note that this is an automatically calculated property which has to be unlocked pressing the blue "A" button.Scene

                                                                                                                                                                                                                                drawing-5-1731683415.pngThe Climate scene is now finished.
                                                                                                                                                                                                                                To

                                                                                                                                                                                                                                You have finished step 2 of our tutorial. Please save your solution before tryingcheck the result usingof configuring the Playerfirst application.scene, open the display view. This view represents the final rendered result and can be opened via the menu: View - Display - Display-0.

                                                                                                                                                                                                                                  The display panel will be opened in a floating way displaying the scene configured in the steps above.
                                                                                                                                                                                                                                  drawing-5-1743147225.png
                                                                                                                                                                                                                                  In the Scene Composer's Toolbar make sure that the item "Generate anand Play" is selected in the drop-down menu and click the [ > ] button to the left.
                                                                                                                                                                                                                                    This will generate the asset fileso it is available as describedinput atfor the endPlayer. ofAfter Step 1. Loadthat the generatedCGI assetPanel intowill be started.
                                                                                                                                                                                                                                    drawing-5-1742573876.png
                                                                                                                                                                                                                                    In the PlayerCGI Panel tick the checkbox next to "Scenes#SceneClimate" and selectuncheck "Scenes#SceneHome".
                                                                                                                                                                                                                                      SceneClimate will become visible in the climatePlayer. scene.
                                                                                                                                                                                                                                      drawing-5-1743147304.png
                                                                                                                                                                                                                                      You can now play around with the controls.configured SlideClimate Controls in the temperaturescene slider,and usewatch the checkresults. box
                                                                                                                                                                                                                                        Temperature slider is working and radio buttons. Click onto the fandisplayed multitemperature stateis buttonupdated. Steering wheel heating CheckBox can be checked and onunchecked offAir Conditioning RadioButtons can be toggled Fan Buttons and max.MultiStateButton Evencan thebe clicked and are functional. Seat heater MultiStateButton can be clicked and will reactchange onits yourimage actions.Heating
                                                                                                                                                                                                                                        SpinBox


                                                                                                                                                                                                                                        can be configured for values from 15 to 28°C