9 |
9 |
|
"content": "ui.UiFactory.layouts.settingsGeneral = {\n \"type\": \"ui.FreeLayout\",\n \"frame\": [0, 0, Graphics.width, Graphics.height],\n \"preload\": { graphics: [name: $ -> $dataFields.database.system.menuBackground.name or 'bg-generic'] },\n \"controls\": [\n {\n \"type\": \"ui.Image\",\n \"image\": -> $dataFields.database.system.menuBackground.name or 'bg-generic'\n \"frame\": [0, 0, Graphics.width, Graphics.height]\n },\n {\n \"type\": \"ui.BackButton\",\n \"frame\": [Graphics.width - 170, Graphics.height - 65, 150, 45]\n },\n {\n \"type\": \"ui.TitledWindow\",\n \"frame\": [\n gs.UIConstants.LAYOUT_SETTINGS_WINDOW_X, \n 0, \n gs.UIConstants.LAYOUT_SETTINGS_WINDOW_W, \n Graphics.height - 70\n ],\n \"params\": { \"title\": { \"lcId\": \"4D3EC62F007AF64B0C68E8081C003D041370\", \"defaultText\": \"General Settings\" } }\n },\n {\n \"type\": \"ui.VerticalScrollView\",\n \"id\": \"settingsScrollView\",\n \"frame\": [\n gs.UIConstants.LAYOUT_SETTINGS_WINDOW_X, \n 45, \n gs.UIConstants.LAYOUT_SETTINGS_WINDOW_W, \n Graphics.height - 45 - 10 - 70\n ],\n \"params\": {\n \"dataField\": 1,\n \"template\": {\n \"type\": \"ui.StackLayout\",\n \"orientation\": \"vertical\",\n \"sizeToFit\": true,\n \"controls\": [\n { \n \"type\": \"ui.SettingsOptionSet\", \n \"params\": { \n \"label\": { \n \"lcId\": \"2BB9D02557CFE84BAE8B7401501783BA6FBF\", \n \"defaultText\": \"Display Mode\" \n }, \n \"write\": $ (v) -> $dataFields.settings.fullScreen = v\n \"read\": $ -> $dataFields.settings.fullScreen\n \"group\": \"displayMode\",\n \"onLabel\": { \n \"lcId\": \"06C8957A5B6A0949DD28B96486586E93FCD4\", \n \"defaultText\": \"Fullscreen\" \n }, \n \"offLabel\": { \n \"lcId\": \"C5BB4D477FDFE54D2B5A0473BEC61239C219\", \n \"defaultText\": \"Windowed\" \n },\n \"onAction\": { \n \"name\": \"enterFullScreen\", \n \"params\": {} \n }, \n \"offAction\": { \n \"name\": \"leaveFullScreen\", \n \"params\": {} \n } \n } \n },\n { \n \"type\": \"ui.SettingsOptionSet\", \n \"params\": { \n \"label\": { \n \"lcId\": \"1C7C50BC434287404B392232B960C5701039\", \n \"defaultText\": \"Screen Adjustment\" \n }, \n \"write\": $ (v) -> $dataFields.settings.aspectRatio = v\n \"read\": $ -> $dataFields.settings.aspectRatio\n \"group\": \"screenAdjust\",\n \"onLabel\": { \n \"lcId\": \"33B51B1130853144E4888263A53B022C4ADB\", \n \"defaultText\": \"Stretch\" \n }, \n \"offLabel\": { \n \"lcId\": \"A583EEF38BB725426A6AB8965DCCDDED2982\", \n \"defaultText\": \"Ratio\" \n },\n \"onAction\": { \n \"name\": \"adjustAspectRatio\", \n \"params\": true \n }, \n \"offAction\": { \n \"name\": \"adjustAspectRatio\", \n \"params\": false \n } \n } \n },\n { \n \"type\": \"ui.SettingsOptionSet\", \n \"params\": { \n \"label\": { \"lcId\": \"4F0DB69F055E3742208BE803F70C506572A3\", \"defaultText\": \"Confirmation\" }, \n \"onLabel\": { \n \"lcId\": \"DB87E66F8299B549E56B2F048040DA406BCC\", \n \"defaultText\": \"On\" \n }, \n \"offLabel\": { \n \"lcId\": \"2D23328A3B4F80462E7AB2F8CD3996B20665\", \n \"defaultText\": \"Off\" \n }, \n \"group\": \"confirmation\", \n \"write\": $ (v) -> $dataFields.settings.confirmation = v\n \"read\": $ -> $dataFields.settings.confirmation\n } \n }\n ]\n }\n }\n },\n {\n \"type\": \"ui.ConfirmationButton\",\n \"frame\": [gs.UIConstants.LAYOUT_SETTINGS_WINDOW_X, Graphics.height - 60, 300, 45],\n \"params\": { \n \"confirmationMessage\": { \"lcId\": \"92D58F0C1B58A94ADF791B81E9479CF2A27D\", \"defaultText\": \"Do you really want to reset global data?\" }, \n \"text\": { \"lcId\": \"4272A0BC5880A64DA49AEBD4D60905347726\", \"defaultText\": \"Reset Global Data\" }, \n \"acceptActions\": [{ \"name\": \"resetGlobalData\", \"params\": { \"name\": \"titleLayout\" } }, {\"name\":\"disposeControl\",\"params\":($ -> 'confirmationDialog')}], \n \"rejectActions\": [{ \"name\":\"disposeControl\",\"params\":($ -> 'confirmationDialog')}] }\n } \n ]\n}", |