diff --git a/BasicUI_SunBurn/BasicUI_Pro/BasicUI_Pro-Linux-NoContent.sln b/BasicUI_SunBurn/BasicUI_Pro/BasicUI_Pro-Linux-NoContent.sln deleted file mode 100644 index 29babbf..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/BasicUI_Pro-Linux-NoContent.sln +++ /dev/null @@ -1,39 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GameLibrary", "GameLibrary\GameLibrary.csproj", "{19341067-09AA-4F08-B237-C1EBB6D96C94}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicUI_Pro_Linux", "Linux\BasicUI_Pro_Linux.csproj", "{E4B79D13-A400-4C26-8537-7125782CDB2E}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Release|Mixed Platforms = Release|Mixed Platforms - Debug|Mixed Platforms = Debug|Mixed Platforms - Debug|x86 = Debug|x86 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|x86.ActiveCfg = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|x86.Build.0 = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|x86.ActiveCfg = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|x86.Build.0 = Release|Any CPU - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|x86.ActiveCfg = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|x86.Build.0 = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|Mixed Platforms.Build.0 = Release|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|x86.ActiveCfg = Release|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = Linux\BasicUI_Pro_Linux.csproj - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/BasicUI_SunBurn/BasicUI_Pro/BasicUI_Pro-MacOSX-NoContent.sln b/BasicUI_SunBurn/BasicUI_Pro/BasicUI_Pro-MacOSX-NoContent.sln deleted file mode 100644 index b4fd330..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/BasicUI_Pro-MacOSX-NoContent.sln +++ /dev/null @@ -1,39 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GameLibrary", "GameLibrary\GameLibrary.csproj", "{19341067-09AA-4F08-B237-C1EBB6D96C94}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicUI_Pro_Mac", "MacOSX\BasicUI_Pro_Mac.csproj", "{6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Release|Mixed Platforms = Release|Mixed Platforms - Debug|Mixed Platforms = Debug|Mixed Platforms - Debug|x86 = Debug|x86 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|x86.ActiveCfg = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|x86.Build.0 = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|x86.ActiveCfg = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|x86.Build.0 = Release|Any CPU - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|x86.ActiveCfg = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|x86.Build.0 = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|Mixed Platforms.Build.0 = Release|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|x86.ActiveCfg = Release|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = MacOSX\BasicUI_Pro_Mac.csproj - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/BasicUI_SunBurn/BasicUI_Pro/BasicUI_Pro.sln b/BasicUI_SunBurn/BasicUI_Pro/BasicUI_Pro.sln deleted file mode 100644 index 78fdb1b..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/BasicUI_Pro.sln +++ /dev/null @@ -1,113 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.30501.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicUI_Pro_WinDesktop", "WindowsDesktopAndDevelopmentMode\BasicUI_Pro_WinDesktop.csproj", "{FA225BAF-54C5-43B9-BB63-59E3653157C8}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GameLibrary", "GameLibrary\GameLibrary.csproj", "{19341067-09AA-4F08-B237-C1EBB6D96C94}" - ProjectSection(ProjectDependencies) = postProject - {7B998320-FA99-4F92-8A6F-7BA0538C353C} = {7B998320-FA99-4F92-8A6F-7BA0538C353C} - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GameContent", "GameContent\GameContent.contentproj", "{347259F2-3E93-4837-A9BD-BDFD87A2F56F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UserInterface", "UserInterface\UserInterface.csproj", "{7B998320-FA99-4F92-8A6F-7BA0538C353C}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicUI_Pro_W8", "Windows8StoreApp\BasicUI_Pro_W8.csproj", "{BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicUI_Pro_Linux", "Linux\BasicUI_Pro_Linux.csproj", "{E4B79D13-A400-4C26-8537-7125782CDB2E}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicUI_Pro_Mac", "MacOSX\BasicUI_Pro_Mac.csproj", "{6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|Mixed Platforms = Debug|Mixed Platforms - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|Mixed Platforms = Release|Mixed Platforms - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Debug|x86.ActiveCfg = Debug|x86 - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Debug|x86.Build.0 = Debug|x86 - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Release|Any CPU.Build.0 = Release|Any CPU - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Release|Mixed Platforms.Build.0 = Release|x86 - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Release|x86.ActiveCfg = Release|x86 - {FA225BAF-54C5-43B9-BB63-59E3653157C8}.Release|x86.Build.0 = Release|x86 - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|Any CPU.Build.0 = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Debug|x86.ActiveCfg = Debug|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|Any CPU.ActiveCfg = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|Any CPU.Build.0 = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {19341067-09AA-4F08-B237-C1EBB6D96C94}.Release|x86.ActiveCfg = Release|Any CPU - {347259F2-3E93-4837-A9BD-BDFD87A2F56F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {347259F2-3E93-4837-A9BD-BDFD87A2F56F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {347259F2-3E93-4837-A9BD-BDFD87A2F56F}.Debug|x86.ActiveCfg = Debug|Any CPU - {347259F2-3E93-4837-A9BD-BDFD87A2F56F}.Release|Any CPU.ActiveCfg = Debug|Any CPU - {347259F2-3E93-4837-A9BD-BDFD87A2F56F}.Release|Mixed Platforms.ActiveCfg = Debug|Any CPU - {347259F2-3E93-4837-A9BD-BDFD87A2F56F}.Release|x86.ActiveCfg = Debug|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Debug|x86.ActiveCfg = Debug|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Release|Any CPU.Build.0 = Release|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {7B998320-FA99-4F92-8A6F-7BA0538C353C}.Release|x86.ActiveCfg = Release|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Debug|x86.ActiveCfg = Debug|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Release|Any CPU.Build.0 = Release|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Release|Any CPU.Deploy.0 = Release|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU - {BC2BF2DB-7E42-4BEC-9E0C-4F45D2C86BE7}.Release|x86.ActiveCfg = Release|Any CPU - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|Any CPU.ActiveCfg = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|Any CPU.Build.0 = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|x86.ActiveCfg = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Debug|x86.Build.0 = Debug|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|Any CPU.ActiveCfg = Release|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|Any CPU.Build.0 = Release|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|Mixed Platforms.Build.0 = Release|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|x86.ActiveCfg = Release|x86 - {E4B79D13-A400-4C26-8537-7125782CDB2E}.Release|x86.Build.0 = Release|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|Any CPU.ActiveCfg = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|Any CPU.Build.0 = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|x86.ActiveCfg = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Debug|x86.Build.0 = Debug|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|Any CPU.ActiveCfg = Release|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|Any CPU.Build.0 = Release|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|Mixed Platforms.Build.0 = Release|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|x86.ActiveCfg = Release|x86 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Click.wav b/BasicUI_SunBurn/BasicUI_Pro/GameContent/Click.wav deleted file mode 100644 index 2f82fc3..0000000 Binary files a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Click.wav and /dev/null differ diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/ContentRepository.repo b/BasicUI_SunBurn/BasicUI_Pro/GameContent/ContentRepository.repo deleted file mode 100644 index e8b7eaf..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameContent/ContentRepository.repo +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/GameContent.contentproj b/BasicUI_SunBurn/BasicUI_Pro/GameContent/GameContent.contentproj deleted file mode 100644 index 182c67b..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameContent/GameContent.contentproj +++ /dev/null @@ -1,120 +0,0 @@ - - - - 2.1.11 - Pro - {347259F2-3E93-4837-A9BD-BDFD87A2F56F} - {96E2B04D-8817-42c6-938A-82C39BA4D311};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Debug - x86 - Library - Properties - v4.0 - v4.0 - bin\$(Platform)\$(Configuration) - true - - - GameContent - - - - - - - - - - ..\..\..\ThirdParty\Nuclex.Fonts.Content.TrueTypeImporter.dll - - - - - SunBurn-Deploy - DeployFileProcessor - - - - - ContentRepository - ContentRepositoryImporter - ContentRepositoryProcessor - - - - - SceneEnvironment - SceneEnvironmentImporter - SceneEnvironmentProcessor - - - - - Scene - SceneImporter - SceneProcessor - - - - - Segoe_UI_15_Bold - FontDescriptionImporter - NuclexSpriteFontDescriptionProcessor - - - Segoe_UI_9_Regular - FontDescriptionImporter - NuclexSpriteFontDescriptionProcessor - - - - - EmptyKeysLogoTextSmall - TextureImporter - TextureProcessor - - - SunBurn - TextureImporter - TextureProcessor - - - - - Segoe_UI_10_Regular - FontDescriptionImporter - NuclexSpriteFontDescriptionProcessor - - - - - Click - WavImporter - SoundEffectProcessor - - - KeyPress - WavImporter - SoundEffectProcessor - - - Move - WavImporter - SoundEffectProcessor - - - Select - WavImporter - SoundEffectProcessor - - - - - - \ No newline at end of file diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Images/EmptyKeysLogoTextSmall.png b/BasicUI_SunBurn/BasicUI_Pro/GameContent/Images/EmptyKeysLogoTextSmall.png deleted file mode 100644 index 25e3ada..0000000 Binary files a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Images/EmptyKeysLogoTextSmall.png and /dev/null differ diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Images/SunBurn.png b/BasicUI_SunBurn/BasicUI_Pro/GameContent/Images/SunBurn.png deleted file mode 100644 index dcd8ac3..0000000 Binary files a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Images/SunBurn.png and /dev/null differ diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/KeyPress.wav b/BasicUI_SunBurn/BasicUI_Pro/GameContent/KeyPress.wav deleted file mode 100644 index fc94cfd..0000000 Binary files a/BasicUI_SunBurn/BasicUI_Pro/GameContent/KeyPress.wav and /dev/null differ diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Move.wav b/BasicUI_SunBurn/BasicUI_Pro/GameContent/Move.wav deleted file mode 100644 index a9039ea..0000000 Binary files a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Move.wav and /dev/null differ diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Scene.scene b/BasicUI_SunBurn/BasicUI_Pro/GameContent/Scene.scene deleted file mode 100644 index 1e199a5..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Scene.scene +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/SceneEnvironment.env b/BasicUI_SunBurn/BasicUI_Pro/GameContent/SceneEnvironment.env deleted file mode 100644 index 25f27f6..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameContent/SceneEnvironment.env +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Segoe_UI_10_Regular.spritefont b/BasicUI_SunBurn/BasicUI_Pro/GameContent/Segoe_UI_10_Regular.spritefont deleted file mode 100644 index d98f292..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Segoe_UI_10_Regular.spritefont +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Segoe UI - - 10 - 0 - true - - - * - - - - ſ - - - - diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Segoe_UI_15_Bold.spritefont b/BasicUI_SunBurn/BasicUI_Pro/GameContent/Segoe_UI_15_Bold.spritefont deleted file mode 100644 index 3f40b3c..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Segoe_UI_15_Bold.spritefont +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Segoe UI - - 15 - 0 - true - - - * - - - - ſ - - - - diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Segoe_UI_9_Regular.spritefont b/BasicUI_SunBurn/BasicUI_Pro/GameContent/Segoe_UI_9_Regular.spritefont deleted file mode 100644 index 6e15768..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Segoe_UI_9_Regular.spritefont +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Segoe UI - - 9 - 0 - true - - - * - - - - ſ - - - - diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Select.wav b/BasicUI_SunBurn/BasicUI_Pro/GameContent/Select.wav deleted file mode 100644 index d4ed87f..0000000 Binary files a/BasicUI_SunBurn/BasicUI_Pro/GameContent/Select.wav and /dev/null differ diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameContent/SunBurn-Deploy.auth b/BasicUI_SunBurn/BasicUI_Pro/GameContent/SunBurn-Deploy.auth deleted file mode 100644 index e69de29..0000000 diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/BaseGameProgram.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/BaseGameProgram.cs deleted file mode 100644 index 2c3a44e..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/BaseGameProgram.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using SynapseGaming.SunBurn.Framework.Content; -using SynapseGaming.SunBurn.Framework.Core; -using SynapseGaming.SunBurn.Framework.Graphics; -using SynapseGaming.SunBurn.Framework.Models; -using SynapseGaming.SunBurn.Engine.Core; -using SynapseGaming.SunBurn.Engine.Rendering; -using EmptyKeys.UserInterface; - - -namespace GameLibrary -{ - /// - /// Base class for all platform specific program implementations. - /// - public abstract class BaseGameProgram : Program - { - // SunBurn Engine core system. - private SunBurnCoreSystem sunBurnCoreSystem; - private SplashScreenGameScreen splashScreenGameScreen; - - // Database of game assets. - public ContentDatabase ContentDatabase { get; private set; } - - // Static access to the program instance. - public static BaseGameProgram Instance { get; private set; } - - public BaseGameProgram() - { - Instance = this; - - Engine uiEngine = new SunBurnEngine(); - - splashScreenGameScreen = new SplashScreenGameScreen(); - splashScreenGameScreen.DisplayCompleteEvent += new DisplayCompleteDelegate(OnSplashScreenDisplayCompleteEvent); - } - - public abstract SystemPreferences GetSystemPreferences(); - public abstract void OnInitializeSceneInterface(SceneInterface sceneInterface); - - /// - /// Initialize resources which should be available at any - /// point during the game (eg: resources that are not screen specific). - /// - public override void OnPlatformInitializationComplete() - { - // Load the database of game assets. - ContentDatabase = new ContentDatabase("GameContent"); - - // Create the core system. - sunBurnCoreSystem = new SunBurnCoreSystem(ContentDatabase); - - // Set the initial game screen. - Platform.Instance.SetGameScreen(splashScreenGameScreen); - } - - protected virtual void OnSplashScreenDisplayCompleteEvent(GameScreen sender) - { - Platform.Instance.SetGameScreen(new BasicUIScreen()); - } - - /// - /// Cleanup any resources. - /// - public override void Dispose() - { - sunBurnCoreSystem.Unload(); - ContentDatabase.Unload(); - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/BasicUIScreen.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/BasicUIScreen.cs deleted file mode 100644 index a1f2915..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/BasicUIScreen.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using EmptyKeys.UserInterface; -using EmptyKeys.UserInterface.Debug; -using EmptyKeys.UserInterface.Generated; -using EmptyKeys.UserInterface.Input; -using EmptyKeys.UserInterface.Media; -using GameLibrary.ViewModels; -using SynapseGaming.SunBurn.Framework.Core; -using SynapseGaming.SunBurn.Framework.Graphics; -using SynapseGaming.SunBurn.Framework.Graphics.Sprites; -using SynapseGaming.SunBurn.Framework.Input; -using SynapseGaming.SunBurn.Framework.Primitives; - -namespace GameLibrary -{ - public class BasicUIScreen : GameScreen - { - private Color backgroundColor = new Color(64, 64, 64); - - private BasicUI basicUI; - private DebugViewModel debug; - - /// - /// Called when the program switches to the screen. This is - /// where screen assets are loaded and resources are created. - /// - public override void LoadContent() - { - InputDevice input = Platform.Instance.InputDevice; - input.MouseState.Visible = true; - - Font font = BaseGameProgram.Instance.ContentDatabase.Load("Segoe_UI_10_Regular"); - FontManager.DefaultFont = Engine.Instance.Renderer.CreateFont(font); - Viewport viewport = Platform.Instance.GraphicsDevice.Viewport; - - basicUI = new BasicUI(viewport.Width, viewport.Height); - debug = new DebugViewModel(basicUI); - basicUI.DataContext = new BasicUIViewModel(); - - FontManager.Instance.LoadFonts(BaseGameProgram.Instance.ContentDatabase); - ImageManager.Instance.LoadImages(BaseGameProgram.Instance.ContentDatabase); - SoundManager.Instance.LoadSounds(BaseGameProgram.Instance.ContentDatabase); - - RelayCommand command = new RelayCommand(new Action(ExitEvent)); - - KeyBinding keyBinding = new KeyBinding(command, KeyCode.Escape, ModifierKeys.None); - basicUI.InputBindings.Add(keyBinding); - } - - /// - /// Called when the program switches away from this screen - /// and is where screen resources are disposed. - /// - public override void UnloadContent() - { - } - - /// - /// Allows the screen to run logic such as updating the world, - /// checking for collisions, gathering input, and playing audio. - /// - /// Provides the time elapsed since the last screen draw / update. - public override void Update(GameTime gameTime) - { - debug.Update(); - basicUI.UpdateInput(gameTime.ElapsedGameTime.TotalMilliseconds); - basicUI.UpdateLayout(gameTime.ElapsedGameTime.TotalMilliseconds); - } - - /// - /// Allows the screen to render. - /// - /// Provides the time elapsed since the last screen draw / update. - public override void Draw(GameTime gameTime) - { - GraphicsDevice device = Platform.Instance.GraphicsDevice; - device.Clear(backgroundColor); - - basicUI.Draw(gameTime.ElapsedGameTime.TotalMilliseconds); - debug.Draw(); - } - - private void StartGameEvent(object sender, RoutedEventArgs e) - { - Platform.Instance.SetGameScreen(new SimpleGameScreen()); - } - - private void ExitEvent(object parameter) - { - Platform.Instance.RunAsGameLoop.Exit(); - } - - public void InvalidateUserInterface() - { - Viewport viewport = Platform.Instance.GraphicsDevice.Viewport; - basicUI.Width = viewport.Width; - basicUI.Height = viewport.Height; - basicUI.InvalidateMeasure(); - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/GameLibrary.csproj b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/GameLibrary.csproj deleted file mode 100644 index 52297b5..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/GameLibrary.csproj +++ /dev/null @@ -1,85 +0,0 @@ - - - - - 2.1.11 - Pro - 10.0 - Debug - AnyCPU - {19341067-09AA-4F08-B237-C1EBB6D96C94} - Library - Properties - GameLibrary - BasicUI_Pro-GameLibrary - v4.5 - Profile259 - 512 - true - 10.0.0 - 2.0 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - ..\packages\EmptyKeysUI.1.11.0.0\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\Common\AnyCPU\EmptyKeys.UserInterface.dll - True - - - ..\packages\EmptyKeysUI.1.11.0.0\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\Common\AnyCPU\EmptyKeys.UserInterface.Core.dll - True - - - ..\packages\EmptyKeysUI.1.11.0.0\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\Common\AnyCPU\EmptyKeys.UserInterface.Debug.dll - True - - - ..\packages\EmptyKeysUI.1.11.0.0\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\Sunburn\AnyCPU\EmptyKeys.UserInterface.SunBurn.dll - True - - - - - - - - - - \ No newline at end of file diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/GeneratedUI/BasicUI.xaml.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/GeneratedUI/BasicUI.xaml.cs deleted file mode 100644 index 2eb8f57..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/GeneratedUI/BasicUI.xaml.cs +++ /dev/null @@ -1,458 +0,0 @@ -// ----------------------------------------------------------- -// -// This file was generated, please do not modify. -// -// ----------------------------------------------------------- -namespace EmptyKeys.UserInterface.Generated { - using System; - using System.CodeDom.Compiler; - using System.Collections.ObjectModel; - using EmptyKeys.UserInterface; - using EmptyKeys.UserInterface.Charts; - using EmptyKeys.UserInterface.Data; - using EmptyKeys.UserInterface.Controls; - using EmptyKeys.UserInterface.Controls.Primitives; - using EmptyKeys.UserInterface.Input; - using EmptyKeys.UserInterface.Media; - using EmptyKeys.UserInterface.Media.Animation; - using EmptyKeys.UserInterface.Media.Imaging; - using EmptyKeys.UserInterface.Shapes; - using EmptyKeys.UserInterface.Renderers; - using EmptyKeys.UserInterface.Themes; - - - [GeneratedCodeAttribute("Empty Keys UI Generator", "1.11.0.0")] - public partial class BasicUI : UIRoot { - - private Grid e_0; - - private StackPanel e_1; - - private Image logo; - - private TextBlock e_2; - - private StackPanel e_3; - - private ComboBox combo; - - private Button button1; - - private Button button2; - - private Button button3; - - private TextBlock buttonResult; - - private Slider slider; - - private TextBox textBox; - - private CheckBox checkBox; - - private TabControl e_5; - - private ProgressBar e_18; - - private Button imageButton; - - private StackPanel e_19; - - private Button animButton1; - - private Button animButton2; - - private Button animButton3; - - private Button animButton4; - - private Grid e_20; - - private Border animBorder1; - - private Border animBorder2; - - public BasicUI() : - base() { - this.Initialize(); - } - - public BasicUI(int width, int height) : - base(width, height) { - this.Initialize(); - } - - private void Initialize() { - Style style = RootStyle.CreateRootStyle(); - style.TargetType = this.GetType(); - this.Style = style; - this.InitializeComponent(); - } - - private void InitializeComponent() { - this.FontSize = 13.33333F; - this.SetResourceReference(SoundManager.SoundsProperty, "Sounds"); - InitializeElementResources(this); - // e_0 element - this.e_0 = new Grid(); - this.Content = this.e_0; - this.e_0.Name = "e_0"; - RowDefinition row_e_0_0 = new RowDefinition(); - row_e_0_0.Height = new GridLength(110F, GridUnitType.Pixel); - this.e_0.RowDefinitions.Add(row_e_0_0); - RowDefinition row_e_0_1 = new RowDefinition(); - this.e_0.RowDefinitions.Add(row_e_0_1); - ColumnDefinition col_e_0_0 = new ColumnDefinition(); - this.e_0.ColumnDefinitions.Add(col_e_0_0); - ColumnDefinition col_e_0_1 = new ColumnDefinition(); - this.e_0.ColumnDefinitions.Add(col_e_0_1); - // e_1 element - this.e_1 = new StackPanel(); - this.e_0.Children.Add(this.e_1); - this.e_1.Name = "e_1"; - this.e_1.Background = new SolidColorBrush(new ColorW(0, 0, 0, 255)); - Grid.SetColumnSpan(this.e_1, 2); - // logo element - this.logo = new Image(); - this.e_1.Children.Add(this.logo); - this.logo.Name = "logo"; - this.logo.HorizontalAlignment = HorizontalAlignment.Center; - BitmapImage logo_bm = new BitmapImage(); - logo_bm.TextureAsset = "Images/EmptyKeysLogoTextSmall"; - this.logo.Source = logo_bm; - this.logo.Stretch = Stretch.None; - this.logo.SetResourceReference(Image.SourceProperty, "logoEmptyKeys"); - // e_2 element - this.e_2 = new TextBlock(); - this.e_1.Children.Add(this.e_2); - this.e_2.Name = "e_2"; - this.e_2.HorizontalAlignment = HorizontalAlignment.Center; - this.e_2.VerticalAlignment = VerticalAlignment.Center; - this.e_2.Foreground = new SolidColorBrush(new ColorW(211, 211, 211, 255)); - this.e_2.TextWrapping = TextWrapping.Wrap; - this.e_2.FontFamily = new FontFamily("Segoe UI"); - this.e_2.FontSize = 20F; - this.e_2.FontStyle = FontStyle.Bold; - this.e_2.SetResourceReference(TextBlock.TextProperty, "TitleResource"); - // e_3 element - this.e_3 = new StackPanel(); - this.e_0.Children.Add(this.e_3); - this.e_3.Name = "e_3"; - Grid.SetRow(this.e_3, 1); - // combo element - this.combo = new ComboBox(); - this.e_3.Children.Add(this.combo); - this.combo.Name = "combo"; - this.combo.Width = 200F; - this.combo.Margin = new Thickness(5F, 5F, 5F, 5F); - Func combo_dtFunc = combo_dtMethod; - this.combo.ItemTemplate = new DataTemplate(combo_dtFunc); - Binding binding_combo_ItemsSource = new Binding("ComboBoxSource"); - this.combo.SetBinding(ComboBox.ItemsSourceProperty, binding_combo_ItemsSource); - Binding binding_combo_SelectedIndex = new Binding("SelectedIndex"); - this.combo.SetBinding(ComboBox.SelectedIndexProperty, binding_combo_SelectedIndex); - // button1 element - this.button1 = new Button(); - this.e_3.Children.Add(this.button1); - this.button1.Name = "button1"; - this.button1.Height = 30F; - this.button1.Width = 200F; - this.button1.Margin = new Thickness(5F, 5F, 5F, 5F); - ToolTip tt_button1 = new ToolTip(); - this.button1.ToolTip = tt_button1; - tt_button1.Content = "Click Me!"; - this.button1.Content = "1"; - this.button1.CommandParameter = "Click Button 1"; - Binding binding_button1_Command = new Binding("ButtonCommand"); - this.button1.SetBinding(Button.CommandProperty, binding_button1_Command); - // button2 element - this.button2 = new Button(); - this.e_3.Children.Add(this.button2); - this.button2.Name = "button2"; - this.button2.Height = 30F; - this.button2.Margin = new Thickness(5F, 5F, 5F, 5F); - this.button2.Content = "2"; - this.button2.CommandParameter = "Click Button 2"; - Binding binding_button2_Command = new Binding("ButtonCommand"); - this.button2.SetBinding(Button.CommandProperty, binding_button2_Command); - this.button2.SetResourceReference(Button.StyleProperty, "buttonStyle"); - // button3 element - this.button3 = new Button(); - this.e_3.Children.Add(this.button3); - this.button3.Name = "button3"; - this.button3.Height = 30F; - this.button3.Width = 200F; - this.button3.Margin = new Thickness(5F, 5F, 5F, 5F); - this.button3.FontFamily = new FontFamily("Segoe UI"); - this.button3.FontSize = 20F; - this.button3.FontStyle = FontStyle.Bold; - this.button3.Content = "3"; - this.button3.CommandParameter = "Click Button 3"; - Binding binding_button3_Command = new Binding("OpenMessageBox"); - this.button3.SetBinding(Button.CommandProperty, binding_button3_Command); - this.button3.SetResourceReference(Button.ToolTipProperty, "ToolTipText"); - // buttonResult element - this.buttonResult = new TextBlock(); - this.e_3.Children.Add(this.buttonResult); - this.buttonResult.Name = "buttonResult"; - this.buttonResult.HorizontalAlignment = HorizontalAlignment.Center; - Binding binding_buttonResult_Text = new Binding("ButtonResult"); - this.buttonResult.SetBinding(TextBlock.TextProperty, binding_buttonResult_Text); - // slider element - this.slider = new Slider(); - this.e_3.Children.Add(this.slider); - this.slider.Name = "slider"; - this.slider.Width = 200F; - this.slider.Minimum = 5F; - this.slider.Maximum = 20F; - Binding binding_slider_Value = new Binding("SliderValue"); - this.slider.SetBinding(Slider.ValueProperty, binding_slider_Value); - // textBox element - this.textBox = new TextBox(); - this.e_3.Children.Add(this.textBox); - this.textBox.Name = "textBox"; - this.textBox.Width = 200F; - this.textBox.Margin = new Thickness(5F, 5F, 5F, 5F); - Binding binding_textBox_Text = new Binding("TextBoxText"); - this.textBox.SetBinding(TextBox.TextProperty, binding_textBox_Text); - // checkBox element - this.checkBox = new CheckBox(); - this.e_3.Children.Add(this.checkBox); - this.checkBox.Name = "checkBox"; - this.checkBox.Margin = new Thickness(5F, 5F, 5F, 5F); - this.checkBox.HorizontalAlignment = HorizontalAlignment.Center; - this.checkBox.Content = "Check Box"; - // e_5 element - this.e_5 = new TabControl(); - this.e_3.Children.Add(this.e_5); - this.e_5.Name = "e_5"; - this.e_5.Height = 150F; - this.e_5.Width = 400F; - this.e_5.ItemsSource = Get_e_5_Items(); - // e_18 element - this.e_18 = new ProgressBar(); - this.e_3.Children.Add(this.e_18); - this.e_18.Name = "e_18"; - this.e_18.Height = 30F; - this.e_18.Width = 400F; - this.e_18.Margin = new Thickness(5F, 5F, 5F, 5F); - this.e_18.Value = 39F; - // imageButton element - this.imageButton = new Button(); - this.e_3.Children.Add(this.imageButton); - this.imageButton.Name = "imageButton"; - this.imageButton.Height = 68F; - this.imageButton.Width = 57F; - ImageBrush imageButton_Background = new ImageBrush(); - BitmapImage imageButton_Background_bm = new BitmapImage(); - imageButton_Background_bm.TextureAsset = "Images/SunBurn"; - imageButton_Background.ImageSource = imageButton_Background_bm; - imageButton_Background.Stretch = Stretch.None; - this.imageButton.Background = imageButton_Background; - // e_19 element - this.e_19 = new StackPanel(); - this.e_0.Children.Add(this.e_19); - this.e_19.Name = "e_19"; - Grid.SetColumn(this.e_19, 1); - Grid.SetRow(this.e_19, 1); - // animButton1 element - this.animButton1 = new Button(); - this.e_19.Children.Add(this.animButton1); - this.animButton1.Name = "animButton1"; - this.animButton1.Content = "Mouse Over me!"; - this.animButton1.SetResourceReference(Button.StyleProperty, "buttonAnimStyle"); - // animButton2 element - this.animButton2 = new Button(); - this.e_19.Children.Add(this.animButton2); - this.animButton2.Name = "animButton2"; - this.animButton2.Content = "Mouse Over me!"; - this.animButton2.SetResourceReference(Button.StyleProperty, "buttonAnimStyle"); - // animButton3 element - this.animButton3 = new Button(); - this.e_19.Children.Add(this.animButton3); - this.animButton3.Name = "animButton3"; - this.animButton3.Content = "Mouse Over me!"; - this.animButton3.SetResourceReference(Button.StyleProperty, "buttonAnimStyle"); - // animButton4 element - this.animButton4 = new Button(); - this.e_19.Children.Add(this.animButton4); - this.animButton4.Name = "animButton4"; - this.animButton4.Content = "Mouse Over me!"; - this.animButton4.SetResourceReference(Button.StyleProperty, "buttonAnimStyle"); - // e_20 element - this.e_20 = new Grid(); - this.e_19.Children.Add(this.e_20); - this.e_20.Name = "e_20"; - // animBorder1 element - this.animBorder1 = new Border(); - this.e_20.Children.Add(this.animBorder1); - this.animBorder1.Name = "animBorder1"; - this.animBorder1.Height = 100F; - this.animBorder1.Width = 200F; - this.animBorder1.Margin = new Thickness(0F, 10F, 0F, 10F); - EventTrigger animBorder1_ET_0 = new EventTrigger(Border.LoadedEvent, this.animBorder1); - animBorder1.Triggers.Add(animBorder1_ET_0); - BeginStoryboard animBorder1_ET_0_AC_0 = new BeginStoryboard(); - animBorder1_ET_0_AC_0.Name = "animBorder1_ET_0_AC_0"; - animBorder1_ET_0.AddAction(animBorder1_ET_0_AC_0); - Storyboard animBorder1_ET_0_AC_0_SB = new Storyboard(); - animBorder1_ET_0_AC_0.Storyboard = animBorder1_ET_0_AC_0_SB; - animBorder1_ET_0_AC_0_SB.Name = "animBorder1_ET_0_AC_0_SB"; - SolidColorBrushAnimation animBorder1_ET_0_AC_0_SB_TL_0 = new SolidColorBrushAnimation(); - animBorder1_ET_0_AC_0_SB_TL_0.Name = "animBorder1_ET_0_AC_0_SB_TL_0"; - animBorder1_ET_0_AC_0_SB_TL_0.AutoReverse = true; - animBorder1_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 5, 0)); - animBorder1_ET_0_AC_0_SB_TL_0.RepeatBehavior = RepeatBehavior.Forever; - animBorder1_ET_0_AC_0_SB_TL_0.From = new ColorW(255, 255, 0, 255); - animBorder1_ET_0_AC_0_SB_TL_0.To = new ColorW(0, 0, 255, 255); - ExponentialEase animBorder1_ET_0_AC_0_SB_TL_0_EA = new ExponentialEase(); - animBorder1_ET_0_AC_0_SB_TL_0.EasingFunction = animBorder1_ET_0_AC_0_SB_TL_0_EA; - Storyboard.SetTargetName(animBorder1_ET_0_AC_0_SB_TL_0, "animBorder1"); - Storyboard.SetTargetProperty(animBorder1_ET_0_AC_0_SB_TL_0, Border.BackgroundProperty); - animBorder1_ET_0_AC_0_SB.Children.Add(animBorder1_ET_0_AC_0_SB_TL_0); - // animBorder2 element - this.animBorder2 = new Border(); - this.e_20.Children.Add(this.animBorder2); - this.animBorder2.Name = "animBorder2"; - this.animBorder2.Height = 50F; - this.animBorder2.Width = 100F; - this.animBorder2.Margin = new Thickness(50F, 35F, 50F, 35F); - EventTrigger animBorder2_ET_0 = new EventTrigger(Border.LoadedEvent, this.animBorder2); - animBorder2.Triggers.Add(animBorder2_ET_0); - BeginStoryboard animBorder2_ET_0_AC_0 = new BeginStoryboard(); - animBorder2_ET_0_AC_0.Name = "animBorder2_ET_0_AC_0"; - animBorder2_ET_0.AddAction(animBorder2_ET_0_AC_0); - Storyboard animBorder2_ET_0_AC_0_SB = new Storyboard(); - animBorder2_ET_0_AC_0.Storyboard = animBorder2_ET_0_AC_0_SB; - animBorder2_ET_0_AC_0_SB.Name = "animBorder2_ET_0_AC_0_SB"; - SolidColorBrushAnimation animBorder2_ET_0_AC_0_SB_TL_0 = new SolidColorBrushAnimation(); - animBorder2_ET_0_AC_0_SB_TL_0.Name = "animBorder2_ET_0_AC_0_SB_TL_0"; - animBorder2_ET_0_AC_0_SB_TL_0.AutoReverse = true; - animBorder2_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 3, 0)); - animBorder2_ET_0_AC_0_SB_TL_0.RepeatBehavior = RepeatBehavior.Forever; - animBorder2_ET_0_AC_0_SB_TL_0.From = new ColorW(255, 0, 0, 255); - animBorder2_ET_0_AC_0_SB_TL_0.To = new ColorW(255, 255, 255, 255); - CubicEase animBorder2_ET_0_AC_0_SB_TL_0_EA = new CubicEase(); - animBorder2_ET_0_AC_0_SB_TL_0.EasingFunction = animBorder2_ET_0_AC_0_SB_TL_0_EA; - Storyboard.SetTargetName(animBorder2_ET_0_AC_0_SB_TL_0, "animBorder2"); - Storyboard.SetTargetProperty(animBorder2_ET_0_AC_0_SB_TL_0, Border.BackgroundProperty); - animBorder2_ET_0_AC_0_SB.Children.Add(animBorder2_ET_0_AC_0_SB_TL_0); - FloatAnimation animBorder2_ET_0_AC_0_SB_TL_1 = new FloatAnimation(); - animBorder2_ET_0_AC_0_SB_TL_1.Name = "animBorder2_ET_0_AC_0_SB_TL_1"; - animBorder2_ET_0_AC_0_SB_TL_1.AutoReverse = true; - animBorder2_ET_0_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 4, 0)); - animBorder2_ET_0_AC_0_SB_TL_1.RepeatBehavior = RepeatBehavior.Forever; - animBorder2_ET_0_AC_0_SB_TL_1.From = 1F; - animBorder2_ET_0_AC_0_SB_TL_1.To = 0F; - Storyboard.SetTargetName(animBorder2_ET_0_AC_0_SB_TL_1, "animBorder2"); - Storyboard.SetTargetProperty(animBorder2_ET_0_AC_0_SB_TL_1, Border.OpacityProperty); - animBorder2_ET_0_AC_0_SB.Children.Add(animBorder2_ET_0_AC_0_SB_TL_1); - ImageManager.Instance.AddImage("Images/EmptyKeysLogoTextSmall"); - ImageManager.Instance.AddImage("Images/SunBurn"); - FontManager.Instance.AddFont("Segoe UI", 13.33333F, FontStyle.Regular, "Segoe_UI_10_Regular"); - FontManager.Instance.AddFont("Segoe UI", 20F, FontStyle.Bold, "Segoe_UI_15_Bold"); - } - - private static void InitializeElementResources(UIElement elem) { - elem.Resources.MergedDictionaries.Add(Dictionary.Instance); - } - - private static UIElement combo_dtMethod(UIElement parent) { - // e_4 element - TextBlock e_4 = new TextBlock(); - e_4.Parent = parent; - e_4.Name = "e_4"; - e_4.Margin = new Thickness(2F, 2F, 2F, 2F); - e_4.HorizontalAlignment = HorizontalAlignment.Center; - Binding binding_e_4_Text = new Binding("Name"); - e_4.SetBinding(TextBlock.TextProperty, binding_e_4_Text); - return e_4; - } - - private static System.Collections.ObjectModel.ObservableCollection Get_e_5_Items() { - System.Collections.ObjectModel.ObservableCollection items = new System.Collections.ObjectModel.ObservableCollection(); - // e_6 element - TabItem e_6 = new TabItem(); - e_6.Name = "e_6"; - e_6.HorizontalContentAlignment = HorizontalAlignment.Stretch; - e_6.Header = "Tab 1"; - // e_7 element - ListBox e_7 = new ListBox(); - e_6.Content = e_7; - e_7.Name = "e_7"; - e_7.Height = 100F; - Func e_7_dtFunc = e_7_dtMethod; - e_7.ItemTemplate = new DataTemplate(e_7_dtFunc); - Binding binding_e_7_ItemsSource = new Binding("ComboBoxSource"); - e_7.SetBinding(ListBox.ItemsSourceProperty, binding_e_7_ItemsSource); - Binding binding_e_7_SelectedItem = new Binding("SelectedItem"); - e_7.SetBinding(ListBox.SelectedItemProperty, binding_e_7_SelectedItem); - items.Add(e_6); - // e_9 element - TabItem e_9 = new TabItem(); - e_9.Name = "e_9"; - e_9.Header = "Tab 2"; - // e_10 element - StackPanel e_10 = new StackPanel(); - e_9.Content = e_10; - e_10.Name = "e_10"; - // e_11 element - ListBox e_11 = new ListBox(); - e_10.Children.Add(e_11); - e_11.Name = "e_11"; - e_11.Height = 100F; - e_11.ItemsSource = Get_e_11_Items(); - items.Add(e_9); - // e_16 element - TabItem e_16 = new TabItem(); - e_16.Name = "e_16"; - e_16.Content = "Tab 3 Content"; - e_16.Header = "Tab 3"; - items.Add(e_16); - // e_17 element - TabItem e_17 = new TabItem(); - e_17.Name = "e_17"; - e_17.Content = "Tab 4 Content"; - e_17.Header = "Tab 4"; - items.Add(e_17); - return items; - } - - private static UIElement e_7_dtMethod(UIElement parent) { - // e_8 element - TextBlock e_8 = new TextBlock(); - e_8.Parent = parent; - e_8.Name = "e_8"; - e_8.Margin = new Thickness(2F, 2F, 2F, 2F); - e_8.HorizontalAlignment = HorizontalAlignment.Center; - Binding binding_e_8_Text = new Binding("Name"); - e_8.SetBinding(TextBlock.TextProperty, binding_e_8_Text); - return e_8; - } - - private static System.Collections.ObjectModel.ObservableCollection Get_e_11_Items() { - System.Collections.ObjectModel.ObservableCollection items = new System.Collections.ObjectModel.ObservableCollection(); - // e_12 element - ListBoxItem e_12 = new ListBoxItem(); - e_12.Name = "e_12"; - e_12.Content = "Selection 1"; - items.Add(e_12); - // e_13 element - ListBoxItem e_13 = new ListBoxItem(); - e_13.Name = "e_13"; - e_13.Content = "Selection 2"; - items.Add(e_13); - // e_14 element - ListBoxItem e_14 = new ListBoxItem(); - e_14.Name = "e_14"; - e_14.Content = "Selection 3"; - items.Add(e_14); - // e_15 element - ListBoxItem e_15 = new ListBoxItem(); - e_15.Name = "e_15"; - e_15.Content = "Selection 4"; - items.Add(e_15); - return items; - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/GeneratedUI/Dictionary.xaml.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/GeneratedUI/Dictionary.xaml.cs deleted file mode 100644 index 791d8f4..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/GeneratedUI/Dictionary.xaml.cs +++ /dev/null @@ -1,141 +0,0 @@ -// ----------------------------------------------------------- -// -// This file was generated, please do not modify. -// -// ----------------------------------------------------------- -namespace EmptyKeys.UserInterface.Generated { - using System; - using System.CodeDom.Compiler; - using System.Collections.ObjectModel; - using EmptyKeys.UserInterface; - using EmptyKeys.UserInterface.Charts; - using EmptyKeys.UserInterface.Data; - using EmptyKeys.UserInterface.Controls; - using EmptyKeys.UserInterface.Controls.Primitives; - using EmptyKeys.UserInterface.Input; - using EmptyKeys.UserInterface.Media; - using EmptyKeys.UserInterface.Media.Animation; - using EmptyKeys.UserInterface.Media.Imaging; - using EmptyKeys.UserInterface.Shapes; - using EmptyKeys.UserInterface.Renderers; - using EmptyKeys.UserInterface.Themes; - - - [GeneratedCodeAttribute("Empty Keys UI Generator", "1.11.0.0")] - public sealed class Dictionary : ResourceDictionary { - - private static Dictionary singleton = new Dictionary(); - - public Dictionary() { - this.InitializeResources(); - } - - public static Dictionary Instance { - get { - return singleton; - } - } - - private void InitializeResources() { - // Resource - [buttonAnimStyle] Style - var r_0_s_bo = this[typeof(Button)]; - Style r_0_s = new Style(typeof(Button), r_0_s_bo as Style); - Setter r_0_s_S_0 = new Setter(Button.WidthProperty, 200F); - r_0_s.Setters.Add(r_0_s_S_0); - Setter r_0_s_S_1 = new Setter(Button.MarginProperty, new Thickness(0F, 1F, 0F, 1F)); - r_0_s.Setters.Add(r_0_s_S_1); - Setter r_0_s_S_2 = new Setter(Button.SnapsToDevicePixelsProperty, false); - r_0_s.Setters.Add(r_0_s_S_2); - EventTrigger r_0_s_ET_0 = new EventTrigger(Button.MouseEnterEvent); - r_0_s.Triggers.Add(r_0_s_ET_0); - BeginStoryboard r_0_s_ET_0_AC_0 = new BeginStoryboard(); - r_0_s_ET_0_AC_0.Name = "r_0_s_ET_0_AC_0"; - r_0_s_ET_0.AddAction(r_0_s_ET_0_AC_0); - Storyboard r_0_s_ET_0_AC_0_SB = new Storyboard(); - r_0_s_ET_0_AC_0.Storyboard = r_0_s_ET_0_AC_0_SB; - r_0_s_ET_0_AC_0_SB.Name = "r_0_s_ET_0_AC_0_SB"; - ThicknessAnimation r_0_s_ET_0_AC_0_SB_TL_0 = new ThicknessAnimation(); - r_0_s_ET_0_AC_0_SB_TL_0.Name = "r_0_s_ET_0_AC_0_SB_TL_0"; - r_0_s_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500)); - r_0_s_ET_0_AC_0_SB_TL_0.From = new Thickness(0F, 1F, 0F, 1F); - r_0_s_ET_0_AC_0_SB_TL_0.To = new Thickness(0F, 5F, 0F, 5F); - SineEase r_0_s_ET_0_AC_0_SB_TL_0_EA = new SineEase(); - r_0_s_ET_0_AC_0_SB_TL_0.EasingFunction = r_0_s_ET_0_AC_0_SB_TL_0_EA; - Storyboard.SetTargetProperty(r_0_s_ET_0_AC_0_SB_TL_0, Button.MarginProperty); - r_0_s_ET_0_AC_0_SB.Children.Add(r_0_s_ET_0_AC_0_SB_TL_0); - FloatAnimation r_0_s_ET_0_AC_0_SB_TL_1 = new FloatAnimation(); - r_0_s_ET_0_AC_0_SB_TL_1.Name = "r_0_s_ET_0_AC_0_SB_TL_1"; - r_0_s_ET_0_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500)); - r_0_s_ET_0_AC_0_SB_TL_1.To = 220F; - SineEase r_0_s_ET_0_AC_0_SB_TL_1_EA = new SineEase(); - r_0_s_ET_0_AC_0_SB_TL_1.EasingFunction = r_0_s_ET_0_AC_0_SB_TL_1_EA; - Storyboard.SetTargetProperty(r_0_s_ET_0_AC_0_SB_TL_1, Button.WidthProperty); - r_0_s_ET_0_AC_0_SB.Children.Add(r_0_s_ET_0_AC_0_SB_TL_1); - EventTrigger r_0_s_ET_1 = new EventTrigger(Button.MouseLeaveEvent); - r_0_s.Triggers.Add(r_0_s_ET_1); - BeginStoryboard r_0_s_ET_1_AC_0 = new BeginStoryboard(); - r_0_s_ET_1_AC_0.Name = "r_0_s_ET_1_AC_0"; - r_0_s_ET_1.AddAction(r_0_s_ET_1_AC_0); - Storyboard r_0_s_ET_1_AC_0_SB = new Storyboard(); - r_0_s_ET_1_AC_0.Storyboard = r_0_s_ET_1_AC_0_SB; - r_0_s_ET_1_AC_0_SB.Name = "r_0_s_ET_1_AC_0_SB"; - ThicknessAnimation r_0_s_ET_1_AC_0_SB_TL_0 = new ThicknessAnimation(); - r_0_s_ET_1_AC_0_SB_TL_0.Name = "r_0_s_ET_1_AC_0_SB_TL_0"; - r_0_s_ET_1_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500)); - r_0_s_ET_1_AC_0_SB_TL_0.From = new Thickness(0F, 5F, 0F, 5F); - r_0_s_ET_1_AC_0_SB_TL_0.To = new Thickness(0F, 1F, 0F, 1F); - SineEase r_0_s_ET_1_AC_0_SB_TL_0_EA = new SineEase(); - r_0_s_ET_1_AC_0_SB_TL_0.EasingFunction = r_0_s_ET_1_AC_0_SB_TL_0_EA; - Storyboard.SetTargetProperty(r_0_s_ET_1_AC_0_SB_TL_0, Button.MarginProperty); - r_0_s_ET_1_AC_0_SB.Children.Add(r_0_s_ET_1_AC_0_SB_TL_0); - FloatAnimation r_0_s_ET_1_AC_0_SB_TL_1 = new FloatAnimation(); - r_0_s_ET_1_AC_0_SB_TL_1.Name = "r_0_s_ET_1_AC_0_SB_TL_1"; - r_0_s_ET_1_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500)); - r_0_s_ET_1_AC_0_SB_TL_1.To = 200F; - SineEase r_0_s_ET_1_AC_0_SB_TL_1_EA = new SineEase(); - r_0_s_ET_1_AC_0_SB_TL_1.EasingFunction = r_0_s_ET_1_AC_0_SB_TL_1_EA; - Storyboard.SetTargetProperty(r_0_s_ET_1_AC_0_SB_TL_1, Button.WidthProperty); - r_0_s_ET_1_AC_0_SB.Children.Add(r_0_s_ET_1_AC_0_SB_TL_1); - this.Add("buttonAnimStyle", r_0_s); - // Resource - [buttonStyle] Style - var r_1_s_bo = this[typeof(Button)]; - Style r_1_s = new Style(typeof(Button), r_1_s_bo as Style); - Setter r_1_s_S_0 = new Setter(Button.BackgroundProperty, new SolidColorBrush(new ColorW(255, 140, 0, 255))); - r_1_s.Setters.Add(r_1_s_S_0); - Setter r_1_s_S_1 = new Setter(Button.WidthProperty, 200F); - r_1_s.Setters.Add(r_1_s_S_1); - Setter r_1_s_S_2 = new Setter(Button.PaddingProperty, new Thickness(2F)); - r_1_s.Setters.Add(r_1_s_S_2); - this.Add("buttonStyle", r_1_s); - // Resource - [logoEmptyKeys] BitmapImage - BitmapImage r_2_bm = new BitmapImage(); - r_2_bm.TextureAsset = "Images/EmptyKeysLogoTextSmall"; - this.Add("logoEmptyKeys", r_2_bm); - // Resource - [logoSunburn] BitmapImage - BitmapImage r_3_bm = new BitmapImage(); - r_3_bm.TextureAsset = "Images/SunBurn"; - this.Add("logoSunburn", r_3_bm); - // Resource - [MessageBoxButtonYes] String - this.Add("MessageBoxButtonYes", "Yes!"); - // Resource - [Sounds] SoundSourceCollection - var r_5_sounds = new SoundSourceCollection(); - r_5_sounds.Add(new SoundSource { SoundType = SoundType.ButtonsClick, SoundAsset = "Click" }); - SoundManager.Instance.AddSound("Click"); - r_5_sounds.Add(new SoundSource { SoundType = SoundType.TextBoxKeyPress, SoundAsset = "KeyPress" }); - SoundManager.Instance.AddSound("KeyPress"); - r_5_sounds.Add(new SoundSource { SoundType = SoundType.TabControlMove, SoundAsset = "Move" }); - SoundManager.Instance.AddSound("Move"); - r_5_sounds.Add(new SoundSource { SoundType = SoundType.TabControlSelect, SoundAsset = "Select" }); - SoundManager.Instance.AddSound("Select"); - this.Add("Sounds", r_5_sounds); - // Resource - [TitleResource] String - this.Add("TitleResource", "Basic UI Example"); - // Resource - [ToolTipText] String - this.Add("ToolTipText", "Click to open message box"); - ImageManager.Instance.AddImage("Images/EmptyKeysLogoTextSmall"); - ImageManager.Instance.AddImage("Images/SunBurn"); - FontManager.Instance.AddFont("Segoe UI", 13.33333F, FontStyle.Regular, "Segoe_UI_10_Regular"); - FontManager.Instance.AddFont("Segoe UI", 20F, FontStyle.Bold, "Segoe_UI_15_Bold"); - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Input/CompositeInputSource.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Input/CompositeInputSource.cs deleted file mode 100644 index 9abf741..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Input/CompositeInputSource.cs +++ /dev/null @@ -1,49 +0,0 @@ -//----------------------------------------------------------------------------- -// Synapse Gaming - SunBurn Starter Kit -// Copyright © Synapse Gaming 2012 -//----------------------------------------------------------------------------- - -#region Using Statements -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using SynapseGaming.SunBurn.Framework.Content; -using SynapseGaming.SunBurn.Framework.Core; -using SynapseGaming.SunBurn.Framework.Graphics; -using SynapseGaming.SunBurn.Framework.Input; -using SynapseGaming.SunBurn.Framework.Models; -using SynapseGaming.SunBurn.Framework.Primitives; -using SynapseGaming.SunBurn.Engine.Core; -using SynapseGaming.SunBurn.Engine.Rendering; -#endregion - - -namespace GameLibrary.Input -{ - public class CompositeInputSource : BaseInputSource - { - private List _Sources = new List(); - - public CompositeInputSource(BaseInputSource[] sources) - { - if (sources != null) - _Sources.AddRange(sources); - } - - protected override void CalculateMovement() - { - foreach (BaseInputSource source in _Sources) - { - source.Update(); - - _MoveAmount += source.MoveAmount; - _TurnAmount += source.TurnAmount; - _LookUpDownAmount += source.LookUpDownAmount; - - _Crouch |= source.Crouch; - _Jump |= source.Jump; - } - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Input/InputHelper.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Input/InputHelper.cs deleted file mode 100644 index 206939f..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Input/InputHelper.cs +++ /dev/null @@ -1,128 +0,0 @@ -//----------------------------------------------------------------------------- -// Synapse Gaming - SunBurn Starter Kit -// Copyright © Synapse Gaming 2012 -//----------------------------------------------------------------------------- - -#region Using Statements -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using SynapseGaming.SunBurn.Framework.Content; -using SynapseGaming.SunBurn.Framework.Core; -using SynapseGaming.SunBurn.Framework.Graphics; -using SynapseGaming.SunBurn.Framework.Input; -using SynapseGaming.SunBurn.Framework.Models; -using SynapseGaming.SunBurn.Framework.Primitives; -using SynapseGaming.SunBurn.Engine.Collision; -using SynapseGaming.SunBurn.Engine.Collision.Controllers; -using SynapseGaming.SunBurn.Engine.Core; -using SynapseGaming.SunBurn.Engine.Editor; -using SynapseGaming.SunBurn.Engine.Rendering; -#endregion - - -namespace GameLibrary.Input -{ - public class InputHelper - { - private float _CharacterLookUpDownAngle; - private float _FreeCameraMoveSpeed; - private Vector3 _FreeCameraViewPosition; - private Vector3 _FreeCameraViewRotation; - private CompositeInputSource _InputSources; - - public InputHelper(float freecameramovespeed, Vector3 freecameraposition, - Vector3 freecamerarotation, params BaseInputSource[] sources) - { - _FreeCameraMoveSpeed = freecameramovespeed; - _FreeCameraViewPosition = freecameraposition; - _FreeCameraViewRotation = freecamerarotation; - - _InputSources = new CompositeInputSource(sources); - } - - public void Update() - { - _InputSources.Update(); - } - - public void HandleCharacterControllerInput(GameTime gametime, ICharacterController controller) - { - float timescale = (float)gametime.ElapsedGameTime.TotalSeconds; - float rotatescale = 1.5f; - - // Avoid moving with keyboard and mouse when the editor is open. - if (controller.PlayerNumber == 0 && SunBurnEditorClient.Instance.EditorOpen) - return; - - // Apply player input. - controller.Move(new Vector2(_InputSources.MoveAmount.X, 0.0f)); - controller.Move(new Vector2(0.0f, _InputSources.MoveAmount.Y)); - controller.Turn(-_InputSources.TurnAmount * rotatescale); - - if (_InputSources.Jump) - controller.Jump(); - - controller.Crouch = _InputSources.Crouch; - - // Apply up / down view. - _CharacterLookUpDownAngle += _InputSources.LookUpDownAmount * rotatescale * timescale; - - // Clamp the look up / down range. - _CharacterLookUpDownAngle = MathHelper.Clamp(_CharacterLookUpDownAngle, -1.0f, 1.0f); - } - - public Matrix GetCharacterControllerView(ICharacterController controller) - { - // Get the controlled object (the CollidableEntity) from the controller. - ICollisionObject obj = controller.ParentObject; - - // Need the direction it's facing and the world bounds. - Vector3 forward = Vector3.Normalize(obj.World.Forward); - BoundingBox worldbox = obj.WorldBoundingBox; - - // Calculate the eye location for the object. - Vector3 eyelocation = Vector3.Zero; - eyelocation.X = (worldbox.Max.X + worldbox.Min.X) * 0.5f; - eyelocation.Z = (worldbox.Max.Z + worldbox.Min.Z) * 0.5f; - eyelocation.Y = (worldbox.Max.Y - worldbox.Min.Y) * 0.9f + worldbox.Min.Y; - - // Convert it to a view matrix. - return Matrix.Invert(Matrix.CreateRotationX(_CharacterLookUpDownAngle) * Matrix.CreateWorld(eyelocation, forward, Vector3.Up)); - } - - public Matrix GetFreeCameraView(GameTime gametime) - { - // Avoid moving with keyboard and mouse when the editor is open. - if (!SunBurnEditorClient.Instance.EditorOpen) - { - float timescale = (float)gametime.ElapsedGameTime.TotalSeconds; - float rotatescale = 150.0f * timescale; - float movescale = timescale * _FreeCameraMoveSpeed; - - _FreeCameraViewRotation.X -= MathHelper.ToRadians(_InputSources.TurnAmount * rotatescale); - _FreeCameraViewRotation.Y -= MathHelper.ToRadians(_InputSources.LookUpDownAmount * rotatescale); - - if (_FreeCameraViewRotation.Y > MathHelper.PiOver2 - 0.01f) - _FreeCameraViewRotation.Y = MathHelper.PiOver2 - 0.01f; - else if (_FreeCameraViewRotation.Y < -MathHelper.PiOver2 + 0.01f) - _FreeCameraViewRotation.Y = -MathHelper.PiOver2 + 0.01f; - - Quaternion rot = Quaternion.CreateFromYawPitchRoll(_FreeCameraViewRotation.X, _FreeCameraViewRotation.Y, _FreeCameraViewRotation.Z); - Vector3 scaledmove; - - scaledmove.X = _InputSources.MoveAmount.X * -movescale; - scaledmove.Y = 0.0f; - scaledmove.Z = _InputSources.MoveAmount.Y * movescale; - - _FreeCameraViewPosition += Vector3.Transform(scaledmove, rot); - } - - // Convert the camera rotation and movement into a view transform. - Matrix rotation = Matrix.CreateFromYawPitchRoll(_FreeCameraViewRotation.X, _FreeCameraViewRotation.Y, _FreeCameraViewRotation.Z); - Vector3 target = _FreeCameraViewPosition + Vector3.Transform(Vector3.Backward, rotation); - return Matrix.CreateLookAt(_FreeCameraViewPosition, target, Vector3.Up); - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Input/InputSources.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Input/InputSources.cs deleted file mode 100644 index a22998c..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Input/InputSources.cs +++ /dev/null @@ -1,278 +0,0 @@ -//----------------------------------------------------------------------------- -// Synapse Gaming - SunBurn Starter Kit -// Copyright © Synapse Gaming 2012 -//----------------------------------------------------------------------------- - -#region Using Statements -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using SynapseGaming.SunBurn.Framework.Content; -using SynapseGaming.SunBurn.Framework.Core; -using SynapseGaming.SunBurn.Framework.Graphics; -using SynapseGaming.SunBurn.Framework.Input; -using SynapseGaming.SunBurn.Framework.Models; -using SynapseGaming.SunBurn.Framework.Primitives; -using SynapseGaming.SunBurn.Engine.Core; -using SynapseGaming.SunBurn.Engine.Editor; -using SynapseGaming.SunBurn.Engine.Rendering; -#endregion - - -namespace GameLibrary.Input -{ - /// - /// Base class for converting player input to movement. - /// - public abstract class BaseInputSource - { - public Vector3 MoveAmount { get { return _MoveAmount; } } - public float TurnAmount { get { return _TurnAmount; } } - public float LookUpDownAmount { get { return _LookUpDownAmount; } } - public bool Jump { get { return _Jump; } } - public bool Crouch { get { return _Crouch; } } - - protected Vector3 _MoveAmount; - protected float _TurnAmount; - protected float _LookUpDownAmount; - protected bool _Jump; - protected bool _Crouch; - - protected abstract void CalculateMovement(); - - public void Update() - { - // Zero out values for this update. - _MoveAmount = Vector3.Zero; - _TurnAmount = 0.0f; - _LookUpDownAmount = 0.0f; - _Jump = false; - _Crouch = false; - - CalculateMovement(); - } - } - - /// - /// Converts gamepad input to movement. - /// - public class GamepadInputSource : BaseInputSource - { - private int _PlayerNumber; - - public GamepadInputSource(int playernumber) - { - _PlayerNumber = playernumber; - } - - protected override void CalculateMovement() - { - GamePadState gamepad = Platform.Instance.InputDevice.GamePadStates.GetByPlayerNumber(_PlayerNumber); - - if(gamepad == null) - return ; - - _MoveAmount.X = gamepad.LeftThumbStick.X; - _MoveAmount.Y = gamepad.LeftThumbStick.Y; - _TurnAmount = gamepad.RightThumbStick.X; - _LookUpDownAmount = gamepad.RightThumbStick.Y; - - _Jump = gamepad.AButtonPressed; - _Crouch = gamepad.BButtonPressed; - } - } - - /// - /// Converts keyboard input to movement. - /// - public class KeyboardInputSource : BaseInputSource - { - protected override void CalculateMovement() - { - KeyboardState keyboard = Platform.Instance.InputDevice.KeyboardState; - - // Forward - if (keyboard.KeyPressed(Keys.W) || keyboard.KeyPressed(Keys.NumPad8) || keyboard.KeyPressed(Keys.Up)) - _MoveAmount.Y += 1.0f; - // Backward - if (keyboard.KeyPressed(Keys.S) || keyboard.KeyPressed(Keys.NumPad2) || keyboard.KeyPressed(Keys.Down)) - _MoveAmount.Y -= 1.0f; - - // Strafe left - if (keyboard.KeyPressed(Keys.A) || keyboard.KeyPressed(Keys.NumPad4) || keyboard.KeyPressed(Keys.Left)) - _MoveAmount.X -= 1.0f; - // Strafe right - if (keyboard.KeyPressed(Keys.D) || keyboard.KeyPressed(Keys.NumPad6) || keyboard.KeyPressed(Keys.Right)) - _MoveAmount.X += 1.0f; - - // Turn left - if (keyboard.KeyPressed(Keys.Q) || keyboard.KeyPressed(Keys.NumPad7)) - _TurnAmount -= 1.0f; - // Turn right - if (keyboard.KeyPressed(Keys.E) || keyboard.KeyPressed(Keys.NumPad9)) - _TurnAmount += 1.0f; - - // Look up - if (keyboard.KeyPressed(Keys.PageUp)) - _LookUpDownAmount += 1.0f; - // Look down - if (keyboard.KeyPressed(Keys.PageDown)) - _LookUpDownAmount -= 1.0f; - - _Jump = keyboard.KeyPressed(Keys.Space); - _Crouch = keyboard.KeyPressed(Keys.C); - } - } - - /// - /// Converts mouse input to movement. - /// - public class MouseInputSource : BaseInputSource - { - private bool _FirstMouseSample = true; - - protected override void CalculateMovement() - { - MouseState mouse = Platform.Instance.InputDevice.MouseState; - - // Avoid locking the mouse when the editor is open. - if(SunBurnEditorClient.Instance.EditorOpen) - return; - - if (!_FirstMouseSample) - { - // Turn left / right - _TurnAmount = (mouse.NormalizedX - 0.5f) * 40.0f; - // Look up / down - _LookUpDownAmount = (mouse.NormalizedY - 0.5f) * -20.0f; - - // Clamp the movement range. - _TurnAmount = MathHelper.Clamp(_TurnAmount, -2.0f, 2.0f); - _LookUpDownAmount = MathHelper.Clamp(_LookUpDownAmount, -1.0f, 1.0f); - } - - // Lock the mouse to the screen center. - mouse.SetPositionNormalized(0.5f, 0.5f); - - _FirstMouseSample = false; - } - } - - /// - /// Converts touch input to movement. - /// - public class TouchInputSource : BaseInputSource - { - enum TouchSourceMovementType - { - Move, - Look, - Count - } - - private Nullable[] _CurrentTouchSource = new Nullable[(int)TouchSourceMovementType.Count]; - private Vector2[] _CurrentTouchSourceMovement = new Vector2[(int)TouchSourceMovementType.Count]; - - protected override void CalculateMovement() - { - TouchState touch = Platform.Instance.InputDevice.TouchState; - Nullable move_currentlocation = _CurrentTouchSource[(int)TouchSourceMovementType.Move]; - Nullable look_currentlocation = _CurrentTouchSource[(int)TouchSourceMovementType.Look]; - - // Find the initial move touch source? - if (!move_currentlocation.HasValue) - { - _CurrentTouchSource[(int)TouchSourceMovementType.Move] = FindInitialTouchSource(TouchSourceMovementType.Move, touch); - move_currentlocation = _CurrentTouchSource[(int)TouchSourceMovementType.Move]; - } - - // Find the initial look touch source? - if (!look_currentlocation.HasValue) - { - _CurrentTouchSource[(int)TouchSourceMovementType.Look] = FindInitialTouchSource(TouchSourceMovementType.Look, touch); - look_currentlocation = _CurrentTouchSource[(int)TouchSourceMovementType.Look]; - } - - // Determine the movement amount. - if (move_currentlocation.HasValue) - { - // Find the next location. - Nullable move_nextlocation = GetTouchSourceNextLocation(move_currentlocation, touch); - if (move_nextlocation.HasValue) - { - if (move_nextlocation.Value.State == TouchLocationState.Released) - _CurrentTouchSource[(int)TouchSourceMovementType.Move] = null; - else - { - // Determine the movement of the source. - _CurrentTouchSourceMovement[(int)TouchSourceMovementType.Move].X = (move_nextlocation.Value.NormalizedX - move_currentlocation.Value.NormalizedX) * 40.0f; - _CurrentTouchSourceMovement[(int)TouchSourceMovementType.Move].Y = (move_nextlocation.Value.NormalizedY - move_currentlocation.Value.NormalizedY) * -20.0f; - } - } - - // Apply the source movement as input. - _MoveAmount = new Vector3(_CurrentTouchSourceMovement[(int)TouchSourceMovementType.Move], 0.0f); - } - - // Determine the look amount. - if (look_currentlocation.HasValue) - { - // Find the next location. - Nullable look_nextlocation = GetTouchSourceNextLocation(look_currentlocation, touch); - if (look_nextlocation.HasValue) - { - if (look_nextlocation.Value.State == TouchLocationState.Released) - _CurrentTouchSource[(int)TouchSourceMovementType.Look] = null; - else - { - // Determine the movement of the source. - _CurrentTouchSourceMovement[(int)TouchSourceMovementType.Look].X = (look_nextlocation.Value.NormalizedX - look_currentlocation.Value.NormalizedX) * 10.0f; - _CurrentTouchSourceMovement[(int)TouchSourceMovementType.Look].Y = (look_nextlocation.Value.NormalizedY - look_currentlocation.Value.NormalizedY) * -5.0f; - } - } - - // Apply the source movement as input. - _TurnAmount = _CurrentTouchSourceMovement[(int)TouchSourceMovementType.Look].X; - _LookUpDownAmount = _CurrentTouchSourceMovement[(int)TouchSourceMovementType.Look].Y; - - // Clamp the movement range. - _TurnAmount = MathHelper.Clamp(_TurnAmount, -0.75f, 0.75f); - _LookUpDownAmount = MathHelper.Clamp(_LookUpDownAmount, -1.0f, 1.0f); - } - } - - private Nullable FindInitialTouchSource(TouchSourceMovementType touchsourcetype, TouchState touch) - { - foreach (TouchLocation source in touch.TouchLocations) - { - if (source.SourceIsMouse || source.State != TouchLocationState.Pressed) - continue; - - if (touchsourcetype == TouchSourceMovementType.Look && source.NormalizedX > 0.5f) - continue; - - if (touchsourcetype == TouchSourceMovementType.Move && source.NormalizedX < 0.5f) - continue; - - return source; - } - - return null; - } - - private Nullable GetTouchSourceNextLocation(Nullable currentsource, TouchState touch) - { - if (!currentsource.HasValue) - return null; - - foreach (TouchLocation nextsource in touch.TouchLocations) - { - if (currentsource.Value.Id == nextsource.Id) - return nextsource; - } - - return null; - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Properties/AssemblyInfo.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Properties/AssemblyInfo.cs deleted file mode 100644 index de11dfb..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("BasicUI_Pro Game Library")] -[assembly: AssemblyProduct("BasicUI_Pro")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyCompany("Company Name")] -[assembly: AssemblyCopyright("Copyright © Company Name 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/SimpleGameScreen.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/SimpleGameScreen.cs deleted file mode 100644 index 967e019..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/SimpleGameScreen.cs +++ /dev/null @@ -1,164 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using SynapseGaming.SunBurn.Framework.Content; -using SynapseGaming.SunBurn.Framework.Core; -using SynapseGaming.SunBurn.Framework.Graphics; -using SynapseGaming.SunBurn.Framework.Input; -using SynapseGaming.SunBurn.Framework.Models; -using SynapseGaming.SunBurn.Framework.Primitives; -using SynapseGaming.SunBurn.Engine.Core; -using SynapseGaming.SunBurn.Engine.Collision; -using SynapseGaming.SunBurn.Engine.Collision.Controllers; -using SynapseGaming.SunBurn.Engine.Editor; -using SynapseGaming.SunBurn.Engine.Rendering; -using GameLibrary.Input; - - -namespace GameLibrary -{ - /// - /// Sample screen for the game, which can render in-game scenes, ui, or similar. - /// - public class SimpleGameScreen : GameScreen - { - // The SunBurn engine. - ContentRepository contentRepository; - SceneInterface sceneInterface; - FrameBuffers frameBuffers; - SceneState sceneState; - SceneEnvironment environment; - - // Scene/camera supporting members. - Matrix view = Matrix.Identity; - Matrix projection = Matrix.Identity; - - InputHelper inputHelper = new InputHelper(10.0f,// free camera move speed - Vector3.Zero,// free camera initial position - Vector3.Zero,// free camera initial rotation - new GamepadInputSource(0),// accept gamepad input from player 0 - new KeyboardInputSource(),// accept keyboard input - new MouseInputSource(),// accept mouse input - new TouchInputSource());// accept touch input - - public SimpleGameScreen() - { - sceneState = new SceneState(); - - // Create the scene interface. Acts as a service provider containing all scene managers - // and returning them by type (including custom managers). Also acts as a component - // container where calls to manager methods on the SceneInterface (such as BeginFrameRendering, - // Unload, ...) are automatically called on all contained managers. - // - // This design allows managers to be plugged-in like modular components and for managers - // to easily be added, removed, or replaced with custom implementations. - // - sceneInterface = new SceneInterface(); - sceneInterface.CreateDefaultManagers(RenderingSystemType.Forward, CollisionSystemType.Physics, true); - - BaseGameProgram.Instance.OnInitializeSceneInterface(sceneInterface); - - // Create the frame buffers used for rendering (sized to the backbuffer) and - // assign them to the ResourceManager so we don't have to worry about cleanup. - frameBuffers = new FrameBuffers(DetailPreference.High, DetailPreference.High); - sceneInterface.ResourceManager.AssignOwnership(frameBuffers); - } - - /// - /// Called when the program switches to the screen. This is - /// where screen assets are loaded and resources are created. - /// - public override void LoadContent() - { - // Load the content repository, which stores all assets imported via the editor. - // This must be loaded before any other assets. - contentRepository = BaseGameProgram.Instance.ContentDatabase.Load("ContentRepository"); - - // Load the scene and add it to the managers. - Scene scene = BaseGameProgram.Instance.ContentDatabase.Load("Scene"); - sceneInterface.Submit(scene); - - // Load the scene settings. - environment = BaseGameProgram.Instance.ContentDatabase.Load("SceneEnvironment"); - - // Apply the user preferences (example - not required). - sceneInterface.ApplyPreferences(BaseGameProgram.Instance.GetSystemPreferences()); - } - - /// - /// Called when the program switches away from this screen - /// and is where screen resources are disposed. - /// - public override void UnloadContent() - { - sceneInterface.Unload(); - environment = null; - contentRepository = null; - } - - /// - /// Allows the screen to run logic such as updating the world, - /// checking for collisions, gathering input, and playing audio. - /// - /// Provides the time elapsed since the last screen draw / update. - public override void Update(GameTime gameTime) - { - GraphicsDevice graphics = Platform.Instance.GraphicsDevice; - InputDevice input = Platform.Instance.InputDevice; - - if (input.KeyboardState.KeyPressed(Keys.Escape) && !SunBurnEditorClient.Instance.EditorOpen) - { - Platform.Instance.RunAsGameLoop.Exit(); - return; - } - - // Update the helper with the latest player input. - inputHelper.Update(); - - // Move each character controller. - ICharacterController chasecontroller = null; - foreach (ICharacterController controller in PhysicsMoveCharacterController.CharacterControllers) - { - inputHelper.HandleCharacterControllerInput(gameTime, controller); - - // Chase camera follows player one if available. - if (controller.PlayerNumber == 0) - chasecontroller = controller; - } - - // Update the scene interface. - sceneInterface.Update(gameTime); - - // Set the view matrix. - if (chasecontroller != null) - view = inputHelper.GetCharacterControllerView(chasecontroller); - else - view = inputHelper.GetFreeCameraView(gameTime); - - // Set the projection matrix. - projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(70.0f), - graphics.Viewport.AspectRatio, 0.1f, environment.VisibleDistance); - } - - /// - /// Allows the screen to render. - /// - /// Provides the time elapsed since the last screen draw / update. - public override void Draw(GameTime gameTime) - { - // Render the scene. - sceneState.BeginFrameRendering(view, projection, gameTime, environment, frameBuffers, true); - sceneInterface.BeginFrameRendering(sceneState); - - // Add custom rendering that should occur before the scene is rendered. - - sceneInterface.RenderManager.Render(); - - // Add custom rendering that should occur after the scene is rendered. - - sceneInterface.EndFrameRendering(); - sceneState.EndFrameRendering(); - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/ViewModels/BasicUIViewModel.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/ViewModels/BasicUIViewModel.cs deleted file mode 100644 index 242f0d7..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/ViewModels/BasicUIViewModel.cs +++ /dev/null @@ -1,167 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using EmptyKeys.UserInterface; -using EmptyKeys.UserInterface.Input; -using EmptyKeys.UserInterface.Mvvm; - -namespace GameLibrary.ViewModels -{ - /// - /// Example of MVVM View Model - /// - public class BasicUIViewModel : ViewModelBase - { - private string buttonResult; - private string textBoxText; - private float sliderValue; - private int selectedIndex; - private ExampleClass selectedItem; - - /// - /// Gets or sets the button command. - /// - /// - /// The button command. - /// - public ICommand ButtonCommand - { - get; - private set; - } - - /// - /// Gets or sets the open message box. - /// - /// - /// The open message box. - /// - public ICommand OpenMessageBox - { - get; - private set; - } - - /// - /// Gets or sets the button result. - /// - /// - /// The button result. - /// - public string ButtonResult - { - get { return buttonResult; } - set { SetProperty(ref buttonResult, value); } - } - - /// - /// Gets or sets the text box text. - /// - /// - /// The text box text. - /// - public string TextBoxText - { - get { return textBoxText; } - set { SetProperty(ref textBoxText, value); } - } - - /// - /// Gets or sets the slider value. - /// - /// - /// The slider value. - /// - public float SliderValue - { - get { return sliderValue; } - set { SetProperty(ref sliderValue, value); } - } - - /// - /// Gets the ListBox source. - /// - /// - /// The ListBox source. - /// - public List ComboBoxSource - { - get; - private set; - } - - /// - /// Gets or sets the index of the selected. - /// - /// - /// The index of the selected. - /// - public int SelectedIndex - { - get { return this.selectedIndex; } - set - { - SetProperty(ref this.selectedIndex, value); - } - } - - /// - /// Gets or sets the selected item. - /// - /// - /// The selected item. - /// - public ExampleClass SelectedItem - { - get { return selectedItem; } - set { SetProperty(ref this.selectedItem, value); } - } - - /// - /// Initializes a new instance of the class. - /// - public BasicUIViewModel() - { - ButtonCommand = new RelayCommand(new Action(ButtonClick)); - ComboBoxSource = new List(); - ComboBoxSource.Add(new ExampleClass { Name = "Item 1" }); - ComboBoxSource.Add(new ExampleClass { Name = "Item 2" }); - ComboBoxSource.Add(new ExampleClass { Name = "Item 3" }); - ComboBoxSource.Add(new ExampleClass { Name = "Item 4" }); - ComboBoxSource.Add(new ExampleClass { Name = "Item 5" }); - - SelectedIndex = 1; - SelectedItem = ComboBoxSource[3]; - - OpenMessageBox = new RelayCommand(new Action(OnOpenMessageBox)); - } - - private void OnOpenMessageBox(object obj) - { - var messageBoxService = base.GetService(); - if (messageBoxService != null) - { - RelayCommand result = new RelayCommand(new Action(OnMessageBoxResult)); - messageBoxService.Show("Message box text", "Caption", MessageBoxButton.YesNoCancel, result, false); - } - } - - private void OnMessageBoxResult(object obj) - { - if (obj != null) - { - ButtonResult = obj.ToString(); - } - } - - private void ButtonClick(object obj) - { - if (obj != null) - { - ButtonResult = obj.ToString(); - } - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/ViewModels/ExampleClass.cs b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/ViewModels/ExampleClass.cs deleted file mode 100644 index 2b287a7..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/ViewModels/ExampleClass.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using EmptyKeys.UserInterface.Mvvm; - -namespace GameLibrary.ViewModels -{ - /// - /// Example of model class - /// - public class ExampleClass : ViewModelBase - { - private string name; - - /// - /// Gets or sets the name. - /// - /// - /// The name. - /// - public string Name - { - get { return name; } - set { SetProperty(ref name, value); } - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/license.txt b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/license.txt deleted file mode 100644 index f102d92..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/license.txt +++ /dev/null @@ -1,22 +0,0 @@ - -The MIT License (MIT) - -Copyright (c) 2015 Empty Keys, Filip DuÅ¡ek, www.emptykeys.com - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/packages.config b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/packages.config deleted file mode 100644 index 176c0d9..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/readme.htm b/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/readme.htm deleted file mode 100644 index 5cd242b..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/GameLibrary/readme.htm +++ /dev/null @@ -1,167 +0,0 @@ - - - New SunBurn 2.0 Game Engine! - - - - - - - -
- - -

SunBurn Starter Kit

- -

SunBurn provides several project templates for Visual Studio, which makes it possible to - create new projects and add additional platforms manually (read more).

- -

The templates are named:

- -

-

    -
  • "SunBurn - Game Solution" - creates the initial Visual Studio solution necessary for - adding additional platforms. The solution contains a platform independent Game Library and a Content Project.
  • -
  • "SunBurn - <platform name> Release" - adds an additional project to the solution, - which targets the specified platform.
  • -
-

- -

Or automatically create projects using the SunBurn Developer Hub

- -

Also see the full SunBurn documentation.

- - - - - - -

Adding Platforms

- -

Select "File -> Add -> New Project". - In the New Project dialog browse to the SunBurn folder that matches the SunBurn version - the project uses. Then select the "SunBurn - <platform name> Release" - item, change the project name if needed, and press Ok.

- -

Use the following steps to - wire-up the new release platform project (see "Adding an Additional Platform").

- - - - - - -

Looking for More?

- -

Make sure to check out the latest SunBurn examples, which cover many development - techniques and include full project source and assets to help kick-start your projects!

- - - -
- - - diff --git a/BasicUI_SunBurn/BasicUI_Pro/Linux/BasicUI_Pro_Linux.csproj b/BasicUI_SunBurn/BasicUI_Pro/Linux/BasicUI_Pro_Linux.csproj deleted file mode 100644 index 1fa749a..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/Linux/BasicUI_Pro_Linux.csproj +++ /dev/null @@ -1,81 +0,0 @@ - - - - 2.1.11 - GL2 - Pro - Debug - x86 - 8.0.30703 - 2.0 - {E4B79D13-A400-4C26-8537-7125782CDB2E} - WinExe - Properties - Linux - BasicUI_Pro-Linux - v4.5 - - - 512 - true - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - - - - - - - - - - - - - - - PreserveNewest - - - - - - - - {19341067-09AA-4F08-B237-C1EBB6D96C94} - GameLibrary - - - GameContent.contentproj - - - \ No newline at end of file diff --git a/BasicUI_SunBurn/BasicUI_Pro/Linux/GameContent.xdb b/BasicUI_SunBurn/BasicUI_Pro/Linux/GameContent.xdb deleted file mode 100644 index 0a91f7f..0000000 Binary files a/BasicUI_SunBurn/BasicUI_Pro/Linux/GameContent.xdb and /dev/null differ diff --git a/BasicUI_SunBurn/BasicUI_Pro/Linux/Program.cs b/BasicUI_SunBurn/BasicUI_Pro/Linux/Program.cs deleted file mode 100644 index 4e64280..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/Linux/Program.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using GameLibrary; -using SynapseGaming.SunBurn.Framework.Content; -using SynapseGaming.SunBurn.Framework.Core; -using SynapseGaming.SunBurn.Framework.Graphics; -using SynapseGaming.SunBurn.Framework.Models; -using SynapseGaming.SunBurn.Engine.Core; - -using TargetPlatform = SynapseGaming.SunBurn.Framework.Driver.GL2.GL2Platform; - - -namespace Linux -{ - /// - /// Entry point for games utilizing the built-in game loop - /// (via Platform.RunAsGameLoop.Run()). - /// - /// The platform layer automatically initializes itself and - /// any needed platform resources (like a window, graphics device, ...). - /// - public class LinuxProgram : BaseGameProgram - { - /// - /// Main entry point for the game / application. - /// - [STAThread] - private static void Main() - { - using (Platform platform = new TargetPlatform(GraphicsProfile.DirectX9_3_SM3)) - platform.RunAsGameLoop.Run(); - } - - public override SystemPreferences GetSystemPreferences() - { - // Create or load the platform preferences. - SystemPreferences preferences = new SystemPreferences(); - - preferences.EffectDetail = DetailPreference.High; - preferences.LightingDetail = DetailPreference.High; - preferences.ShadowDetail = DetailPreference.High; - preferences.ShadowQuality = 1.0f; - preferences.PostProcessingDetail = DetailPreference.High; - preferences.TextureSampling = SamplingPreference.Anisotropic; - preferences.MaxAnisotropy = 4; - - return preferences; - } - - public override void OnInitializeSceneInterface(SceneInterface sceneInterface) - { -#if DEBUG - SynapseGaming.SunBurn.Engine.Editor.SunBurnEditor editor = new SynapseGaming.SunBurn.Engine.Editor.SunBurnEditor(sceneInterface, true); - sceneInterface.AddManager(editor); -#endif - } - - /// - /// Set and modify any platform specific presentation information. - /// - public override void OnPreparePresentationParameters(PresentationParameters parameters) - { - parameters.BackBufferWidth = 1280; - parameters.BackBufferHeight = 720; - parameters.DepthStencilFormat = DepthFormat.Depth24Stencil8; - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/Linux/Properties/AssemblyInfo.cs b/BasicUI_SunBurn/BasicUI_Pro/Linux/Properties/AssemblyInfo.cs deleted file mode 100644 index 22af02e..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/Linux/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("BasicUI_Pro Linux")] -[assembly: AssemblyProduct("BasicUI_Pro")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyCompany("Company Name")] -[assembly: AssemblyCopyright("Copyright © Company Name 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// On Windows, the following GUID is for the ID of the typelib if this -// project is exposed to COM. On other platforms, it unique identifies the -// title storage container when deploying this assembly to the device. -[assembly: Guid("E4B79D13-A400-4C26-8537-7125782CDB2E")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/BasicUI_SunBurn/BasicUI_Pro/Linux/app.config b/BasicUI_SunBurn/BasicUI_Pro/Linux/app.config deleted file mode 100644 index 51278a4..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/Linux/app.config +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/BasicUI_SunBurn/BasicUI_Pro/Linux/readme.htm b/BasicUI_SunBurn/BasicUI_Pro/Linux/readme.htm deleted file mode 100644 index 5cd242b..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/Linux/readme.htm +++ /dev/null @@ -1,167 +0,0 @@ - - - New SunBurn 2.0 Game Engine! - - - - - - - -
- - -

SunBurn Starter Kit

- -

SunBurn provides several project templates for Visual Studio, which makes it possible to - create new projects and add additional platforms manually (read more).

- -

The templates are named:

- -

-

    -
  • "SunBurn - Game Solution" - creates the initial Visual Studio solution necessary for - adding additional platforms. The solution contains a platform independent Game Library and a Content Project.
  • -
  • "SunBurn - <platform name> Release" - adds an additional project to the solution, - which targets the specified platform.
  • -
-

- -

Or automatically create projects using the SunBurn Developer Hub

- -

Also see the full SunBurn documentation.

- - - - - - -

Adding Platforms

- -

Select "File -> Add -> New Project". - In the New Project dialog browse to the SunBurn folder that matches the SunBurn version - the project uses. Then select the "SunBurn - <platform name> Release" - item, change the project name if needed, and press Ok.

- -

Use the following steps to - wire-up the new release platform project (see "Adding an Additional Platform").

- - - - - - -

Looking for More?

- -

Make sure to check out the latest SunBurn examples, which cover many development - techniques and include full project source and assets to help kick-start your projects!

- - - -
- - - diff --git a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/BasicUI_Pro_Mac.csproj b/BasicUI_SunBurn/BasicUI_Pro/MacOSX/BasicUI_Pro_Mac.csproj deleted file mode 100644 index daa5f75..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/BasicUI_Pro_Mac.csproj +++ /dev/null @@ -1,81 +0,0 @@ - - - - 2.1.11 - GL2 - Pro - Debug - x86 - 8.0.30703 - 2.0 - {6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA} - WinExe - Properties - MacOSX - BasicUI_Pro-MacOSX - v4.5 - - - 512 - true - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - - - - - - - - - - - - - - - PreserveNewest - - - - - - - - {19341067-09AA-4F08-B237-C1EBB6D96C94} - GameLibrary - - - GameContent.contentproj - - - \ No newline at end of file diff --git a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/GameContent.xdb b/BasicUI_SunBurn/BasicUI_Pro/MacOSX/GameContent.xdb deleted file mode 100644 index 0a91f7f..0000000 Binary files a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/GameContent.xdb and /dev/null differ diff --git a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/Program.cs b/BasicUI_SunBurn/BasicUI_Pro/MacOSX/Program.cs deleted file mode 100644 index a711c50..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/Program.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using GameLibrary; -using SynapseGaming.SunBurn.Framework.Content; -using SynapseGaming.SunBurn.Framework.Core; -using SynapseGaming.SunBurn.Framework.Graphics; -using SynapseGaming.SunBurn.Framework.Models; -using SynapseGaming.SunBurn.Engine.Core; - -using TargetPlatform = SynapseGaming.SunBurn.Framework.Driver.GL2.GL2Platform; - - -namespace MacOSX -{ - /// - /// Entry point for games utilizing the built-in game loop - /// (via Platform.RunAsGameLoop.Run()). - /// - /// The platform layer automatically initializes itself and - /// any needed platform resources (like a window, graphics device, ...). - /// - public class MacOSXProgram : BaseGameProgram - { - /// - /// Main entry point for the game / application. - /// - [STAThread] - private static void Main() - { - using (Platform platform = new TargetPlatform(GraphicsProfile.DirectX9_3_SM3)) - platform.RunAsGameLoop.Run(); - } - - public override SystemPreferences GetSystemPreferences() - { - // Create or load the platform preferences. - SystemPreferences preferences = new SystemPreferences(); - - preferences.EffectDetail = DetailPreference.High; - preferences.LightingDetail = DetailPreference.High; - preferences.ShadowDetail = DetailPreference.High; - preferences.ShadowQuality = 1.0f; - preferences.PostProcessingDetail = DetailPreference.High; - preferences.TextureSampling = SamplingPreference.Anisotropic; - preferences.MaxAnisotropy = 4; - - return preferences; - } - - public override void OnInitializeSceneInterface(SceneInterface sceneInterface) - { -#if DEBUG - SynapseGaming.SunBurn.Engine.Editor.SunBurnEditor editor = new SynapseGaming.SunBurn.Engine.Editor.SunBurnEditor(sceneInterface, true); - sceneInterface.AddManager(editor); -#endif - } - - /// - /// Set and modify any platform specific presentation information. - /// - public override void OnPreparePresentationParameters(PresentationParameters parameters) - { - parameters.BackBufferWidth = 1280; - parameters.BackBufferHeight = 720; - parameters.DepthStencilFormat = DepthFormat.Depth24Stencil8; - } - } -} diff --git a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/Properties/AssemblyInfo.cs b/BasicUI_SunBurn/BasicUI_Pro/MacOSX/Properties/AssemblyInfo.cs deleted file mode 100644 index 4330940..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("BasicUI_Pro Mac OS X")] -[assembly: AssemblyProduct("BasicUI_Pro")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyCompany("Company Name")] -[assembly: AssemblyCopyright("Copyright © Company Name 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// On Windows, the following GUID is for the ID of the typelib if this -// project is exposed to COM. On other platforms, it unique identifies the -// title storage container when deploying this assembly to the device. -[assembly: Guid("6F5C2BB0-C96C-413A-A66C-25C37FE0E5FA")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/app.config b/BasicUI_SunBurn/BasicUI_Pro/MacOSX/app.config deleted file mode 100644 index 51278a4..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/app.config +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/readme.htm b/BasicUI_SunBurn/BasicUI_Pro/MacOSX/readme.htm deleted file mode 100644 index 5cd242b..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/MacOSX/readme.htm +++ /dev/null @@ -1,167 +0,0 @@ - - - New SunBurn 2.0 Game Engine! - - - - - - - -
- - -

SunBurn Starter Kit

- -

SunBurn provides several project templates for Visual Studio, which makes it possible to - create new projects and add additional platforms manually (read more).

- -

The templates are named:

- -

-

    -
  • "SunBurn - Game Solution" - creates the initial Visual Studio solution necessary for - adding additional platforms. The solution contains a platform independent Game Library and a Content Project.
  • -
  • "SunBurn - <platform name> Release" - adds an additional project to the solution, - which targets the specified platform.
  • -
-

- -

Or automatically create projects using the SunBurn Developer Hub

- -

Also see the full SunBurn documentation.

- - - - - - -

Adding Platforms

- -

Select "File -> Add -> New Project". - In the New Project dialog browse to the SunBurn folder that matches the SunBurn version - the project uses. Then select the "SunBurn - <platform name> Release" - item, change the project name if needed, and press Ok.

- -

Use the following steps to - wire-up the new release platform project (see "Adding an Additional Platform").

- - - - - - -

Looking for More?

- -

Make sure to check out the latest SunBurn examples, which cover many development - techniques and include full project source and assets to help kick-start your projects!

- - - -
- - - diff --git a/BasicUI_SunBurn/BasicUI_Pro/UserInterface/BasicUI.xaml b/BasicUI_SunBurn/BasicUI_Pro/UserInterface/BasicUI.xaml deleted file mode 100644 index 919ae3b..0000000 --- a/BasicUI_SunBurn/BasicUI_Pro/UserInterface/BasicUI.xaml +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -