Add screen for configuring vehicle parameters

This commit is contained in:
2023-04-04 20:58:34 +02:00
parent 09f65fcf22
commit a5f10be4fd
35 changed files with 1976 additions and 104 deletions

View File

@ -180,6 +180,18 @@
"ScreenTransitionType": "ScreenTransitionNone",
"ActionComponent": "DebugView"
}
},
{
"InteractionName": "DummyChangeConfigView",
"Trigger": {
"Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 251
},
"Action": {
"Type": "ActionGotoScreen",
"ScreenTransitionType": "ScreenTransitionNone",
"ActionComponent": "VehicleConfig"
}
}
]
},
@ -592,6 +604,114 @@
}
],
"Interactions": []
},
{
"Name": "VehicleConfig",
"CanvasBufferSize": 7200,
"Components": [
{
"Type": "TextArea",
"Name": "title",
"X": 15,
"Y": 15,
"Width": 450,
"Height": 37,
"TextId": "__SingleUse_RWCE",
"TextRotation": "0",
"Color": {
"Red": 255,
"Green": 255,
"Blue": 255
}
},
{
"Type": "ScrollWheel",
"Name": "params",
"X": 15,
"Y": 60,
"Width": 450,
"Height": 245,
"ItemTemplateName": "ConfigItem",
"NumberofItems": 1,
"Easing": "Cubic",
"EasingOption": "Out",
"SwipeAcceleration": 1.0,
"DragAcceleration": 1.0
},
{
"Type": "Line",
"Name": "line1",
"X": 15,
"Y": 58,
"Width": 450,
"Height": 2,
"Color": {
"Red": 255,
"Green": 255,
"Blue": 255
},
"EndX": 450.0,
"LineWidth": 10.0,
"LineEndingStyle": "Round"
}
],
"Interactions": [
{
"InteractionName": "SelectPreviousParam",
"Trigger": {
"Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 22
},
"Action": {
"Type": "ActionCustom",
"FunctionName": "selectPrevParam"
}
},
{
"InteractionName": "SelectNextParam",
"Trigger": {
"Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 21
},
"Action": {
"Type": "ActionCustom",
"FunctionName": "selectNextParam"
}
},
{
"InteractionName": "DecreaseParam",
"Trigger": {
"Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 24
},
"Action": {
"Type": "ActionCustom",
"FunctionName": "decParam"
}
},
{
"InteractionName": "IncreaseParam",
"Trigger": {
"Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 23
},
"Action": {
"Type": "ActionCustom",
"FunctionName": "incParam"
}
},
{
"InteractionName": "ConfirmParam",
"Trigger": {
"Type": "TriggerPhysicalButtonClicked",
"ButtonKey": 6
},
"Action": {
"Type": "ActionCustom",
"FunctionName": "confirmParam"
}
}
]
}
],
"CustomContainerDefinitions": [
@ -904,6 +1024,83 @@
}
],
"Interactions": []
},
{
"Name": "ConfigItem",
"X": -65,
"Y": 220,
"Width": 450,
"Height": 50,
"Components": [
{
"Type": "Box",
"Name": "bg",
"Width": 450,
"Height": 50
},
{
"Type": "TextArea",
"Name": "title",
"Y": 6,
"Width": 200,
"Height": 37,
"TextId": "__SingleUse_YTAB",
"TextRotation": "0",
"Color": {
"Red": 255,
"Green": 255,
"Blue": 255
},
"Wildcard1": {}
},
{
"Type": "Line",
"Name": "line1",
"X": 200,
"Width": 2,
"Height": 50,
"Color": {
"Red": 255,
"Green": 255,
"Blue": 255
},
"EndY": 50.0,
"LineWidth": 10.0,
"LineEndingStyle": "Round"
},
{
"Type": "TextArea",
"Name": "value",
"X": 207,
"Y": -7,
"Width": 243,
"Height": 55,
"TextId": "__SingleUse_4E84",
"TextRotation": "0",
"Color": {
"Red": 255,
"Green": 255,
"Blue": 255
},
"Wildcard1": {}
},
{
"Type": "Line",
"Name": "line2",
"Y": 48,
"Width": 450,
"Height": 2,
"Color": {
"Red": 255,
"Green": 255,
"Blue": 255
},
"EndX": 450.0,
"LineWidth": 10.0,
"LineEndingStyle": "Round"
}
],
"Interactions": []
}
],
"Name": "MyApplication",