Sate Configuration
Using Behaviors
To apply logic to the nodes in a no-coding-approach, CGI Studio providesenables behaviors.application Behaviorslogic arethrough smallan genericintegrated functionsstate thatmachine canmodel. manipulateState machines, combined with controls and behaviors, support the construction of complex application logic without programming.
This section describes how to set up transitions between scenes using state machines. The ultimate goal is to trigger scene transitions by clicking on specific nodes within a scene.
Displaying the State Machine Editor
The state machine editor is displayed by the following operations

Double-click "GlobalStateMachine".
With the State Machine Editor panel displayed, check the Properties panel and make sure that [ Is Global ] is checked. If it is not checked, check it.
GlobalStateMachine consists of behaviorsInitial State (circle icon), Transition (arrow), and State (rectangle) by default.
Initial State is thatthe theyentry communicatepoint viafor events.the Eventsstate allowmachine. sendingState datarepresents froma onecertain behaviorlogic status and is associated with a series of actions when transitioning into a State (enabled) or transitioning out of a State and moving to another behaviorState without knowing any details about each other. (disabled).
InEach thisaction section,defined for a State change is performed when the valueState ofis enabled/disabled.

State configuration
To perform screen transitions, set the gaugeState. (needles)This willoperation beis forwardedperformed toafter the textState valueMachine in the center of the gauge, using behaviors.
1. Click Scene > Car_Cluster in Solution Explorer.
ExtraSceneTreeClickisState on the State Machine Editor panel.- The properties of the selected State are displayed
atin theright-sidePropertiesview of Scene Tree.panel.
2.
change the [ Name ] of the General category to "Car_Cluster".
- The
behaviorsname ofRPMGaugetheareStateshownonintheExtraSceneTree.State Machine Editor panel screen changes to "Car_Cluster".


3.


4.

5.
6. Click the browse button on the right-sideSelect ofitem TargetNode
7. For the TargetNode value, select RPMGauge_Group > RPMValue.

Select [ Solution>Scenes>Car_Cluster ] from the list on the right side of the dialog and press [ OK ] button.


Drag the connector (On Exit Actions) in the lower right corner of the Car_Cluster Fusion node, move the mouse, and release left click anywhere.

8.
ForTheSpeedGaugelistcontrol,ofselect SpeedGauge_Group > SpeedValue as TargetNodebehaviors inStep 7.
Adding Multilanguage Features
You can easily switch languages by using CGI Studio multilanguage support function. In this section, you will understand how to apply the multilanguage support function to switch between English and Germany (miles and kilometer). At first, you need to set-up a culture for this.
1. Click the globe icon from the menu bar.


2.
3.
Adding and configuring "State"
4. Repeat step 2 above but select German[de] this time.


6. Click Scene > Car_Cluster in Solution Explorer.
In the Properties panel, change the [ Name ] of the General category to "Car_Status".
7.
StatusBottom is expanded and items Temp, Petrol and Odometer are shown.
8. Click Odometer.
9. In the Properties, under Control category, click the browse button nextSwitch to the inputFusion fieldpanel and the Fusion diagram for "Car_Status" is displayed.

10.Actions/On TheExit LanguageActions) Tableare Selection is opened.
11. Click the Add button while Master[00] is set as Current Culture.

12. Set the value as seen belowconnected to the newlyTransition addedRequest row.Fusion node, respectively.
Set the Transition Request as follows
Activate
13.
14.
15. In the Culture Solution Option in the tool bar, switch between English and German. The distance unit should change to "miles" or "km" accordingly.


Simulation via CGI Player and Value Generator
In this section, simulation will be run via CGI Player based on the settings made in Using Behaviors and Adding Multilanguage Features.
1. Run the CGI Player and perform simulation on RPMGauge and SpeedGauge.
2. Click the Value Generator tab.
3. Change the value on Maximum as below for RPMValue and SpeedValue.

4. Next, select from the Culture selection drop-down and switch English/German.

