You can create a multi-screen display by splitting the screen area equally into multiple parts, such as 2, 4, 9, and so on.
After switching the Visibility Animation between showing the Content Display object and minimizing the Content Display object, the Uniform Grid automatically adjusts the size and position of the Content Display object between a single full screen and multiple split-screen displays
For information about the features used to enable the split-screen display, refer to the following.
Operation When Visibility Animation is Set Up
Touch the switch on Content1 to collapse the other content, so only Content1 displays in its entirety. Touch the switch once more to display all the content again and return to the split screen display.
Add variables to store the value of the Content Display object's [Visibility] property.
Add the following variables.
[Name] |
[Data Type] |
Var1 |
[INT] |
Var2 |
[INT] |
Var3 |
[INT] |
Var4 |
[INT] |
Add the following screen.
[Screen ID] |
[Screen Type] |
2 |
[Uniform Grid] |
Set up the following property.
Tab | Sub Tab | Property | Value | |
[Function] | [Basic] | [Preferences] | [Initial Screen ID] | 2 |
Set this property to display first after the runtime starts up the split screen (Screen ID: 2) created in this setting example.
Add the following contents.
[Content ID] |
[Screen Type] |
1 |
[View Box] |
2 |
[View Box] |
3 |
[View Box] |
4 |
[View Box] |
To define screen settings such as color, in Document view click the drawing area and define the settings in the Properties window.
Tab |
Property |
Values |
|
[Basic] |
[Fill] |
[Value] |
ID: (Any) |
[Row] |
(Initial Value) |
||
[Column] |
(Initial Value) |
Drag and drop the following objects from the [Tool Chest] to the screen.
Tab |
Sub Tab |
Property |
Values |
[Function] |
[Basic] |
[Content ID] |
1 |
[Shape] |
[Size/Location] |
[Visibility] |
[Name]: Var1 |
Tab |
Sub Tab |
Property |
Values |
[Function] |
[Basic] |
[Content ID] |
2 |
[Shape] |
[Size/Location] |
[Visibility] |
[Name]: Var2 |
Tab |
Sub Tab |
Property |
Values |
[Function] |
[Basic] |
[Content ID] |
3 |
[Shape] |
[Size/Location] |
[Visibility] |
[Name]: Var3 |
Tab |
Sub Tab |
Property |
Values |
[Function] |
[Basic] |
[Content ID] |
4 |
[Shape] |
[Size/Location] |
[Visibility] |
[Name]: Var4 |
Place a switch in each content to switch between a single full screen and multiple split-screen displays. Set a script to operate the switch.
Drag and drop the following object from the [Tool Chest] to the Content1.
Default Value
Drag and drop the following object from the [Tool Chest] to the Content2.
Default Value
Drag and drop the following object from the [Tool Chest] to the Content3.
Default Value
Drag and drop the following object from the [Tool Chest] to the Content4.
Default Value
Set up a script that switches the [Visibility] property of other Content Display objects between 0 (show) and 2 (minimize) when a switch is touched on one of the Content Display objects.
Set the following script on the object.
From the [Tool Chest] drag and drop the script to the Script editor.
Number |
Block |
1 |
[Trigger] ➞ [Touch] ➞ [Touch] |
2 |
[Value] ➞ [Screen Object] |
3 |
[Operation] ➞ [Value Change] ➞ [Value Change] |
4 |
[Value] → [Variable] |
5 |
[Value] → [Constant] |
Set the following script on the object.
From the [Tool Chest] drag and drop the script to the Script editor.
Number |
Block |
1 |
[Trigger] ➞ [Touch] ➞ [Touch] |
2 |
[Value] ➞ [Screen Object] |
3 |
[Operation] ➞ [Value Change] ➞ [Value Change] |
4 |
[Value] → [Variable] |
5 |
[Value] → [Constant] |
Set the following script on the object.
From the [Tool Chest] drag and drop the script to the Script editor.
Number |
Block |
1 |
[Trigger] ➞ [Touch] ➞ [Touch] |
2 |
[Value] ➞ [Screen Object] |
3 |
[Operation] ➞ [Value Change] ➞ [Value Change] |
4 |
[Value] → [Variable] |
5 |
[Value] → [Constant] |
Set the following script on the object.
From the [Tool Chest] drag and drop the script to the Script editor.
Number |
Block |
1 |
[Trigger] ➞ [Touch] ➞ [Touch] |
2 |
[Value] ➞ [Screen Object] |
3 |
[Operation] ➞ [Value Change] ➞ [Value Change] |
4 |
[Value] → [Variable] |
5 |
[Value] → [Constant] |