diff --git a/MainMenuSample/Content/Audio/Main Menu Music.flax b/MainMenuSample/Content/Audio/Main Menu Music.flax
new file mode 100644
index 0000000..e7a6d34
Binary files /dev/null and b/MainMenuSample/Content/Audio/Main Menu Music.flax differ
diff --git a/MainMenuSample/Content/GameScene.scene b/MainMenuSample/Content/GameScene.scene
new file mode 100644
index 0000000..fe6c10a
--- /dev/null
+++ b/MainMenuSample/Content/GameScene.scene
@@ -0,0 +1,225 @@
+{
+ "ID": "f35accbe4e74eff983252ba2a66c9524",
+ "TypeName": "FlaxEngine.SceneAsset",
+ "EngineBuild": 6218,
+ "Data": [
+ {
+ "ID": "f35accbe4e74eff983252ba2a66c9524",
+ "TypeName": "FlaxEngine.Scene",
+ "Lightmaps": [
+ {
+ "Lightmap0": "00000000000000000000000000000000",
+ "Lightmap1": "00000000000000000000000000000000",
+ "Lightmap2": "00000000000000000000000000000000"
+ }
+ ],
+ "LightmapSettings": {
+ "IndirectLightingIntensity": 1.0,
+ "GlobalObjectsScale": 1.0,
+ "ChartsPadding": 3,
+ "AtlasSize": 1024,
+ "BounceCount": 1,
+ "CompressLightmaps": true,
+ "UseGeometryWithNoMaterials": true,
+ "Quality": 100
+ }
+ },
+ {
+ "ID": "28553d634087c67c711ebd96080482aa",
+ "TypeName": "FlaxEngine.EmptyActor",
+ "ParentID": "f35accbe4e74eff983252ba2a66c9524",
+ "Name": "Visuals"
+ },
+ {
+ "ID": "bc81376747666609b0974580a21519a1",
+ "TypeName": "FlaxEngine.Sky",
+ "ParentID": "28553d634087c67c711ebd96080482aa",
+ "Name": "Sky",
+ "Transform": {
+ "Translation": {
+ "X": -69.65292358398438,
+ "Y": 75.30659484863281,
+ "Z": -14.423166275024414
+ }
+ },
+ "Sun": "deecf0894777293a4f478dadacf2a6f8"
+ },
+ {
+ "ID": "da5e1c454a56377517d41686ebb0348f",
+ "TypeName": "FlaxEngine.EnvironmentProbe",
+ "ParentID": "28553d634087c67c711ebd96080482aa",
+ "Name": "Environment Probe",
+ "Transform": {
+ "Translation": {
+ "X": 0.0,
+ "Y": 108.5870361328125,
+ "Z": 0.0
+ }
+ }
+ },
+ {
+ "ID": "deecf0894777293a4f478dadacf2a6f8",
+ "TypeName": "FlaxEngine.DirectionalLight",
+ "ParentID": "28553d634087c67c711ebd96080482aa",
+ "Name": "Directional Light",
+ "Transform": {
+ "Translation": {
+ "X": -1.6893305778503419,
+ "Y": 90.0248794555664,
+ "Z": 0.0
+ },
+ "Orientation": {
+ "X": 0.1200082004070282,
+ "Y": 0.8772756457328796,
+ "Z": -0.2897253632545471,
+ "W": 0.36337947845458987
+ }
+ },
+ "Color": {
+ "R": 1.0,
+ "G": 0.9606999754905701,
+ "B": 0.8050000071525574,
+ "A": 1.0
+ },
+ "MinRoughness": 0.0,
+ "ShadowsDistance": 2000.0,
+ "ShadowsFadeDistance": 50.0,
+ "ShadowsDepthBias": 0.0010000000474974514
+ },
+ {
+ "ID": "eb18e84d41670d6314174b89a1d5ffea",
+ "TypeName": "FlaxEngine.SkyLight",
+ "ParentID": "28553d634087c67c711ebd96080482aa",
+ "Name": "SkyLight",
+ "Transform": {
+ "Translation": {
+ "X": 0.0,
+ "Y": 150.0,
+ "Z": 0.0
+ }
+ },
+ "Mode": 0
+ },
+ {
+ "ID": "b0d72c3746caebca055e1f921ca21c7c",
+ "TypeName": "FlaxEngine.Camera",
+ "ParentID": "f35accbe4e74eff983252ba2a66c9524",
+ "Name": "Camera",
+ "Transform": {
+ "Translation": {
+ "X": 117.32794952392578,
+ "Y": -6.272453308105469,
+ "Z": 30.38385772705078
+ },
+ "Orientation": {
+ "X": -0.2035505473613739,
+ "Y": -0.5214164853096008,
+ "Z": -0.12967604398727418,
+ "W": 0.8184596300125122
+ }
+ },
+ "StaticFlags": 0
+ },
+ {
+ "ID": "19e5b65e47bdf97134a99694e87dde16",
+ "TypeName": "MainMenuSample.FreeCamera",
+ "ParentID": "b0d72c3746caebca055e1f921ca21c7c",
+ "V": {}
+ },
+ {
+ "ID": "f6ef8d0b4de3eb3893da73986e2f0422",
+ "TypeName": "FlaxEngine.TextRender",
+ "ParentID": "f35accbe4e74eff983252ba2a66c9524",
+ "Name": "Text",
+ "Transform": {
+ "Translation": {
+ "X": -102.9065933227539,
+ "Y": 92.81654357910156,
+ "Z": 149.02386474609376
+ },
+ "Orientation": {
+ "X": 0.15251487493515016,
+ "Y": 0.7963897585868836,
+ "Z": -0.2531026601791382,
+ "W": 0.5276757478713989
+ }
+ },
+ "Text": "Assign your own scene\nin the properties window, in the\nButtonFunctions script.",
+ "Color": {
+ "R": 0.001000046730041504,
+ "G": 0.001000046730041504,
+ "B": 0.001000046730041504,
+ "A": 1.0
+ },
+ "Size": 14,
+ "Material": "e72782bd4d898e2f236ca3be780438af",
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "ShadowsMode": 0
+ },
+ {
+ "ID": "0198158547901d990682a999e98e88e6",
+ "TypeName": "FlaxEngine.PostFxVolume",
+ "ParentID": "f35accbe4e74eff983252ba2a66c9524",
+ "Name": "PPFX_Disabler",
+ "Priority": 25,
+ "IsBounded": false,
+ "Settings": {
+ "AO": {
+ "OverrideFlags": 1,
+ "Enabled": false
+ },
+ "Bloom": {
+ "OverrideFlags": 7,
+ "Intensity": 0.15000000596046449,
+ "Threshold": 0.699999988079071
+ },
+ "ToneMapping": {
+ "OverrideFlags": 4,
+ "Mode": 1
+ },
+ "ColorGrading": {},
+ "EyeAdaptation": {},
+ "CameraArtifacts": {
+ "OverrideFlags": 1,
+ "VignetteIntensity": 1.0,
+ "VignetteShapeFactor": 0.00009999999747378752,
+ "GrainAmount": 0.0,
+ "GrainParticleSize": 1.0,
+ "GrainSpeed": 0.0,
+ "ScreenFadeColor": {
+ "R": 1.0010000467300416,
+ "G": 1.0010000467300416,
+ "B": 1.0010000467300416,
+ "A": 0.0
+ }
+ },
+ "LensFlares": {
+ "OverrideFlags": 1,
+ "Intensity": 0.25
+ },
+ "DepthOfField": {
+ "OverrideFlags": 1
+ },
+ "MotionBlur": {
+ "OverrideFlags": 5,
+ "Enabled": false,
+ "SampleCount": 4
+ },
+ "SSR": {
+ "OverrideFlags": 1,
+ "Intensity": 0.125
+ },
+ "AA": {
+ "OverrideFlags": 1
+ },
+ "PostFxMaterials": {}
+ }
+ },
+ {
+ "ID": "436f2ca340254fdc0eca30ab24048cd4",
+ "TypeName": "MainMenuSample.PostProcessingDisabler",
+ "ParentID": "0198158547901d990682a999e98e88e6",
+ "V": {}
+ }
+ ]
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/GameSettings.json b/MainMenuSample/Content/GameSettings.json
new file mode 100644
index 0000000..c75d86d
--- /dev/null
+++ b/MainMenuSample/Content/GameSettings.json
@@ -0,0 +1,25 @@
+{
+ "ID": "9eba3d2a4cee4c099117f49c5dffc171",
+ "TypeName": "FlaxEditor.Content.Settings.GameSettings",
+ "EngineBuild": 6216,
+ "Data": {
+ "ProductName": "Main Menu Sample",
+ "CompanyName": "Flax",
+ "Icon": "082a72894a22b17bde1bb5819c404d1c",
+ "FirstScene": "74a68a984824b4510d12589f199ad68f",
+ "NoSplashScreen": false,
+ "SplashScreen": "d011caa54d3ad58499e6b6b218f6a632",
+ "Time": "9acd18b0496064d35799f390d3a2b374",
+ "Audio": "fc8ef1bb474956920c5505b7ea7ea9ff",
+ "LayersAndTags": "bb6fbecf458db0ecffa5e2a5155b2b4f",
+ "Physics": "7871f0364d398555ccd9e297acdc8983",
+ "Input": "f4c1c67842f6b745a6976aa8e7eff360",
+ "Graphics": "4eaf325e4cd72aa4cdeb6393cad05466",
+ "Navigation": "9d5e29604efb16eff6b815aa4a110227",
+ "GameCooking": "2364031e4e327637c1ad88b415fa756e",
+ "WindowsPlatform": "79ac390447f4263e30f56e9190a70dbc",
+ "UWPPlatform": "8660bbf44f1ea61cb9bc4580b3631973",
+ "LinuxPlatform": "1bf4eedd41508974d6646e8faa55420a",
+ "AndroidPlatform": "9ac06a884463f4ae9435e2b03c866259"
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/MainMenuScene.scene b/MainMenuSample/Content/MainMenuScene.scene
new file mode 100644
index 0000000..1070972
--- /dev/null
+++ b/MainMenuSample/Content/MainMenuScene.scene
@@ -0,0 +1,1639 @@
+{
+ "ID": "74a68a984824b4510d12589f199ad68f",
+ "TypeName": "FlaxEngine.SceneAsset",
+ "EngineBuild": 6218,
+ "Data": [
+ {
+ "ID": "74a68a984824b4510d12589f199ad68f",
+ "TypeName": "FlaxEngine.Scene",
+ "Lightmaps": [
+ {
+ "Lightmap0": "00000000000000000000000000000000",
+ "Lightmap1": "00000000000000000000000000000000",
+ "Lightmap2": "00000000000000000000000000000000"
+ }
+ ],
+ "LightmapSettings": {
+ "IndirectLightingIntensity": 1.0,
+ "GlobalObjectsScale": 1.0,
+ "ChartsPadding": 3,
+ "AtlasSize": 1024,
+ "BounceCount": 1,
+ "CompressLightmaps": true,
+ "UseGeometryWithNoMaterials": true,
+ "Quality": 100
+ }
+ },
+ {
+ "ID": "28553d634087c67c711ebd96080482aa",
+ "TypeName": "FlaxEngine.EmptyActor",
+ "ParentID": "74a68a984824b4510d12589f199ad68f",
+ "Name": "Visuals"
+ },
+ {
+ "ID": "bc81376747666609b0974580a21519a1",
+ "TypeName": "FlaxEngine.Sky",
+ "ParentID": "28553d634087c67c711ebd96080482aa",
+ "Name": "Sky",
+ "Transform": {
+ "Translation": {
+ "X": -69.65292358398438,
+ "Y": 75.30659484863281,
+ "Z": -14.423166275024414
+ }
+ },
+ "Sun": "deecf0894777293a4f478dadacf2a6f8",
+ "SunPower": 3.5
+ },
+ {
+ "ID": "da5e1c454a56377517d41686ebb0348f",
+ "TypeName": "FlaxEngine.EnvironmentProbe",
+ "ParentID": "28553d634087c67c711ebd96080482aa",
+ "Name": "Environment Probe",
+ "Transform": {
+ "Translation": {
+ "X": 0.0,
+ "Y": 108.5870361328125,
+ "Z": 0.0
+ }
+ }
+ },
+ {
+ "ID": "deecf0894777293a4f478dadacf2a6f8",
+ "TypeName": "FlaxEngine.DirectionalLight",
+ "ParentID": "28553d634087c67c711ebd96080482aa",
+ "Name": "Directional Light",
+ "Transform": {
+ "Translation": {
+ "X": -1.6893305778503419,
+ "Y": 90.0248794555664,
+ "Z": 0.0
+ },
+ "Orientation": {
+ "X": 0.4122960865497589,
+ "Y": 0.8249488472938538,
+ "Z": 0.10661942511796951,
+ "W": 0.3716229200363159
+ }
+ },
+ "Color": {
+ "R": 1.0,
+ "G": 0.9606999754905701,
+ "B": 0.8050000071525574,
+ "A": 1.0
+ },
+ "MinRoughness": 0.0,
+ "ShadowsDistance": 2000.0,
+ "ShadowsFadeDistance": 50.0,
+ "ShadowsDepthBias": 0.0010000000474974514
+ },
+ {
+ "ID": "eb18e84d41670d6314174b89a1d5ffea",
+ "TypeName": "FlaxEngine.SkyLight",
+ "ParentID": "28553d634087c67c711ebd96080482aa",
+ "Name": "SkyLight",
+ "Transform": {
+ "Translation": {
+ "X": 0.0,
+ "Y": 150.0,
+ "Z": 0.0
+ }
+ },
+ "Mode": 0
+ },
+ {
+ "ID": "b0d72c3746caebca055e1f921ca21c7c",
+ "TypeName": "FlaxEngine.Camera",
+ "ParentID": "74a68a984824b4510d12589f199ad68f",
+ "Name": "Camera",
+ "Transform": {
+ "Translation": {
+ "X": 28.247344970703126,
+ "Y": 15.681705474853516,
+ "Z": -11.635886192321778
+ },
+ "Orientation": {
+ "X": -0.22388601303100587,
+ "Y": -0.4968806803226471,
+ "Z": -0.13441909849643708,
+ "W": 0.8275966048240662
+ }
+ },
+ "StaticFlags": 0
+ },
+ {
+ "ID": "3aedcaf14d156e9bcbe0e4af19bf0fac",
+ "TypeName": "FlaxEngine.AudioListener",
+ "ParentID": "b0d72c3746caebca055e1f921ca21c7c",
+ "Name": "AudioListener",
+ "StaticFlags": 0
+ },
+ {
+ "ID": "f49679574a7b279c425fa09dcac360c3",
+ "TypeName": "FlaxEngine.AudioSource",
+ "ParentID": "b0d72c3746caebca055e1f921ca21c7c",
+ "Name": "MusicSource",
+ "StaticFlags": 0,
+ "Clip": "6b98e2f044d22c8c380927bffc5bf82e",
+ "Volume": 0.10000000149011612,
+ "Loop": true,
+ "PlayOnStart": true
+ },
+ {
+ "ID": "db42ab794de24a3c9e15d39774ed89b9",
+ "TypeName": "FlaxEngine.UICanvas",
+ "ParentID": "74a68a984824b4510d12589f199ad68f",
+ "Name": "UICanvas",
+ "Transform": {
+ "Orientation": {
+ "X": 1.0,
+ "Y": 4.371138828673793e-8,
+ "Z": 4.371138828673793e-8,
+ "W": 1.910685465164705e-15
+ }
+ },
+ "V": {
+ "RenderMode": 1,
+ "IgnoreDepth": true,
+ "RenderCamera": "b0d72c3746caebca055e1f921ca21c7c"
+}
+ },
+ {
+ "ID": "8caae0be45122dd1a476949d5182091b",
+ "TypeName": "MainMenuSample.ButtonFuctions",
+ "ParentID": "db42ab794de24a3c9e15d39774ed89b9",
+ "V": {
+ "PlayButton": "c302f5784465b577e9f130980b9b8288",
+ "OptionsButton": "7834b554447bb74a98a4019425f07a1b",
+ "QuitButton": "7f2f8193471195d4cf95f698f3d5e0b8",
+ "BlurPanel": "66d79fa3456cd043fd6f9ab5e3429798",
+ "FullscreenButton": "48c83d254dfc6006f956fb928d1e78eb",
+ "GFXSettingsButton": "45d8d1de40e64da6d554d783f6ae8a40",
+ "AudioButton": "fe4de40e46673c7d33fe6f960b3f26e4",
+ "OptionsBackButton": "c9a6c04d47e9387e87b4e48063ac3d29",
+ "OptionsMenuActor": "75be5cef4a69976fb3d7ca8a2bba6b10",
+ "GameScene": "f35accbe4e74eff983252ba2a66c9524",
+ "MainMenuActor": "45fedb4c4231fec49728198a921d0ca8"
+}
+ },
+ {
+ "ID": "66d79fa3456cd043fd6f9ab5e3429798",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "db42ab794de24a3c9e15d39774ed89b9",
+ "Name": "BlurPanel_BG",
+ "Control": "FlaxEngine.GUI.BlurPanel",
+ "Data": {
+ "BlurStrength": 7.5,
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Offsets": {
+ "Left": 0.0,
+ "Right": 0.0,
+ "Top": 0.0,
+ "Bottom": 0.0
+ },
+ "Scale": {
+ "X": 10.0,
+ "Y": 10.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 0.35
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "45fedb4c4231fec49728198a921d0ca8",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "db42ab794de24a3c9e15d39774ed89b9",
+ "Name": "Main Menu",
+ "Control": "FlaxEngine.GUI.ContainerControl",
+ "Data": {
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Offsets": {
+ "Left": 0.0,
+ "Right": 0.0,
+ "Top": 0.0,
+ "Bottom": 0.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "7d5cfda74c47f2650632729459f3fd81",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "45fedb4c4231fec49728198a921d0ca8",
+ "Name": "GameNameText",
+ "Transform": {
+ "Translation": {
+ "X": 15.0,
+ "Y": 25.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Label",
+ "Data": {
+ "Text": "Main Menu Sample",
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "TextColorHighlighted": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "HorizontalAlignment": 2,
+ "VerticalAlignment": 0,
+ "Wrapping": 1,
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 60
+ },
+ "Margin": {
+ "Left": 0.0,
+ "Right": 0.0,
+ "Top": 0.0,
+ "Bottom": 0.0
+ },
+ "ClipText": false,
+ "AutoWidth": false,
+ "AutoHeight": false,
+ "AutoFitText": false,
+ "AutoFitTextRange": {
+ "X": 0.1,
+ "Y": 100.0
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": 15.0,
+ "Right": 750.0,
+ "Top": 25.0,
+ "Bottom": 80.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "c302f5784465b577e9f130980b9b8288",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "45fedb4c4231fec49728198a921d0ca8",
+ "Name": "PlayButton",
+ "Transform": {
+ "Translation": {
+ "X": 125.0,
+ "Y": 200.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Button",
+ "Data": {
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "Text": "Play",
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 35
+ },
+ "BorderColor": {
+ "R": 0.0009130862,
+ "G": 0.0009130862,
+ "B": 0.00100004673,
+ "A": 0.0
+ },
+ "BackgroundColorSelected": {
+ "R": 1.0,
+ "G": 0.8,
+ "B": 0.2,
+ "A": 0.0
+ },
+ "BorderColorSelected": {
+ "R": 1.0,
+ "G": 0.9,
+ "B": 0.3,
+ "A": 1.0
+ },
+ "BackgroundColorHighlighted": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BorderColorHighlighted": {
+ "R": 0.8954445,
+ "G": 0.697006941,
+ "B": 0.128567517,
+ "A": 0.877777755
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": 125.0,
+ "Right": 125.0,
+ "Top": 200.0,
+ "Bottom": 48.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.247058824,
+ "G": 0.247058824,
+ "B": 0.274509817,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "7834b554447bb74a98a4019425f07a1b",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "45fedb4c4231fec49728198a921d0ca8",
+ "Name": "OptionsButton",
+ "Transform": {
+ "Translation": {
+ "X": 110.0,
+ "Y": 280.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Button",
+ "Data": {
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "Text": "Options",
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 35
+ },
+ "BorderColor": {
+ "R": 0.9139566,
+ "G": 0.9139566,
+ "B": 1.001,
+ "A": 0.0
+ },
+ "BackgroundColorSelected": {
+ "R": 1.0,
+ "G": 0.8,
+ "B": 0.2,
+ "A": 0.0
+ },
+ "BorderColorSelected": {
+ "R": 1.0,
+ "G": 0.9,
+ "B": 0.3,
+ "A": 1.0
+ },
+ "BackgroundColorHighlighted": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BorderColorHighlighted": {
+ "R": 0.8954445,
+ "G": 0.697006941,
+ "B": 0.128567517,
+ "A": 0.877777755
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": 110.0,
+ "Right": 175.0,
+ "Top": 280.0,
+ "Bottom": 48.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.247058824,
+ "G": 0.247058824,
+ "B": 0.274509817,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "7f2f8193471195d4cf95f698f3d5e0b8",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "45fedb4c4231fec49728198a921d0ca8",
+ "Name": "QuitButton",
+ "Transform": {
+ "Translation": {
+ "X": 125.0,
+ "Y": 360.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Button",
+ "Data": {
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "Text": "Quit",
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 35
+ },
+ "BorderColor": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BackgroundColorSelected": {
+ "R": 1.0,
+ "G": 0.8,
+ "B": 0.2,
+ "A": 0.0
+ },
+ "BorderColorSelected": {
+ "R": 1.0,
+ "G": 0.9,
+ "B": 0.3,
+ "A": 1.0
+ },
+ "BackgroundColorHighlighted": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BorderColorHighlighted": {
+ "R": 0.8954445,
+ "G": 0.697006941,
+ "B": 0.128567517,
+ "A": 0.877777755
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": 125.0,
+ "Right": 125.0,
+ "Top": 360.0,
+ "Bottom": 48.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.247058824,
+ "G": 0.247058824,
+ "B": 0.274509817,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "75be5cef4a69976fb3d7ca8a2bba6b10",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "db42ab794de24a3c9e15d39774ed89b9",
+ "IsActive": false,
+ "Name": "Options Menu",
+ "Control": "FlaxEngine.GUI.ContainerControl",
+ "Data": {
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Offsets": {
+ "Left": 0.0,
+ "Right": 0.0,
+ "Top": 0.0,
+ "Bottom": 0.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "91e251054daf4595c2f98280f2b6711e",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "75be5cef4a69976fb3d7ca8a2bba6b10",
+ "Name": "OptionsMenuText",
+ "Transform": {
+ "Translation": {
+ "X": 15.0,
+ "Y": 25.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Label",
+ "Data": {
+ "Text": "Options Menu\n",
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "TextColorHighlighted": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "HorizontalAlignment": 2,
+ "VerticalAlignment": 0,
+ "Wrapping": 1,
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 60
+ },
+ "Margin": {
+ "Left": 0.0,
+ "Right": 0.0,
+ "Top": 0.0,
+ "Bottom": 0.0
+ },
+ "ClipText": false,
+ "AutoWidth": false,
+ "AutoHeight": false,
+ "AutoFitText": false,
+ "AutoFitTextRange": {
+ "X": 0.1,
+ "Y": 100.0
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": 15.0,
+ "Right": 550.0,
+ "Top": 25.0,
+ "Bottom": 80.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "fe4de40e46673c7d33fe6f960b3f26e4",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "75be5cef4a69976fb3d7ca8a2bba6b10",
+ "Name": "AudioButton",
+ "Transform": {
+ "Translation": {
+ "X": 50.0,
+ "Y": 360.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Button",
+ "Data": {
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "Text": "Audio: On",
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 35
+ },
+ "BorderColor": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BackgroundColorSelected": {
+ "R": 1.0,
+ "G": 0.8,
+ "B": 0.2,
+ "A": 0.0
+ },
+ "BorderColorSelected": {
+ "R": 1.0,
+ "G": 0.9,
+ "B": 0.3,
+ "A": 1.0
+ },
+ "BackgroundColorHighlighted": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BorderColorHighlighted": {
+ "R": 0.8954445,
+ "G": 0.697006941,
+ "B": 0.128567517,
+ "A": 0.877777755
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": 50.0,
+ "Right": 302.0,
+ "Top": 360.0,
+ "Bottom": 48.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.247058824,
+ "G": 0.247058824,
+ "B": 0.274509817,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "48c83d254dfc6006f956fb928d1e78eb",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "75be5cef4a69976fb3d7ca8a2bba6b10",
+ "Name": "FullscreenButton",
+ "Transform": {
+ "Translation": {
+ "X": 50.0,
+ "Y": 280.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Button",
+ "Data": {
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "Text": "Fullscreen: Off",
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 35
+ },
+ "BorderColor": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BackgroundColorSelected": {
+ "R": 1.0,
+ "G": 0.8,
+ "B": 0.2,
+ "A": 0.0
+ },
+ "BorderColorSelected": {
+ "R": 1.0,
+ "G": 0.9,
+ "B": 0.3,
+ "A": 1.0
+ },
+ "BackgroundColorHighlighted": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BorderColorHighlighted": {
+ "R": 0.8954445,
+ "G": 0.697006941,
+ "B": 0.128567517,
+ "A": 0.877777755
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": 50.0,
+ "Right": 302.0,
+ "Top": 280.0,
+ "Bottom": 48.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.247058824,
+ "G": 0.247058824,
+ "B": 0.274509817,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "45d8d1de40e64da6d554d783f6ae8a40",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "75be5cef4a69976fb3d7ca8a2bba6b10",
+ "Name": "GraphicsQualityButton",
+ "Transform": {
+ "Translation": {
+ "X": 50.0,
+ "Y": 200.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Button",
+ "Data": {
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "Text": "Graphics: High",
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 35
+ },
+ "BorderColor": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BackgroundColorSelected": {
+ "R": 1.0,
+ "G": 0.8,
+ "B": 0.2,
+ "A": 0.0
+ },
+ "BorderColorSelected": {
+ "R": 1.0,
+ "G": 0.9,
+ "B": 0.3,
+ "A": 1.0
+ },
+ "BackgroundColorHighlighted": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BorderColorHighlighted": {
+ "R": 0.8954445,
+ "G": 0.697006941,
+ "B": 0.128567517,
+ "A": 0.877777755
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": 50.0,
+ "Right": 302.0,
+ "Top": 200.0,
+ "Bottom": 48.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.247058824,
+ "G": 0.247058824,
+ "B": 0.274509817,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "c9a6c04d47e9387e87b4e48063ac3d29",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "75be5cef4a69976fb3d7ca8a2bba6b10",
+ "Name": "BackButton",
+ "Transform": {
+ "Translation": {
+ "X": 125.0,
+ "Y": 440.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Button",
+ "Data": {
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "Text": "Back",
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 35
+ },
+ "BorderColor": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BackgroundColorSelected": {
+ "R": 1.0,
+ "G": 0.8,
+ "B": 0.2,
+ "A": 0.0
+ },
+ "BorderColorSelected": {
+ "R": 1.0,
+ "G": 0.9,
+ "B": 0.3,
+ "A": 1.0
+ },
+ "BackgroundColorHighlighted": {
+ "R": 0.329411775,
+ "G": 0.329411775,
+ "B": 0.360784322,
+ "A": 0.0
+ },
+ "BorderColorHighlighted": {
+ "R": 0.8954445,
+ "G": 0.697006941,
+ "B": 0.128567517,
+ "A": 0.877777755
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": 125.0,
+ "Right": 125.0,
+ "Top": 440.0,
+ "Bottom": 48.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.247058824,
+ "G": 0.247058824,
+ "B": 0.274509817,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "acce27e9474b06c682aa3e9d8f5054bc",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "db42ab794de24a3c9e15d39774ed89b9",
+ "Name": "FlaxSamplePanel",
+ "Transform": {
+ "Translation": {
+ "X": 842.7698974609375,
+ "Y": 377.3502197265625,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.ContainerControl",
+ "Data": {
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "AnchorMax": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Offsets": {
+ "Left": -275.0,
+ "Right": 275.0,
+ "Top": -200.0,
+ "Bottom": 200.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "76a8807e4dfa310eb6b9f9aa3771afb1",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "acce27e9474b06c682aa3e9d8f5054bc",
+ "Name": "BlurPanel Background",
+ "Control": "FlaxEngine.GUI.BlurPanel",
+ "Data": {
+ "BlurStrength": 10.0,
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Offsets": {
+ "Left": 0.0,
+ "Right": 0.0,
+ "Top": 0.0,
+ "Bottom": 0.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.25,
+ "G": 0.25,
+ "B": 0.25,
+ "A": 0.3
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "586f877b42650fa696b83d821a3cb177",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "acce27e9474b06c682aa3e9d8f5054bc",
+ "Name": "TitleText",
+ "Transform": {
+ "Translation": {
+ "X": 37.5,
+ "Y": 10.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Label",
+ "Data": {
+ "Text": "Main Menu Sample",
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "TextColorHighlighted": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "HorizontalAlignment": 1,
+ "VerticalAlignment": 1,
+ "Wrapping": 0,
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 17
+ },
+ "Margin": {
+ "Left": 0.0,
+ "Right": 0.0,
+ "Top": 0.0,
+ "Bottom": 0.0
+ },
+ "ClipText": false,
+ "AutoWidth": false,
+ "AutoHeight": false,
+ "AutoFitText": false,
+ "AutoFitTextRange": {
+ "X": 0.1,
+ "Y": 100.0
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.5,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.5,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": -100.0,
+ "Right": 200.0,
+ "Top": 10.0,
+ "Bottom": 40.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "55934f8e49299ca7bd5625b2dfcd1364",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "acce27e9474b06c682aa3e9d8f5054bc",
+ "Name": "Title Underline",
+ "Transform": {
+ "Translation": {
+ "X": 62.5,
+ "Y": 43.5,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Border",
+ "Data": {
+ "BorderColor": {
+ "R": 0.000913086231,
+ "G": 0.000913086231,
+ "B": 0.00100004673,
+ "A": 1.0
+ },
+ "BorderWidth": 2.0,
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.5,
+ "Y": 0.0
+ },
+ "AnchorMax": {
+ "X": 0.5,
+ "Y": 0.0
+ },
+ "Offsets": {
+ "Left": -75.0,
+ "Right": 145.0,
+ "Top": 43.5,
+ "Bottom": 1.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 1.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "50b98c7a4ec607c265bf20afc6525326",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "acce27e9474b06c682aa3e9d8f5054bc",
+ "Name": "MainTextBlock",
+ "Transform": {
+ "Translation": {
+ "X": 37.5,
+ "Y": 20.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Label",
+ "Data": {
+ "Text": "This project shows various\naspects on creating a\nMain Menu in Flax Engine.",
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "TextColorHighlighted": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "HorizontalAlignment": 1,
+ "VerticalAlignment": 1,
+ "Wrapping": 0,
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 14
+ },
+ "Margin": {
+ "Left": 0.0,
+ "Right": 0.0,
+ "Top": 0.0,
+ "Bottom": 0.0
+ },
+ "ClipText": false,
+ "AutoWidth": false,
+ "AutoHeight": false,
+ "AutoFitText": false,
+ "AutoFitTextRange": {
+ "X": 0.1,
+ "Y": 100.0
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "AnchorMax": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Offsets": {
+ "Left": -100.0,
+ "Right": 200.0,
+ "Top": -80.0,
+ "Bottom": 150.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "9ab5fe794cddfbf7b2d749bef21b4466",
+ "TypeName": "FlaxEngine.UIControl",
+ "ParentID": "acce27e9474b06c682aa3e9d8f5054bc",
+ "Name": "SecondaryTextBlock",
+ "Transform": {
+ "Translation": {
+ "X": 30.0,
+ "Y": 90.0,
+ "Z": 0.0
+ }
+ },
+ "Control": "FlaxEngine.GUI.Label",
+ "Data": {
+ "Text": "\n\n\n\n\nFeel free to deconstruct or use\nthis in your own Flax project.",
+ "TextColor": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "TextColorHighlighted": {
+ "R": 1.0,
+ "G": 1.0,
+ "B": 1.0,
+ "A": 1.0
+ },
+ "HorizontalAlignment": 1,
+ "VerticalAlignment": 1,
+ "Wrapping": 0,
+ "Font": {
+ "Font": "4508d98f4aa1f0bd59362b81d47e38f4",
+ "Size": 13
+ },
+ "Margin": {
+ "Left": 0.0,
+ "Right": 0.0,
+ "Top": 0.0,
+ "Bottom": 0.0
+ },
+ "ClipText": false,
+ "AutoWidth": false,
+ "AutoHeight": false,
+ "AutoFitText": false,
+ "AutoFitTextRange": {
+ "X": 0.1,
+ "Y": 100.0
+ },
+ "ClipChildren": true,
+ "CullChildren": true,
+ "AnchorMin": {
+ "X": 0.5,
+ "Y": 1.0
+ },
+ "AnchorMax": {
+ "X": 0.5,
+ "Y": 1.0
+ },
+ "Offsets": {
+ "Left": -107.5,
+ "Right": 215.0,
+ "Top": -110.0,
+ "Bottom": 40.0
+ },
+ "Scale": {
+ "X": 1.0,
+ "Y": 1.0
+ },
+ "Pivot": {
+ "X": 0.5,
+ "Y": 0.5
+ },
+ "Shear": {
+ "X": 0.0,
+ "Y": 0.0
+ },
+ "Rotation": 0.0,
+ "BackgroundColor": {
+ "R": 0.0,
+ "G": 0.0,
+ "B": 0.0,
+ "A": 0.0
+ },
+ "Enabled": true,
+ "Visible": true
+}
+ },
+ {
+ "ID": "60d603f0431ef53310cf5391f5e5b813",
+ "TypeName": "FlaxEngine.PostFxVolume",
+ "ParentID": "74a68a984824b4510d12589f199ad68f",
+ "Name": "PPFX_Disabler",
+ "Priority": 25,
+ "BlendWeight": 0.0,
+ "IsBounded": false,
+ "Settings": {
+ "AO": {
+ "OverrideFlags": 1,
+ "Enabled": false
+ },
+ "Bloom": {
+ "OverrideFlags": 7,
+ "Intensity": 0.15000000596046449,
+ "Threshold": 0.699999988079071
+ },
+ "ToneMapping": {
+ "OverrideFlags": 4,
+ "Mode": 1
+ },
+ "ColorGrading": {},
+ "EyeAdaptation": {},
+ "CameraArtifacts": {
+ "OverrideFlags": 1,
+ "VignetteIntensity": 1.0,
+ "VignetteShapeFactor": 0.00009999999747378752,
+ "GrainAmount": 0.0,
+ "GrainParticleSize": 1.0,
+ "GrainSpeed": 0.0,
+ "ScreenFadeColor": {
+ "R": 1.0010000467300416,
+ "G": 1.0010000467300416,
+ "B": 1.0010000467300416,
+ "A": 0.0
+ }
+ },
+ "LensFlares": {
+ "OverrideFlags": 1,
+ "Intensity": 0.25
+ },
+ "DepthOfField": {
+ "OverrideFlags": 1
+ },
+ "MotionBlur": {
+ "OverrideFlags": 5,
+ "Enabled": false,
+ "SampleCount": 4
+ },
+ "SSR": {
+ "OverrideFlags": 1,
+ "Intensity": 0.125
+ },
+ "AA": {
+ "OverrideFlags": 1
+ },
+ "PostFxMaterials": {}
+ }
+ },
+ {
+ "ID": "90863c8644405f6273f735a10fb21baf",
+ "TypeName": "MainMenuSample.PostProcessingDisabler",
+ "ParentID": "60d603f0431ef53310cf5391f5e5b813",
+ "V": {}
+ }
+ ]
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Android Settings.json b/MainMenuSample/Content/Settings/Android Settings.json
new file mode 100644
index 0000000..9c54b10
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Android Settings.json
@@ -0,0 +1,8 @@
+{
+ "ID": "9ac06a884463f4ae9435e2b03c866259",
+ "TypeName": "FlaxEditor.Content.Settings.AndroidPlatformSettings",
+ "EngineBuild": 6213,
+ "Data": {
+ "PackageName": "com.${COMPANY_NAME}.${PROJECT_NAME}"
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Audio Settings.json b/MainMenuSample/Content/Settings/Audio Settings.json
new file mode 100644
index 0000000..2f43e4e
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Audio Settings.json
@@ -0,0 +1,10 @@
+{
+ "ID": "fc8ef1bb474956920c5505b7ea7ea9ff",
+ "TypeName": "FlaxEditor.Content.Settings.AudioSettings",
+ "EngineBuild": 6213,
+ "Data": {
+ "DisableAudio": false,
+ "DopplerFactor": 1.0,
+ "MuteOnFocusLoss": true
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Build Settings.json b/MainMenuSample/Content/Settings/Build Settings.json
new file mode 100644
index 0000000..ec9eb1b
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Build Settings.json
@@ -0,0 +1,62 @@
+{
+ "ID": "2364031e4e327637c1ad88b415fa756e",
+ "TypeName": "FlaxEditor.Content.Settings.BuildSettings",
+ "EngineBuild": 6216,
+ "Data": {
+ "MaxAssetsPerPackage": 4096,
+ "MaxPackageSizeMB": 1024,
+ "ContentKey": 0,
+ "ForDistribution": false,
+ "SkipPackaging": false,
+ "ShadersNoOptimize": false,
+ "ShadersGenerateDebugData": false,
+ "Presets": [
+ {
+ "Name": "Development",
+ "Targets": [
+ {
+ "Name": "Windows 64bit",
+ "Output": "Output\\Win64",
+ "Platform": 2,
+ "Mode": 1
+ },
+ {
+ "Name": "Windows 32bit",
+ "Output": "Output\\Win32",
+ "Platform": 1,
+ "Mode": 1
+ }
+ ]
+ },
+ {
+ "Name": "Release",
+ "Targets": [
+ {
+ "Name": "Windows 64bit",
+ "Output": "Output\\Win64",
+ "Platform": 2,
+ "Mode": 2
+ },
+ {
+ "Name": "Windows 32bit",
+ "Output": "Output\\Win32",
+ "Platform": 1,
+ "Mode": 2
+ },
+ {
+ "Name": "Xbox One",
+ "Output": "Output\\XboxOne",
+ "Platform": 5,
+ "Mode": 2
+ },
+ {
+ "Name": "UWP 64bit",
+ "Output": "Output\\WinStore64",
+ "Platform": 4,
+ "Mode": 2
+ }
+ ]
+ }
+ ]
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Graphics Settings.json b/MainMenuSample/Content/Settings/Graphics Settings.json
new file mode 100644
index 0000000..ee75d4d
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Graphics Settings.json
@@ -0,0 +1,15 @@
+{
+ "ID": "4eaf325e4cd72aa4cdeb6393cad05466",
+ "TypeName": "FlaxEditor.Content.Settings.GraphicsSettings",
+ "EngineBuild": 6218,
+ "Data": {
+ "UseVSync": false,
+ "AAQuality": 3,
+ "SSRQuality": 3,
+ "SSAOQuality": 3,
+ "VolumetricFogQuality": 3,
+ "ShadowsQuality": 3,
+ "ShadowMapsQuality": 3,
+ "AllowCSMBlending": true
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Input Settings.json b/MainMenuSample/Content/Settings/Input Settings.json
new file mode 100644
index 0000000..82bc2f6
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Input Settings.json
@@ -0,0 +1,139 @@
+{
+ "ID": "f4c1c67842f6b745a6976aa8e7eff360",
+ "TypeName": "FlaxEditor.Content.Settings.InputSettings",
+ "EngineBuild": 6213,
+ "Data": {
+ "ActionMappings": [
+ {
+ "Name": "Fire",
+ "Mode": 1,
+ "Key": 0,
+ "MouseButton": 1,
+ "GamepadButton": 14,
+ "Gamepad": 0
+ }
+ ],
+ "AxisMappings": [
+ {
+ "Name": "Mouse X",
+ "Axis": 0,
+ "Gamepad": 0,
+ "PositiveButton": 0,
+ "NegativeButton": 0,
+ "DeadZone": 1.0,
+ "Sensitivity": 0.4,
+ "Gravity": 1.0,
+ "Scale": 1.0,
+ "Snap": false
+ },
+ {
+ "Name": "Mouse Y",
+ "Axis": 1,
+ "Gamepad": 0,
+ "PositiveButton": 0,
+ "NegativeButton": 0,
+ "DeadZone": 1.0,
+ "Sensitivity": 0.4,
+ "Gravity": 1.0,
+ "Scale": 1.0,
+ "Snap": false
+ },
+ {
+ "Name": "Horizontal",
+ "Axis": 9,
+ "Gamepad": 0,
+ "PositiveButton": 68,
+ "NegativeButton": 65,
+ "DeadZone": 0.01,
+ "Sensitivity": 5.0,
+ "Gravity": 5.0,
+ "Scale": 1.0,
+ "Snap": true
+ },
+ {
+ "Name": "Vertical",
+ "Axis": 9,
+ "Gamepad": 0,
+ "PositiveButton": 87,
+ "NegativeButton": 83,
+ "DeadZone": 0.01,
+ "Sensitivity": 5.0,
+ "Gravity": 5.0,
+ "Scale": 1.0,
+ "Snap": true
+ },
+ {
+ "Name": "Horizontal",
+ "Axis": 9,
+ "Gamepad": 0,
+ "PositiveButton": 39,
+ "NegativeButton": 37,
+ "DeadZone": 0.01,
+ "Sensitivity": 5.0,
+ "Gravity": 5.0,
+ "Scale": 1.0,
+ "Snap": true
+ },
+ {
+ "Name": "Vertical",
+ "Axis": 9,
+ "Gamepad": 0,
+ "PositiveButton": 38,
+ "NegativeButton": 40,
+ "DeadZone": 0.001,
+ "Sensitivity": 5.0,
+ "Gravity": 5.0,
+ "Scale": 1.0,
+ "Snap": true
+ },
+ {
+ "Name": "Horizontal",
+ "Axis": 3,
+ "Gamepad": 0,
+ "PositiveButton": 0,
+ "NegativeButton": 0,
+ "DeadZone": 0.19,
+ "Sensitivity": 1.0,
+ "Gravity": 1.0,
+ "Scale": 1.0,
+ "Snap": false
+ },
+ {
+ "Name": "Vertical",
+ "Axis": 4,
+ "Gamepad": 0,
+ "PositiveButton": 0,
+ "NegativeButton": 0,
+ "DeadZone": 0.19,
+ "Sensitivity": 1.0,
+ "Gravity": 1.0,
+ "Scale": 1.0,
+ "Snap": false
+ },
+ {
+ "Name": "Mouse X",
+ "Axis": 5,
+ "Gamepad": 0,
+ "PositiveButton": 0,
+ "NegativeButton": 0,
+ "DeadZone": 0.19,
+ "Sensitivity": 1.0,
+ "Gravity": 1.0,
+ "Scale": 4.0,
+ "Snap": false
+ },
+ {
+ "Name": "Mouse Y",
+ "Axis": 6,
+ "Gamepad": 0,
+ "PositiveButton": 0,
+ "NegativeButton": 0,
+ "DeadZone": 0.19,
+ "Sensitivity": 1.0,
+ "Gravity": 1.0,
+ "Scale": -4.0,
+ "Snap": false
+ }
+ ]
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Layers And Tags Settings.json b/MainMenuSample/Content/Settings/Layers And Tags Settings.json
new file mode 100644
index 0000000..2edf047
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Layers And Tags Settings.json
@@ -0,0 +1,45 @@
+{
+ "ID": "bb6fbecf458db0ecffa5e2a5155b2b4f",
+ "TypeName": "FlaxEditor.Content.Settings.LayersAndTagsSettings",
+ "EngineBuild": 6213,
+ "Data": {
+ "Tags": [
+ "Player",
+ "Bullet"
+ ],
+ "Layers": [
+ "Default",
+ "Player",
+ "Bullets",
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null
+ ]
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Linux Settings.json b/MainMenuSample/Content/Settings/Linux Settings.json
new file mode 100644
index 0000000..d8baa13
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Linux Settings.json
@@ -0,0 +1,14 @@
+{
+ "ID": "1bf4eedd41508974d6646e8faa55420a",
+ "TypeName": "FlaxEditor.Content.Settings.LinuxPlatformSettings",
+ "EngineBuild": 6216,
+ "Data": {
+ "WindowMode": 0,
+ "ScreenWidth": 1280,
+ "ScreenHeight": 720,
+ "ResizableWindow": true,
+ "RunInBackground": false,
+ "ForceSingleInstance": true,
+ "SupportVulkan": true
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Navigation Settings.json b/MainMenuSample/Content/Settings/Navigation Settings.json
new file mode 100644
index 0000000..5b8a415
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Navigation Settings.json
@@ -0,0 +1,20 @@
+{
+ "ID": "9d5e29604efb16eff6b815aa4a110227",
+ "TypeName": "FlaxEditor.Content.Settings.NavigationSettings",
+ "EngineBuild": 6213,
+ "Data": {
+ "CellHeight": 10.0,
+ "CellSize": 30.0,
+ "TileSize": 64,
+ "MinRegionArea": 0,
+ "MergeRegionArea": 20,
+ "MaxEdgeLen": 1200.0,
+ "MaxEdgeError": 1.3,
+ "DetailSamplingDist": 600.0,
+ "MaxDetailSamplingError": 1.0,
+ "WalkableRadius": 34.0,
+ "WalkableHeight": 144.0,
+ "WalkableMaxClimb": 35.0,
+ "WalkableMaxSlopeAngle": 60.0
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Physics Settings.json b/MainMenuSample/Content/Settings/Physics Settings.json
new file mode 100644
index 0000000..0ba757e
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Physics Settings.json
@@ -0,0 +1,58 @@
+{
+ "ID": "7871f0364d398555ccd9e297acdc8983",
+ "TypeName": "FlaxEditor.Content.Settings.PhysicsSettings",
+ "EngineBuild": 6213,
+ "Data": {
+ "DefaultGravity": {
+ "X": 0.0,
+ "Y": -981.0,
+ "Z": 0.0
+ },
+ "QueriesHitTriggers": true,
+ "TriangleMeshTriangleMinAreaThreshold": 5.0,
+ "BounceThresholdVelocity": 200.0,
+ "FrictionCombineMode": 0,
+ "RestitutionCombineMode": 0,
+ "DisableCCD": false,
+ "EnableAdaptiveForce": false,
+ "MaxDeltaTime": 0.1,
+ "EnableSubstepping": false,
+ "SubstepDeltaTime": 0.008333334,
+ "MaxSubsteps": 5,
+ "LayerMasks": [
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295,
+ 4294967295
+ ],
+ "SupportCookingAtRuntime": false
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Time Settings.json b/MainMenuSample/Content/Settings/Time Settings.json
new file mode 100644
index 0000000..b3aae45
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Time Settings.json
@@ -0,0 +1,12 @@
+{
+ "ID": "9acd18b0496064d35799f390d3a2b374",
+ "TypeName": "FlaxEditor.Content.Settings.TimeSettings",
+ "EngineBuild": 6213,
+ "Data": {
+ "UpdateFPS": 30.0,
+ "PhysicsFPS": 60.0,
+ "DrawFPS": 60.0,
+ "TimeScale": 1.0,
+ "MaxUpdateDeltaTime": 0.1
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/UWP Settings.json b/MainMenuSample/Content/Settings/UWP Settings.json
new file mode 100644
index 0000000..26b9f58
--- /dev/null
+++ b/MainMenuSample/Content/Settings/UWP Settings.json
@@ -0,0 +1,12 @@
+{
+ "ID": "8660bbf44f1ea61cb9bc4580b3631973",
+ "TypeName": "FlaxEditor.Content.Settings.UWPPlatformSettings",
+ "EngineBuild": 6213,
+ "Data": {
+ "PreferredLaunchWindowingMode": 0,
+ "AutoRotationPreferences": 15,
+ "CertificateLocation": "",
+ "SupportDX11": true,
+ "SupportDX10": false
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/Content/Settings/Windows Settings.json b/MainMenuSample/Content/Settings/Windows Settings.json
new file mode 100644
index 0000000..57e9de8
--- /dev/null
+++ b/MainMenuSample/Content/Settings/Windows Settings.json
@@ -0,0 +1,18 @@
+{
+ "ID": "79ac390447f4263e30f56e9190a70dbc",
+ "TypeName": "FlaxEditor.Content.Settings.WindowsPlatformSettings",
+ "EngineBuild": 6218,
+ "Data": {
+ "WindowMode": 0,
+ "ScreenWidth": 1280,
+ "ScreenHeight": 720,
+ "ResizableWindow": true,
+ "RunInBackground": false,
+ "ForceSingleInstance": true,
+ "OverrideIcon": "00000000-0000-0000-0000-000000000000",
+ "SupportDX12": true,
+ "SupportDX11": true,
+ "SupportDX10": true,
+ "SupportVulkan": true
+}
+}
\ No newline at end of file
diff --git a/MainMenuSample/MainMenuSample.flaxproj b/MainMenuSample/MainMenuSample.flaxproj
new file mode 100644
index 0000000..e3e92f5
--- /dev/null
+++ b/MainMenuSample/MainMenuSample.flaxproj
@@ -0,0 +1,27 @@
+{
+ "Name": "MainMenuSample",
+ "Version": "1.0",
+ "Company": "My Company",
+ "Copyright": "",
+ "GameTarget": "GameTarget",
+ "EditorTarget": "GameEditorTarget",
+ "References": [
+ {
+ "Name": "$(EnginePath)/Flax.flaxproj"
+ }
+ ],
+ "DefaultScene": "74a68a984824b4510d12589f199ad68f",
+ "DefaultSceneSpawn": {
+ "Position": {
+ "X": 189.3866,
+ "Y": 109.910706,
+ "Z": 132.960159
+ },
+ "Direction": {
+ "X": -0.7114976,
+ "Y": -0.299497128,
+ "Z": -0.635666847
+ }
+ },
+ "MinEngineVersion": "0.0.6194"
+}
\ No newline at end of file
diff --git a/MainMenuSample/Preview.png b/MainMenuSample/Preview.png
new file mode 100644
index 0000000..bb36514
Binary files /dev/null and b/MainMenuSample/Preview.png differ
diff --git a/MainMenuSample/README.md b/MainMenuSample/README.md
new file mode 100644
index 0000000..88b61ad
--- /dev/null
+++ b/MainMenuSample/README.md
@@ -0,0 +1,3 @@
+# Main Menu Sample
+
+
diff --git a/MainMenuSample/Source/Game.Gen.cs b/MainMenuSample/Source/Game.Gen.cs
new file mode 100644
index 0000000..240d47f
--- /dev/null
+++ b/MainMenuSample/Source/Game.Gen.cs
@@ -0,0 +1,17 @@
+// This code was auto-generated. Do not modify it.
+
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Game")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("My Company")]
+[assembly: AssemblyProduct("FlaxEngine")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: ComVisible(false)]
+[assembly: Guid("7c85a97f-b621-fb03-c294-453405150000")]
+[assembly: AssemblyVersion("1.0")]
+[assembly: AssemblyFileVersion("1.0")]
diff --git a/MainMenuSample/Source/Game/Demo Game Scene/ExitOnEsc.cs b/MainMenuSample/Source/Game/Demo Game Scene/ExitOnEsc.cs
new file mode 100644
index 0000000..cd6072b
--- /dev/null
+++ b/MainMenuSample/Source/Game/Demo Game Scene/ExitOnEsc.cs
@@ -0,0 +1,15 @@
+using FlaxEngine;
+
+namespace MainMenuSample
+{
+ public class ExitOnEsc : Script
+ {
+ public override void OnUpdate()
+ {
+ if (Input.GetKeyUp(KeyboardKeys.Escape))
+ Engine.RequestExit();
+ }
+ }
+}
+
+
diff --git a/MainMenuSample/Source/Game/Game.Build.cs b/MainMenuSample/Source/Game/Game.Build.cs
new file mode 100644
index 0000000..e40bff3
--- /dev/null
+++ b/MainMenuSample/Source/Game/Game.Build.cs
@@ -0,0 +1,27 @@
+using Flax.Build;
+using Flax.Build.NativeCpp;
+
+public class Game : GameModule
+{
+ ///
+ public override void Init()
+ {
+ base.Init();
+
+ // C#-only scripting
+ BuildNativeCode = false;
+ }
+
+ ///
+ public override void Setup(BuildOptions options)
+ {
+ base.Setup(options);
+
+ options.ScriptingAPI.IgnoreMissingDocumentationWarnings = true;
+
+ // Here you can modify the build options for your game module
+ // To reference another module use: options.PublicDependencies.Add("Audio");
+ // To add C++ define use: options.PublicDefinitions.Add("COMPILE_WITH_FLAX");
+ // To learn more see scripting documentation.
+ }
+}
diff --git a/MainMenuSample/Source/Game/Menu/Core/Files/SettingsManager.cs b/MainMenuSample/Source/Game/Menu/Core/Files/SettingsManager.cs
new file mode 100644
index 0000000..2e89124
--- /dev/null
+++ b/MainMenuSample/Source/Game/Menu/Core/Files/SettingsManager.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using FlaxEngine.Json;
+using FlaxEngine;
+
+namespace MainMenuSample
+{
+ public class SettingsManager
+ {
+ private static SettingsManager _instance;
+
+ [NoSerialize]
+ [HideInEditor]
+ public static SettingsManager Instance
+ {
+ get
+ {
+ if (_instance == null)
+ {
+ // Create a settings file if there is none.
+ if (!Directory.Exists(Globals.ProductLocalFolder)) Directory.CreateDirectory(Globals.ProductLocalFolder);
+ if (!File.Exists(StringUtils.CombinePaths(Globals.ProductLocalFolder, "GameSettings.JSON")))
+ {
+ _instance = new SettingsManager();
+ using (var stream = File.CreateText(StringUtils.CombinePaths(Globals.ProductLocalFolder, "GameSettings.JSON")))
+ {
+ stream.WriteAsync(JsonSerializer.Serialize(_instance));
+ }
+ }
+ else
+ {
+ _instance = JsonSerializer.Deserialize(File.ReadAllText(StringUtils.CombinePaths(Globals.ProductLocalFolder, "GameSettings.JSON")));
+ }
+ }
+
+ return _instance;
+ }
+ }
+
+ public static void SaveAsync()
+ {
+ using (var stream = File.CreateText(StringUtils.CombinePaths(Globals.ProductLocalFolder, "GameSettings.JSON")))
+ {
+ stream.WriteAsync(JsonSerializer.Serialize(_instance));
+ }
+ }
+
+ // Here you assign the defaults...
+ public bool GFX = true;
+ public bool FULLSCREEN = false;
+ public bool SFX = true;
+ }
+}
diff --git a/MainMenuSample/Source/Game/Menu/Core/UI/ButtonFuctions.cs b/MainMenuSample/Source/Game/Menu/Core/UI/ButtonFuctions.cs
new file mode 100644
index 0000000..b806a0e
--- /dev/null
+++ b/MainMenuSample/Source/Game/Menu/Core/UI/ButtonFuctions.cs
@@ -0,0 +1,139 @@
+using System;
+using System.Collections.Generic;
+using FlaxEngine;
+using FlaxEngine.GUI;
+using System.IO;
+
+namespace MainMenuSample
+{
+ public class ButtonFuctions : Script
+ {
+ public UIControl PlayButton;
+ public UIControl OptionsButton;
+ public UIControl QuitButton;
+
+ public UIControl BlurPanel;
+ public UIControl FullscreenButton;
+ public UIControl GFXSettingsButton;
+ public UIControl AudioButton;
+ public UIControl OptionsBackButton;
+ public Actor OptionsMenuActor;
+
+ public SceneReference GameScene;
+
+ public Actor MainMenuActor;
+
+
+ public override void OnEnable()
+ {
+ PlayButton.Get