|
9 | 9 | "name": "ScreenOrientationChecker", |
10 | 10 | "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/0126888931a4a4f82bb2824df9f096347ace1c47f510c44df42aa8dc9e49e24a_screen-rotation.svg", |
11 | 11 | "shortDescription": "Display a customizable screen asking the user to rotate their phone/tablet if not in the right orientation.", |
12 | | - "version": "0.1.2", |
| 12 | + "version": "0.2.0", |
13 | 13 | "description": "Display a customizable screen asking the user to rotate their phone/tablet if not in the right orientation.", |
14 | 14 | "origin": { |
15 | 15 | "identifier": "ScreenOrientationChecker", |
|
296 | 296 | "ambientLightColorB": 200, |
297 | 297 | "ambientLightColorG": 200, |
298 | 298 | "ambientLightColorR": 200, |
| 299 | + "camera2DPlaneMaxDrawingDistance": 5000, |
299 | 300 | "camera3DFarPlaneDistance": 10000, |
300 | 301 | "camera3DFieldOfView": 45, |
301 | 302 | "camera3DNearPlaneDistance": 3, |
|
372 | 373 | "initialVariables": [] |
373 | 374 | } |
374 | 375 | ], |
| 376 | + "editionSettings": { |
| 377 | + "grid": false, |
| 378 | + "gridType": "rectangular", |
| 379 | + "gridWidth": 32, |
| 380 | + "gridHeight": 32, |
| 381 | + "gridDepth": 32, |
| 382 | + "gridOffsetX": 0, |
| 383 | + "gridOffsetY": 0, |
| 384 | + "gridOffsetZ": 0, |
| 385 | + "gridColor": 10401023, |
| 386 | + "gridAlpha": 0.8, |
| 387 | + "snap": false, |
| 388 | + "zoomFactor": 1.75, |
| 389 | + "windowMask": false |
| 390 | + }, |
375 | 391 | "eventsFunctions": [ |
| 392 | + { |
| 393 | + "fullName": "", |
| 394 | + "functionType": "Action", |
| 395 | + "name": "onCreated", |
| 396 | + "sentence": "", |
| 397 | + "events": [ |
| 398 | + { |
| 399 | + "type": "BuiltinCommonInstructions::Standard", |
| 400 | + "conditions": [], |
| 401 | + "actions": [ |
| 402 | + { |
| 403 | + "type": { |
| 404 | + "value": "PrimitiveDrawing::ClearBetweenFrames" |
| 405 | + }, |
| 406 | + "parameters": [ |
| 407 | + "BackgroundPainter", |
| 408 | + "" |
| 409 | + ] |
| 410 | + } |
| 411 | + ] |
| 412 | + } |
| 413 | + ], |
| 414 | + "parameters": [ |
| 415 | + { |
| 416 | + "description": "Object", |
| 417 | + "name": "Object", |
| 418 | + "supplementaryInformation": "ScreenOrientationChecker::ScreenOrientationChecker", |
| 419 | + "type": "object" |
| 420 | + } |
| 421 | + ], |
| 422 | + "objectGroups": [] |
| 423 | + }, |
376 | 424 | { |
377 | 425 | "fullName": "", |
378 | 426 | "functionType": "Action", |
379 | 427 | "name": "doStepPostEvents", |
380 | 428 | "sentence": "", |
381 | 429 | "events": [ |
| 430 | + { |
| 431 | + "type": "BuiltinCommonInstructions::Standard", |
| 432 | + "conditions": [ |
| 433 | + { |
| 434 | + "type": { |
| 435 | + "value": "ScreenOrientationChecker::IsInGameEdition" |
| 436 | + }, |
| 437 | + "parameters": [ |
| 438 | + "", |
| 439 | + "" |
| 440 | + ] |
| 441 | + } |
| 442 | + ], |
| 443 | + "actions": [ |
| 444 | + { |
| 445 | + "type": { |
| 446 | + "value": "ScreenOrientationChecker::ScreenOrientationChecker::DrawBackground" |
| 447 | + }, |
| 448 | + "parameters": [ |
| 449 | + "Object", |
| 450 | + "" |
| 451 | + ] |
| 452 | + } |
| 453 | + ] |
| 454 | + }, |
382 | 455 | { |
383 | 456 | "type": "BuiltinCommonInstructions::Standard", |
384 | 457 | "conditions": [ |
|
612 | 685 | "actions": [ |
613 | 686 | { |
614 | 687 | "type": { |
615 | | - "value": "PrimitiveDrawing::FillColor" |
| 688 | + "value": "ScreenOrientationChecker::ScreenOrientationChecker::DrawBackground" |
616 | 689 | }, |
617 | 690 | "parameters": [ |
618 | | - "BackgroundPainter", |
619 | | - "BackgroundColor" |
620 | | - ] |
621 | | - }, |
622 | | - { |
623 | | - "type": { |
624 | | - "value": "PrimitiveDrawing::RoundedRectangle" |
625 | | - }, |
626 | | - "parameters": [ |
627 | | - "BackgroundPainter", |
628 | | - "Padding", |
629 | | - "Padding", |
630 | | - "Object.Width()-Padding", |
631 | | - "Object.Height()-Padding", |
632 | | - "CornerRadius" |
| 691 | + "Object", |
| 692 | + "" |
633 | 693 | ] |
634 | 694 | }, |
635 | 695 | { |
|
846 | 906 | ], |
847 | 907 | "objectGroups": [] |
848 | 908 | }, |
| 909 | + { |
| 910 | + "description": "Draw the background.", |
| 911 | + "fullName": "Draw the background", |
| 912 | + "functionType": "Action", |
| 913 | + "name": "DrawBackground", |
| 914 | + "private": true, |
| 915 | + "sentence": "Draw the background of _PARAM0_", |
| 916 | + "events": [ |
| 917 | + { |
| 918 | + "type": "BuiltinCommonInstructions::Standard", |
| 919 | + "conditions": [], |
| 920 | + "actions": [ |
| 921 | + { |
| 922 | + "type": { |
| 923 | + "value": "PrimitiveDrawing::RoundedRectangle" |
| 924 | + }, |
| 925 | + "parameters": [ |
| 926 | + "BackgroundPainter", |
| 927 | + "Padding", |
| 928 | + "Padding", |
| 929 | + "Object.Width()-Padding", |
| 930 | + "Object.Height()-Padding", |
| 931 | + "CornerRadius" |
| 932 | + ] |
| 933 | + } |
| 934 | + ] |
| 935 | + } |
| 936 | + ], |
| 937 | + "parameters": [ |
| 938 | + { |
| 939 | + "description": "Object", |
| 940 | + "name": "Object", |
| 941 | + "supplementaryInformation": "ScreenOrientationChecker::ScreenOrientationChecker", |
| 942 | + "type": "object" |
| 943 | + } |
| 944 | + ], |
| 945 | + "objectGroups": [] |
| 946 | + }, |
849 | 947 | { |
850 | 948 | "description": "Check if the screen should be forced to be shown. Use this to test the screen in your game.", |
851 | 949 | "fullName": "Force show the screen", |
852 | 950 | "functionType": "Condition", |
853 | | - "group": "Screen Orientation Checker configuration", |
854 | 951 | "name": "IsForceShown", |
855 | 952 | "sentence": "_PARAM0_ is forced to be shown", |
856 | 953 | "events": [ |
|
894 | 991 | "description": "Change if the screen should be forced to be shown. Use this to test the screen in your game.", |
895 | 992 | "fullName": "Force show the screen", |
896 | 993 | "functionType": "Action", |
897 | | - "group": "Screen Orientation Checker configuration", |
898 | 994 | "name": "SetIsForceShown", |
899 | 995 | "sentence": "Force _PARAM0_ to be shown: _PARAM1_", |
900 | 996 | "events": [ |
|
970 | 1066 | } |
971 | 1067 | ], |
972 | 1068 | "objectGroups": [] |
| 1069 | + }, |
| 1070 | + { |
| 1071 | + "description": "the message of the object.", |
| 1072 | + "fullName": "Message", |
| 1073 | + "functionType": "ExpressionAndCondition", |
| 1074 | + "name": "Message", |
| 1075 | + "sentence": "the message", |
| 1076 | + "events": [ |
| 1077 | + { |
| 1078 | + "type": "BuiltinCommonInstructions::Standard", |
| 1079 | + "conditions": [], |
| 1080 | + "actions": [ |
| 1081 | + { |
| 1082 | + "type": { |
| 1083 | + "value": "SetReturnString" |
| 1084 | + }, |
| 1085 | + "parameters": [ |
| 1086 | + "Text.Text::Value()" |
| 1087 | + ] |
| 1088 | + } |
| 1089 | + ] |
| 1090 | + } |
| 1091 | + ], |
| 1092 | + "expressionType": { |
| 1093 | + "type": "string" |
| 1094 | + }, |
| 1095 | + "parameters": [ |
| 1096 | + { |
| 1097 | + "description": "Object", |
| 1098 | + "name": "Object", |
| 1099 | + "supplementaryInformation": "ScreenOrientationChecker::ScreenOrientationChecker", |
| 1100 | + "type": "object" |
| 1101 | + } |
| 1102 | + ], |
| 1103 | + "objectGroups": [] |
| 1104 | + }, |
| 1105 | + { |
| 1106 | + "fullName": "", |
| 1107 | + "functionType": "ActionWithOperator", |
| 1108 | + "getterName": "Message", |
| 1109 | + "name": "SetMessage", |
| 1110 | + "sentence": "", |
| 1111 | + "events": [ |
| 1112 | + { |
| 1113 | + "type": "BuiltinCommonInstructions::Standard", |
| 1114 | + "conditions": [], |
| 1115 | + "actions": [ |
| 1116 | + { |
| 1117 | + "type": { |
| 1118 | + "value": "TextContainerCapability::TextContainerBehavior::SetValue" |
| 1119 | + }, |
| 1120 | + "parameters": [ |
| 1121 | + "Text", |
| 1122 | + "Text", |
| 1123 | + "=", |
| 1124 | + "Value" |
| 1125 | + ] |
| 1126 | + } |
| 1127 | + ] |
| 1128 | + } |
| 1129 | + ], |
| 1130 | + "parameters": [ |
| 1131 | + { |
| 1132 | + "description": "Object", |
| 1133 | + "name": "Object", |
| 1134 | + "supplementaryInformation": "ScreenOrientationChecker::ScreenOrientationChecker", |
| 1135 | + "type": "object" |
| 1136 | + } |
| 1137 | + ], |
| 1138 | + "objectGroups": [] |
973 | 1139 | } |
974 | 1140 | ], |
975 | 1141 | "propertyDescriptors": [ |
|
1003 | 1169 | "description": "Corner radius for the background", |
1004 | 1170 | "group": "Appearance", |
1005 | 1171 | "name": "CornerRadius" |
1006 | | - }, |
1007 | | - { |
1008 | | - "value": "0;0;0", |
1009 | | - "type": "Color", |
1010 | | - "label": "Background color", |
1011 | | - "group": "Appearance", |
1012 | | - "name": "BackgroundColor" |
1013 | 1172 | } |
1014 | 1173 | ] |
1015 | 1174 | } |
|
0 commit comments