├── console ├── Packages │ ├── com.cronyx.console │ │ ├── README.md │ │ ├── Runtime │ │ │ ├── Assets │ │ │ │ ├── Scrollbar.png │ │ │ │ ├── EventSystem.prefab.meta │ │ │ │ ├── TextEntry.prefab.meta │ │ │ │ ├── Resources.meta │ │ │ │ ├── Resources │ │ │ │ │ ├── Developer Console.meta │ │ │ │ │ └── Developer Console │ │ │ │ │ │ ├── ConsoleView.prefab.meta │ │ │ │ │ │ └── CourierPrimeAsset.asset.meta │ │ │ │ ├── EventSystem.prefab │ │ │ │ └── Scrollbar.png.meta │ │ │ ├── Fonts │ │ │ │ ├── CourierPrime-Regular.ttf │ │ │ │ └── CourierPrime-Regular.ttf.meta │ │ │ ├── Fonts.meta │ │ │ ├── Assets.meta │ │ │ ├── Scripts.meta │ │ │ ├── Scripts │ │ │ │ ├── UI.meta │ │ │ │ ├── Parsing.meta │ │ │ │ ├── Commands.meta │ │ │ │ ├── Commands │ │ │ │ │ ├── Shell.meta │ │ │ │ │ ├── CommandData.cs.meta │ │ │ │ │ ├── DynamicCommand.cs.meta │ │ │ │ │ ├── IConsoleCommand.cs.meta │ │ │ │ │ ├── MethodCommand.cs.meta │ │ │ │ │ ├── VerbCommand.cs.meta │ │ │ │ │ ├── CommandAttribute.cs.meta │ │ │ │ │ ├── EssentialAttribute.cs.meta │ │ │ │ │ ├── Shell │ │ │ │ │ │ ├── FileCommands.cs.meta │ │ │ │ │ │ ├── HelpCommand.cs.meta │ │ │ │ │ │ └── HelpCommand.cs │ │ │ │ │ ├── EssentialAttribute.cs │ │ │ │ │ ├── DynamicCommand.cs │ │ │ │ │ ├── IConsoleCommand.cs │ │ │ │ │ ├── CommandAttribute.cs │ │ │ │ │ ├── MethodCommand.cs │ │ │ │ │ └── CommandData.cs │ │ │ │ ├── Parsing │ │ │ │ │ ├── Parsers.meta │ │ │ │ │ ├── Parser.cs.meta │ │ │ │ │ ├── ArgumentInput.cs.meta │ │ │ │ │ ├── CompoundParser.cs.meta │ │ │ │ │ ├── ParameterParser.cs.meta │ │ │ │ │ ├── SwitchAttribute.cs.meta │ │ │ │ │ ├── CompoundParserAutoGen.cs.meta │ │ │ │ │ ├── ParameterAttribute.cs.meta │ │ │ │ │ ├── Parsers │ │ │ │ │ │ ├── BoolParser.cs.meta │ │ │ │ │ │ ├── CharParser.cs.meta │ │ │ │ │ │ ├── StringParser.cs.meta │ │ │ │ │ │ ├── UnityParsers.cs.meta │ │ │ │ │ │ ├── CollectionParsers.cs.meta │ │ │ │ │ │ ├── DictionaryParser.cs.meta │ │ │ │ │ │ ├── IEnumerableParser.cs.meta │ │ │ │ │ │ ├── KeyValuePairParser.cs.meta │ │ │ │ │ │ ├── NullableParser.cs.meta │ │ │ │ │ │ ├── NumericParsers.cs.meta │ │ │ │ │ │ ├── TupleParserUtils.cs.meta │ │ │ │ │ │ ├── NullableParser.cs │ │ │ │ │ │ ├── CharParser.cs │ │ │ │ │ │ ├── KeyValuePairParser.cs │ │ │ │ │ │ ├── BoolParser.cs │ │ │ │ │ │ ├── StringParser.cs │ │ │ │ │ │ ├── DictionaryParser.cs │ │ │ │ │ │ ├── UnityParsers.cs │ │ │ │ │ │ ├── NumericParsers.cs │ │ │ │ │ │ ├── IEnumerableParser.cs │ │ │ │ │ │ └── CollectionParsers.cs │ │ │ │ │ ├── PositionalAttribute.cs.meta │ │ │ │ │ ├── ParserNotFoundException.cs.meta │ │ │ │ │ ├── ParserNotFoundException.cs │ │ │ │ │ ├── PositionalAttribute.cs │ │ │ │ │ ├── SwitchAttribute.cs │ │ │ │ │ ├── ArgumentInput.cs │ │ │ │ │ └── ParameterParser.cs │ │ │ │ ├── Logger.cs.meta │ │ │ │ ├── UI │ │ │ │ │ ├── ConsoleView.cs.meta │ │ │ │ │ ├── TextEntry.cs.meta │ │ │ │ │ ├── ConsoleEntry.cs.meta │ │ │ │ │ ├── EventScrollRect.cs.meta │ │ │ │ │ ├── ViewSettings.cs.meta │ │ │ │ │ ├── TextEntry.cs │ │ │ │ │ ├── ViewSettings.cs │ │ │ │ │ ├── ConsoleEntry.cs │ │ │ │ │ └── EventScrollRect.cs │ │ │ │ ├── ConsoleSettings.cs.meta │ │ │ │ ├── ConsoleUtilities.cs.meta │ │ │ │ ├── DeveloperConsole.cs.meta │ │ │ │ ├── DeveloperConsole_GenericRegistration.cs.meta │ │ │ │ └── Logger.cs │ │ │ ├── Cronyx.Console.Runtime.asmdef.meta │ │ │ └── Cronyx.Console.Runtime.asmdef │ │ ├── LICENSE.md.meta │ │ ├── README.md.meta │ │ ├── CHANGELOG.md.meta │ │ ├── package.json.meta │ │ ├── Editor.meta │ │ ├── Runtime.meta │ │ ├── Tests.meta │ │ ├── Third Party Notices.md.meta │ │ ├── Tests │ │ │ ├── Runtime.meta │ │ │ └── Runtime │ │ │ │ ├── Assets.meta │ │ │ │ ├── Scripts.meta │ │ │ │ ├── Assets │ │ │ │ ├── Resources.meta │ │ │ │ └── Resources │ │ │ │ │ ├── Developer Console.meta │ │ │ │ │ └── Developer Console │ │ │ │ │ ├── Tests.meta │ │ │ │ │ └── Tests │ │ │ │ │ └── ScreenshotEntry.prefab.meta │ │ │ │ ├── Cronyx.Console.Tests.asmdef.meta │ │ │ │ ├── Scripts │ │ │ │ ├── ScreenshotEntry.cs.meta │ │ │ │ └── ScreenshotEntry.cs │ │ │ │ └── Cronyx.Console.Tests.asmdef │ │ ├── Editor │ │ │ ├── Cronyx.Console.Editor.asmdef.meta │ │ │ ├── SettingsEditor.cs.meta │ │ │ ├── SettingsWindow.cs.meta │ │ │ ├── SettingsEditor.cs │ │ │ └── Cronyx.Console.Editor.asmdef │ │ ├── package.json │ │ ├── Third Party Notices.md │ │ ├── LICENSE.md │ │ └── CHANGELOG.md │ └── manifest.json ├── Assets │ ├── TextMesh Pro │ │ ├── Resources │ │ │ ├── LineBreaking Leading Characters.txt │ │ │ ├── LineBreaking Following Characters.txt │ │ │ ├── TMP Settings.asset.meta │ │ │ ├── Sprite Assets │ │ │ │ └── EmojiOne.asset.meta │ │ │ ├── LineBreaking Following Characters.txt.meta │ │ │ ├── LineBreaking Leading Characters.txt.meta │ │ │ ├── Sprite Assets.meta │ │ │ ├── Style Sheets.meta │ │ │ ├── Fonts & Materials.meta │ │ │ ├── Fonts & Materials │ │ │ │ ├── LiberationSans SDF.asset.meta │ │ │ │ ├── LiberationSans SDF - Drop Shadow.mat.meta │ │ │ │ ├── LiberationSans SDF - Fallback.asset.meta │ │ │ │ ├── LiberationSans SDF - Outline.mat.meta │ │ │ │ ├── LiberationSans SDF - Outline.mat │ │ │ │ └── LiberationSans SDF - Drop Shadow.mat │ │ │ ├── Style Sheets │ │ │ │ └── Default Style Sheet.asset.meta │ │ │ └── TMP Settings.asset │ │ ├── Sprites │ │ │ ├── EmojiOne.png │ │ │ ├── EmojiOne Attribution.txt │ │ │ ├── EmojiOne Attribution.txt.meta │ │ │ ├── EmojiOne.json.meta │ │ │ └── EmojiOne.json │ │ ├── Fonts │ │ │ ├── LiberationSans.ttf │ │ │ ├── LiberationSans - OFL.txt.meta │ │ │ ├── LiberationSans.ttf.meta │ │ │ └── LiberationSans - OFL.txt │ │ ├── Documentation │ │ │ ├── TextMesh Pro User Guide 2016.pdf │ │ │ └── TextMesh Pro User Guide 2016.pdf.meta │ │ ├── Fonts.meta │ │ ├── Resources.meta │ │ ├── Shaders.meta │ │ ├── Sprites.meta │ │ ├── Documentation.meta │ │ └── Shaders │ │ │ ├── TMPro.cginc.meta │ │ │ ├── TMP_Bitmap.shader.meta │ │ │ ├── TMP_SDF.shader.meta │ │ │ ├── TMP_Sprite.shader.meta │ │ │ ├── TMP_SDF Overlay.shader.meta │ │ │ ├── TMP_SDF SSD.shader.meta │ │ │ ├── TMP_SDF-Mobile.shader.meta │ │ │ ├── TMP_SDF-Surface.shader.meta │ │ │ ├── TMPro_Mobile.cginc.meta │ │ │ ├── TMPro_Properties.cginc.meta │ │ │ ├── TMPro_Surface.cginc.meta │ │ │ ├── TMP_Bitmap-Mobile.shader.meta │ │ │ ├── TMP_SDF-Mobile SSD.shader.meta │ │ │ ├── TMP_Bitmap-Custom-Atlas.shader.meta │ │ │ ├── TMP_SDF-Mobile Masking.shader.meta │ │ │ ├── TMP_SDF-Mobile Overlay.shader.meta │ │ │ ├── TMP_SDF-Surface-Mobile.shader.meta │ │ │ ├── TMPro.cginc │ │ │ ├── TMP_Sprite.shader │ │ │ ├── TMPro_Properties.cginc │ │ │ ├── TMP_SDF-Mobile SSD.shader │ │ │ ├── TMPro_Surface.cginc │ │ │ ├── TMP_Bitmap.shader │ │ │ ├── TMP_Bitmap-Custom-Atlas.shader │ │ │ ├── TMP_SDF-Surface-Mobile.shader │ │ │ └── TMP_Bitmap-Mobile.shader │ ├── Scenes │ │ ├── SampleScene.unity.meta │ │ ├── SampleSceneSettings.lighting.meta │ │ └── SampleSceneSettings.lighting │ ├── Scenes.meta │ ├── TextMesh Pro.meta │ ├── Developer Console.meta │ ├── Developer Console │ │ ├── Resources.meta │ │ └── Resources │ │ │ ├── ConsoleSettings.asset.meta │ │ │ └── ConsoleSettings.asset │ └── .devconsole │ │ └── Resources │ │ ├── ConsoleSettings.asset.meta │ │ └── ConsoleSettings.asset ├── ProjectSettings │ ├── ProjectVersion.txt │ ├── ClusterInputManager.asset │ ├── PresetManager.asset │ ├── EditorBuildSettings.asset │ ├── XRSettings.asset │ ├── VersionControlSettings.asset │ ├── TimeManager.asset │ ├── VFXManager.asset │ ├── AudioManager.asset │ ├── TagManager.asset │ ├── UnityConnectSettings.asset │ ├── PackageManagerSettings.asset │ ├── EditorSettings.asset │ ├── DynamicsManager.asset │ ├── NavMeshAreas.asset │ ├── Physics2DSettings.asset │ └── GraphicsSettings.asset ├── .vsconfig ├── UserSettings │ └── EditorUserSettings.asset └── .gitignore ├── docs └── images │ ├── TarIcon.PNG │ ├── Git_logo.PNG │ ├── CourierPrime.PNG │ ├── Git_logo_64.PNG │ ├── OpenUPM_logo.PNG │ ├── Screenshot.PNG │ ├── ConsoleEntry │ ├── Root.PNG │ ├── Root.psd │ ├── Caption.PNG │ ├── Caption.psd │ ├── Hierarchy.PNG │ ├── Hierarchy.psd │ ├── Project.PNG │ ├── RawImage.PNG │ ├── RawImage.psd │ ├── Screenshot.PNG │ └── ScreenshotConsole.PNG │ ├── OpenUPM_logo_64.PNG │ ├── Install_UPMGit_URL.PNG │ └── Install_UPMTarball.PNG ├── .gitignore ├── codegen ├── __pycache__ │ └── codegen.cpython-37.pyc ├── codegen.py └── registerlambdas.py ├── .vscode └── launch.json ├── .github ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md └── workflows │ └── release.yml └── LICENSE /console/Packages/com.cronyx.console/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/TarIcon.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/TarIcon.PNG -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt: -------------------------------------------------------------------------------- 1 | ([{〔〈《「『【〘〖〝‘“⦅«$—…‥〳〴〵\[({£¥"々〇$¥₩ # -------------------------------------------------------------------------------- /docs/images/Git_logo.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/Git_logo.PNG -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /[Ll]ogs/ 7 | /[Mm]emoryCaptures/ -------------------------------------------------------------------------------- /docs/images/CourierPrime.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/CourierPrime.PNG -------------------------------------------------------------------------------- /docs/images/Git_logo_64.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/Git_logo_64.PNG -------------------------------------------------------------------------------- /docs/images/OpenUPM_logo.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/OpenUPM_logo.PNG -------------------------------------------------------------------------------- /docs/images/Screenshot.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/Screenshot.PNG -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/Root.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/Root.PNG -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/Root.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/Root.psd -------------------------------------------------------------------------------- /docs/images/OpenUPM_logo_64.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/OpenUPM_logo_64.PNG -------------------------------------------------------------------------------- /console/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2020.2.1f1 2 | m_EditorVersionWithRevision: 2020.2.1f1 (270dd8c3da1c) 3 | -------------------------------------------------------------------------------- /docs/images/Install_UPMGit_URL.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/Install_UPMGit_URL.PNG -------------------------------------------------------------------------------- /docs/images/Install_UPMTarball.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/Install_UPMTarball.PNG -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/Caption.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/Caption.PNG -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/Caption.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/Caption.psd -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/Hierarchy.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/Hierarchy.PNG -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/Hierarchy.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/Hierarchy.psd -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/Project.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/Project.PNG -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/RawImage.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/RawImage.PNG -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/RawImage.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/RawImage.psd -------------------------------------------------------------------------------- /console/.vsconfig: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0", 3 | "components": [ 4 | "Microsoft.VisualStudio.Workload.ManagedGame" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/Screenshot.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/Screenshot.PNG -------------------------------------------------------------------------------- /codegen/__pycache__/codegen.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/codegen/__pycache__/codegen.cpython-37.pyc -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Sprites/EmojiOne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/console/Assets/TextMesh Pro/Sprites/EmojiOne.png -------------------------------------------------------------------------------- /docs/images/ConsoleEntry/ScreenshotConsole.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/docs/images/ConsoleEntry/ScreenshotConsole.PNG -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Fonts/LiberationSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/console/Assets/TextMesh Pro/Fonts/LiberationSans.ttf -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt: -------------------------------------------------------------------------------- 1 | )]}〕〉》」』】〙〗〟’”⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、%,.:;。!?]):;=}¢°"†‡℃〆%,. -------------------------------------------------------------------------------- /console/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets/Scrollbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/console/Packages/com.cronyx.console/Runtime/Assets/Scrollbar.png -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/console/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Fonts/CourierPrime-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cronyxllc/DeveloperConsole/HEAD/console/Packages/com.cronyx.console/Runtime/Fonts/CourierPrime-Regular.ttf -------------------------------------------------------------------------------- /console/ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /console/Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe8c2815cd5d3ff46bfa1cbce65e8445 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f54d1bd14bd3ca042bd867b519fee8cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/LICENSE.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a64a9628a5d5cca458606487f0518ff9 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2622b22c157970c4ea75a29a31f4dd3d 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Assets/Developer Console.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26fa28528f532b3438f82ca3c25f5b92 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ab70aee4d56447429c680537fbf93ed 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5c8485ed1ad250478f87f95a074fca7 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 243e06394e614e5d99fab26083b707fa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9f693669af91aa45ad615fc681ed29f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0603b6d5186471b96c778c3949c7ce2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16e5d904ab1c7e345a41c2a5a8b68422 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /console/Assets/Developer Console/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9115c6ae0420b6040a1e684b82a61c93 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Documentation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e7e8f5a82a3a134e91c54efd2274ea9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt: -------------------------------------------------------------------------------- 1 | This sample of beautiful emojis are provided by EmojiOne https://www.emojione.com/ 2 | 3 | Please visit their website to view the complete set of their emojis and review their licensing terms. -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 381dcb09d5029d14897e55f98031fca5 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 88d15db7e65d73340b5da6b69b6d27f8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f7fa8ad0a587424e83cb0790f56d486 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37f2f991cf883734fb4700d177f9fa21 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Third Party Notices.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28df6ef55e874c549a09f329ad455b1e 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets/EventSystem.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9047cea789388641b520920b7bbfae2 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets/TextEntry.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca98bb70fe69c344b84aebd865732b92 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00ed5da9713461845932738cd5b7977d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ba22f14552d052429edecc34c2a7129 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b8d251f9af63b746bf2f7ffe00ebb9b 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Sprites/EmojiOne.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f05276190cf498a8153f6cbe761d4e6 3 | timeCreated: 1480316860 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70f5a8f96425c5a469657b52a4f306e4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f00307f540bd8b4e8d13ee8208bef1e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3373ef6e568337040a78d6f694c329c8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36177620397e5544881b8df9c6b4acc5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fd28072f55226f4da170a65a6060c6f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de070f4f1a27bf44093389facb66e9fd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e59c59b81ab47f9b6ec5781fa725d2c 3 | timeCreated: 1484171296 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/TMP Settings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f5b5dff67a942289a9defa416b206f3 3 | timeCreated: 1436653997 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Editor/Cronyx.Console.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5651ec1d850cf54885cebe61fb17dc8 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a27d06776b0824046a637935aaa8573f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Cronyx.Console.Runtime.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 862302f10f30f01468b830cb6ed47383 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 189e15b02c77b4446b5b71c860e5fe86 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/Shell.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d558981c1a5825e46893b5c43703d54d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b12b38191cf1cb6458a3d87142c0b8e0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81202cea2a206c34090ddf4b9b834d38 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Cronyx.Console.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e2ff445e43cd8f479439c6c7e93373f 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c41005c129ba4d66911b75229fd70b45 3 | timeCreated: 1480316912 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/.devconsole/Resources/ConsoleSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f24cfe3836705a4fbbac598a9ade457 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/Scenes/SampleSceneSettings.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 433a932122de5bc42a115b9ac2af344a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets/Resources/Developer Console.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3909f19692638a846b6cf951c7e9fbb6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets/Resources/Developer Console/ConsoleView.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f62e92b2da11d6245aa9062267615cb7 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Assets/Developer Console/Resources/ConsoleSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a026688581e9944ba8d502bc0e11329 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fade42e8bc714b018fac513c043d323b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d82c1b31c7e74239bff1220585707d2b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Sprite Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 512a49d95c0c4332bdd98131869c23c9 3 | folderAsset: yes 4 | timeCreated: 1441876896 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Style Sheets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4aecb92fff08436c8303b10eab8da368 3 | folderAsset: yes 4 | timeCreated: 1441876950 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Assets/Resources/Developer Console.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48e5b667195329547b2097739e61bf39 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Fonts & Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 731f1baa9d144a9897cb1d341c2092b8 3 | folderAsset: yes 4 | timeCreated: 1442040525 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f586378b4e144a9851e7b34d9b748ee 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f952c082cb03451daed3ee968ac6c63e 3 | timeCreated: 1432805430 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMPro.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 407bc68d299748449bbf7f48ee690f8d 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Assets/Resources/Developer Console/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98f64b8da58dfbd4592700bbc72891d6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Assets/Resources/Developer Console/Tests/ScreenshotEntry.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f03fdb71618ec143bae8a88639ddd18 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e73a58f6e2794ae7b1b7e50b7fb811b0 3 | timeCreated: 1484172806 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e498d1c8094910479dc3e1b768306a4 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79459efec17a4d00a321bdcc27bbc385 3 | timeCreated: 1484172856 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_Bitmap.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 128e987d567d4e2c824d754223b3f3b0 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68e6db2ebdc24f95958faec2be5558d6 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_Sprite.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf81c85f95fe47e1a27f6ae460cf182c 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd89cf5b9246416f84610a006f916af7 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF SSD.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14eb328de4b8eb245bb7cea29e4ac00b 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe393ace9b354375a9cb14cdbbc28be4 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7ada0af4f174f0694ca6a487b8f543d 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMPro_Mobile.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c334973cef89a9840b0b0c507e0377ab 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMPro_Properties.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3997e2241185407d80309a82f9148466 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMPro_Surface.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d930090c0cd643c7b55f19a38538c162 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e3b057af24249748ff873be7fafee47 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile SSD.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8d12adcee749c344b8117cf7c7eb912 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Custom-Atlas.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48bb5f55d8670e349b6e614913f9d910 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile Masking.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc1ede39bf3643ee8e493720e4259791 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a02a7d8c237544f1962732b55a9aebf1 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85187c2149c549c5b33f0cdb02836b17 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets/Resources/Developer Console/CourierPrimeAsset.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 593b92d37a4cd424c873ae9df5ffbc6e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Editor/SettingsEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 201787c6f884dc9418730c9119c52483 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Editor/SettingsWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0220043715efa5f4e9757bf01e00072d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Logger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b9b2ca6e44b4964381cbd5b90ef84d8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c999197c623d5447bab6e19db6af4f2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI/ConsoleView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ec743517f6aa6a4f8a289c4c99c5df0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI/TextEntry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56278052b0404a449b133acb7c7b790f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/ConsoleSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a16d504e2cd05c4ea5b2074ed60cfa6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/ConsoleUtilities.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8890857134bdc804196b7dbeffa2ddf9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/DeveloperConsole.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce0651671d138244097b3e5ff6359301 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI/ConsoleEntry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44069c9e568a84f4ba7959066fa62931 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI/EventScrollRect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 381aca99b47d5e241915c3add26d1ffa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI/ViewSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a904ffcc7dcd4c14ca9c6dd63348ed9d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/CommandData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dd1d613854689b49986c50b0a3034a7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/DynamicCommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4de34cab12a6e041a62006566947ad1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/IConsoleCommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: baaed3386ca17cd4ab68a9bdd89f1a4a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/MethodCommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1607b1f150583a942b4b2070f559d528 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/VerbCommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f238fa4546a7604985c59e01479c8c3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/ArgumentInput.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e56784a12d4e824c8c89deb2f0502a2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/CompoundParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 858f9b1225132e74aa85ac87140e9fee 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/ParameterParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a53956ca86d505045b4b3cac6d6f92c3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/SwitchAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4310c54a626c984eb76e3d7788bd56b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Scripts/ScreenshotEntry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59bac72852a472546b798436a929a729 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/CommandAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b529033725cdbc441917e0ea969a7464 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/EssentialAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b865c2fe6d9f89498787f8882dd7a1d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/Shell/FileCommands.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f15d9356d02ff9e49894748f454f2f39 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/Shell/HelpCommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95b0306e300ab234ab5ff9282cfb4012 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/CompoundParserAutoGen.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9607091d1c7459248b06eacd689c6410 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/ParameterAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80f700890102530448692195f39cde2a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/BoolParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4804911beddf3fe42b43d39f32fb6a48 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/CharParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e283b7039f3a4ce429c94d168af22d1d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/StringParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb04289364f45b44895b5cb552f9d20c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/UnityParsers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66cf95a694239ca42b35bbdd05a1d378 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/PositionalAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6a6dab7c0fe57d459195f05d9babac8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/ParserNotFoundException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27c5734c7e388ab4da8f59d37ca264cc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/CollectionParsers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1edb46ab4be8f624f978ff872bc46724 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/DictionaryParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 737e18944a68f01429678fcee8426d56 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/IEnumerableParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b6b74cf7e03e534e8ed2343cca56a69 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/KeyValuePairParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c07b599a7106f474da556696f27b6cfe 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/NullableParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 815e34bb6d8e60c40b373475fc87c16f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/NumericParsers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85eaa958fc382bf4382cb04c77abbb15 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/TupleParserUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecd854207c4ac5c45912341011df7e01 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/DeveloperConsole_GenericRegistration.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b92a7a49ff49a6d4fb1fd6db14c758e1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /console/ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Python: Current File", 9 | "type": "python", 10 | "request": "launch", 11 | "program": "${file}", 12 | "console": "integratedTerminal" 13 | } 14 | ] 15 | } -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Cronyx.Console.Runtime.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Cronyx.Console.Runtime", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:6055be8ebefd69e48b49212b09b47b2f" 6 | ], 7 | "includePlatforms": [], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [], 15 | "noEngineReferences": false 16 | } -------------------------------------------------------------------------------- /console/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /console/UserSettings/EditorUserSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!162 &1 4 | EditorUserSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_ConfigSettings: 8 | vcSharedLogLevel: 9 | value: 0d5e400f0650 10 | flags: 0 11 | m_VCAutomaticAdd: 1 12 | m_VCDebugCom: 0 13 | m_VCDebugCmd: 0 14 | m_VCDebugOut: 0 15 | m_SemanticMergeMode: 2 16 | m_VCShowFailedCheckout: 1 17 | m_VCOverwriteFailedCheckoutAssets: 1 18 | m_VCOverlayIcons: 1 19 | m_VCAllowAsyncUpdate: 0 20 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3265ab4bf004d28a9537516768c1c75 3 | timeCreated: 1484171297 4 | licenseType: Pro 5 | TrueTypeFontImporter: 6 | serializedVersion: 2 7 | fontSize: 16 8 | forceTextureCase: -2 9 | characterSpacing: 1 10 | characterPadding: 0 11 | includeFontData: 1 12 | use2xBehaviour: 0 13 | fontNames: [] 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 0 17 | userData: 18 | assetBundleName: 19 | assetBundleVariant: 20 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Editor/SettingsEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEditor; 7 | using UnityEngine; 8 | 9 | namespace Cronyx.Console.Editor 10 | { 11 | [CustomEditor(typeof(ConsoleSettings))] 12 | public class SettingsEditor : UnityEditor.Editor 13 | { 14 | public override void OnInspectorGUI() 15 | { 16 | if (GUILayout.Button("Open Settings Window", GUILayout.MinHeight(40))) 17 | SettingsWindow.OpenSettingsWindow(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Cronyx.Console.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Cronyx.Console.Tests", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:862302f10f30f01468b830cb6ed47383", 6 | "GUID:6055be8ebefd69e48b49212b09b47b2f" 7 | ], 8 | "includePlatforms": [], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": false, 12 | "precompiledReferences": [], 13 | "autoReferenced": true, 14 | "defineConstraints": [], 15 | "versionDefines": [], 16 | "noEngineReferences": false 17 | } -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.cronyx.console", 3 | "version": "1.2.0", 4 | "displayName": "Developer Console", 5 | "description": "A lightweight and extendable in-game developer console", 6 | "unity": "2020.2", 7 | "unityRelease": "1f1", 8 | "dependencies": { 9 | "com.unity.textmeshpro": "3.0.1" 10 | }, 11 | "keywords": [ 12 | "console", 13 | "developer console" 14 | ], 15 | "author": { 16 | "name": "Cronyx LLC", 17 | "email": "cronyxgames@gmail.com", 18 | "url": "http://cronyxgames.com" 19 | }, 20 | "hideInEditor": false 21 | } -------------------------------------------------------------------------------- /console/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Editor/Cronyx.Console.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Cronyx.Console.Editor", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:862302f10f30f01468b830cb6ed47383", 6 | "GUID:6055be8ebefd69e48b49212b09b47b2f" 7 | ], 8 | "includePlatforms": [ 9 | "Editor" 10 | ], 11 | "excludePlatforms": [], 12 | "allowUnsafeCode": false, 13 | "overrideReferences": false, 14 | "precompiledReferences": [], 15 | "autoReferenced": true, 16 | "defineConstraints": [], 17 | "versionDefines": [], 18 | "noEngineReferences": false 19 | } -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/EssentialAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Commands 8 | { 9 | /// 10 | /// Apply to a command to indicate that it is built-in and cannot be unregistered. 11 | /// Reserved for internal use only. 12 | /// 13 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, 14 | AllowMultiple = false, 15 | Inherited = false)] 16 | internal class EssentialAttribute : Attribute { } 17 | } 18 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Fonts/CourierPrime-Regular.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a857a559b52fd34c816b080873adc4f 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontNames: 12 | - Courier Prime 13 | fallbackFontReferences: [] 14 | customCharacters: 15 | fontRenderingMode: 0 16 | ascentCalculationMode: 1 17 | useLegacyBoundsCalculation: 0 18 | shouldRoundAdvanceValue: 1 19 | userData: 20 | assetBundleName: 21 | assetBundleVariant: 22 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Third Party Notices.md: -------------------------------------------------------------------------------- 1 | # Third Party Notices 2 | 3 | This package contains third-party software components governed by the license(s) indicated below: 4 | 5 | ## Semver 6 | 7 | MIT License 8 | 9 | [SemVer License](https://github.com/myusername/semver/blob/master/License.txt) 10 | 11 | ## Keep a Changelog 12 | 13 | MIT License 14 | 15 | [Keep a Changelog License](https://github.com/olivierlacan/keep-a-changelog/blob/master/LICENSE) 16 | 17 | ## TextMeshPro 18 | 19 | Unity Companion License 20 | 21 | [TextMeshPro License](https://docs.unity3d.com/Packages/com.unity.textmeshpro@3.0/license/LICENSE.html) -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the feature you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Are there any alternatives you've considered?** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context, screenshots, or implementation details about the feature request here. 21 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/ParserNotFoundException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing 8 | { 9 | /// 10 | /// An exception that is thrown when a for a given type cannot be found or created. 11 | /// 12 | public class ParserNotFoundException : Exception 13 | { 14 | public ParserNotFoundException() { } 15 | 16 | public ParserNotFoundException(string message) : base(message) { } 17 | 18 | public ParserNotFoundException(string message, Exception inner) : base(message, inner) { } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI/TextEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using TMPro; 7 | using UnityEngine; 8 | 9 | namespace Cronyx.Console.UI 10 | { 11 | public class TextEntry : ConsoleEntry 12 | { 13 | [SerializeField] internal TextMeshProUGUI TextComponent; 14 | 15 | public string Text { get => TextComponent.text; set => TextComponent.text = value; } 16 | public Color TextColor { get => TextComponent.color; set => TextComponent.color = value; } 17 | 18 | public override void Configure(ViewSettings settings) 19 | { 20 | TextComponent.fontSize = settings.FontSize; 21 | TextComponent.font = settings.Font; 22 | TextColor = settings.FontColor; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/DynamicCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Commands 8 | { 9 | /// 10 | /// Represents a command created at runtime dynamically, rather than one that is created from a method or class marked with . 11 | /// 12 | internal class DynamicCommand : IConsoleCommand 13 | { 14 | public string Help { get; } 15 | public void Invoke(string data) => mParseCommand.Invoke(data); 16 | 17 | private Action mParseCommand; 18 | 19 | public DynamicCommand(Action parseCommand, string help = null) 20 | { 21 | mParseCommand = parseCommand; 22 | Help = help; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /console/Assets/.devconsole/Resources/ConsoleSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 4a16d504e2cd05c4ea5b2074ed60cfa6, type: 3} 13 | m_Name: ConsoleSettings 14 | m_EditorClassIdentifier: 15 | mEnableConsole: 3 16 | mConsoleOpenKey: 126 17 | mRedirectUnityConsoleOutput: 3 18 | mRedirectConsoleOutput: 0 19 | mMaxEntries: 200 20 | mMaxInputHistory: 50 21 | mConsoleFont: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} 22 | mConsoleFontSize: 30 23 | mConsoleFontColor: {r: 1, g: 1, b: 1, a: 1} 24 | mConsoleOverlayAlpha: 0.1 25 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/PositionalAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing 8 | { 9 | /// 10 | /// Designates a positional parameter, i.e. a parameter that is not designated using dashes (such as -f or --foo-bar). 11 | /// 12 | public class PositionalAttribute : ParameterAttribute 13 | { 14 | /// 15 | /// Gets or sets a value indicating whether or not this positional parameter is optional. 16 | /// 17 | /// 18 | /// Positional parameters that are marked as optional will be sorted last, and will come after any required (non-optional) positional parameters. 19 | /// 20 | public bool Optional { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/IConsoleCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Commands 8 | { 9 | /// 10 | /// An interface that represents a console command. 11 | /// 12 | public interface IConsoleCommand 13 | { 14 | /// 15 | /// A longer description of this command that appears when help information is requested. 16 | /// Could include usage information, subcommands, etc. Can be null. 17 | /// 18 | string Help { get; } 19 | 20 | /// 21 | /// A method which is invoked when this command is called, supplying all string arguments passed to the command by the user. 22 | /// 23 | /// Any text that appeared after this command when it was entered to the console. 24 | void Invoke(string data); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /console/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/NullableParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing.Parsers 8 | { 9 | /// 10 | /// A parser for a nullable valuetype. 11 | /// 12 | /// 13 | /// When parsing, simply parses and returns the value of the underlying type. No special handling is applied to nullable value types. 14 | /// 15 | /// A nullable value type. 16 | public class NullableParser : ParameterParser where T : struct 17 | { 18 | public override bool TryParse(ArgumentInput input, out T? result) 19 | { 20 | result = null; 21 | if (!Parser.GetParser().TryParse(input, out T value)) return false; 22 | result = value; 23 | return true; 24 | } 25 | 26 | public override string GetFormat() => Parser.GetParser().GetFormat(); 27 | 28 | public override string GetTypeName() => $"{Parser.GetTypeName()}?"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Cronyx 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Cronyx LLC 4 | 5 | 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: 6 | 7 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 8 | 9 | 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. 10 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/CharParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing.Parsers 8 | { 9 | public class CharParser : ParameterParser 10 | { 11 | public override bool TryParse(ArgumentInput input, out char result) 12 | { 13 | // This parser should match ONE and ONLY ONE character in the input. 14 | // If multiple characters appear together without whitespace/special char between them, 15 | // this is a faulty input. 16 | // 17 | // Syntax: 18 | // [CHAR]{WHITESPACE|SPECIALCHAR} 19 | 20 | result = '\0'; 21 | if (input.Length == 0 || char.IsWhiteSpace(input[0])) return false; // Unexpected EOL or whitespace 22 | if (input.Length > 1 && !char.IsWhiteSpace(input[1]) && !Parser.IsSpecial(input[1])) return false; // Second character was not whitespace, malformed input 23 | result = input[0]; 24 | input.Claim(); // Claim the character 25 | return true; 26 | } 27 | 28 | public override string GetTypeName() => "char"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/CommandAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Commands 8 | { 9 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, 10 | AllowMultiple = false, 11 | Inherited = false)] 12 | public class CommandAttribute : Attribute 13 | { 14 | public string Name { get; private set; } 15 | 16 | /// 17 | /// A very short description of what this command does. Can be null. 18 | /// 19 | public string Description { get; set; } 20 | 21 | /// 22 | /// Default constructor for 23 | /// 24 | /// The name of this command. Note that console command names are case-insensitive, i.e. "help" and "HELP" refer to the same command. 25 | public CommandAttribute (string name) 26 | { 27 | if (string.IsNullOrWhiteSpace(name)) 28 | throw new ArgumentException("Console command names cannot be null or whitespace."); 29 | Name = name.Trim().ToLower(); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI/ViewSettings.cs: -------------------------------------------------------------------------------- 1 | using TMPro; 2 | using UnityEngine; 3 | 4 | namespace Cronyx.Console.UI 5 | { 6 | /// 7 | /// A set of values that represent the current visual settings of the console, to be used by all instances. 8 | /// 9 | public class ViewSettings 10 | { 11 | /// 12 | /// The default font used for any console text. 13 | /// 14 | public TMP_FontAsset Font { get; internal set; } 15 | 16 | /// 17 | /// The default font size (in TextMeshPro point units) used for any console text. 18 | /// 19 | public float FontSize { get; internal set; } 20 | 21 | /// 22 | /// The default text color for any console text. 23 | /// 24 | public Color FontColor { get; internal set; } 25 | 26 | /// 27 | /// The default text color for any warning text. 28 | /// 29 | public Color WarningColor { get; internal set; } 30 | 31 | /// 32 | /// The default text color for any error text. 33 | /// 34 | public Color ErrorColor { get; internal set; } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve this package 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | Verify and check off the following before filling out this issue 11 | - [ ] I am using the latest version of the DeveloperConsole package. 12 | 13 | **Describe the bug** 14 | A clear and concise description of what the bug is. 15 | 16 | **To Reproduce** 17 | Steps to reproduce the behavior: 18 | 1. Go to '...' 19 | 2. Click on '....' 20 | 3. Scroll down to '....' 21 | 4. See error 22 | 23 | **Expected behavior** 24 | A clear and concise description of what you expected to happen. 25 | 26 | **Screenshots** 27 | If applicable, add screenshots to help explain your problem. 28 | 29 | **Version Info** 30 | - [ ] OS running Unity: [e.g. Windows-64, MacOS High Sierra, etc.] 31 | - [ ] Unity version: [e.g. `2020.2f1`] 32 | - [ ] Unity build target: [e.g. `Standalone`, `Android`, etc.] 33 | - [ ] DeveloperConsole version: *(view in Window > Package Manager)* 34 | - [ ] TextMeshPro version: *(view in Window > Package Manager)* 35 | 36 | **Additional context** 37 | Add any other context about the problem here. 38 | -------------------------------------------------------------------------------- /console/ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreviewPackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | oneTimeWarningShown: 0 20 | m_Registries: 21 | - m_Id: main 22 | m_Name: 23 | m_Url: https://packages.unity.com 24 | m_Scopes: [] 25 | m_IsDefault: 1 26 | m_Capabilities: 7 27 | m_UserSelectedRegistryName: 28 | m_UserAddingNewScopedRegistry: 0 29 | m_RegistryInfoDraft: 30 | m_ErrorMessage: 31 | m_Original: 32 | m_Id: 33 | m_Name: 34 | m_Url: 35 | m_Scopes: [] 36 | m_IsDefault: 0 37 | m_Capabilities: 0 38 | m_Modified: 0 39 | m_Name: 40 | m_Url: 41 | m_Scopes: 42 | - 43 | m_SelectedScopeIndex: 0 44 | -------------------------------------------------------------------------------- /console/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 9 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /console/.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Mm]emoryCaptures/ 12 | 13 | # Asset meta data should only be ignored when the corresponding asset is also ignored 14 | !/[Aa]ssets/**/*.meta 15 | 16 | # Uncomment this line if you wish to ignore the asset store tools plugin 17 | # /[Aa]ssets/AssetStoreTools* 18 | 19 | # Autogenerated Jetbrains Rider plugin 20 | [Aa]ssets/Plugins/Editor/JetBrains* 21 | 22 | # Visual Studio cache directory 23 | .vs/ 24 | 25 | # Gradle cache directory 26 | .gradle/ 27 | 28 | # Autogenerated VS/MD/Consulo solution and project files 29 | ExportedObj/ 30 | .consulo/ 31 | *.csproj 32 | *.unityproj 33 | *.sln 34 | *.suo 35 | *.tmp 36 | *.user 37 | *.userprefs 38 | *.pidb 39 | *.booproj 40 | *.svd 41 | *.pdb 42 | *.mdb 43 | *.opendb 44 | *.VC.db 45 | 46 | # Unity3D generated meta files 47 | *.pidb.meta 48 | *.pdb.meta 49 | *.mdb.meta 50 | 51 | # Unity3D generated file on crash reports 52 | sysinfo.txt 53 | 54 | # Builds 55 | *.apk 56 | *.unitypackage 57 | 58 | # Crashlytics generated file 59 | crashlytics-build.properties 60 | 61 | -------------------------------------------------------------------------------- /console/Assets/Developer Console/Resources/ConsoleSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 4a16d504e2cd05c4ea5b2074ed60cfa6, type: 3} 13 | m_Name: ConsoleSettings 14 | m_EditorClassIdentifier: 15 | mEnableConsole: 3 16 | mHomeDirectoryMode: 5 17 | mCustomHomeDirectory: C:/Users/Jacob/AppData/LocalLow/DefaultCompany/DeveloperConsole/SaveData 18 | mConsoleOpenKey: 96 19 | mRedirectUnityConsoleOutput: 3 20 | mLogConsoleOutput: 0 21 | mMaxEntries: 200 22 | mMaxInputHistory: 50 23 | mPauseOnOpen: 3 24 | mConsoleFont: {fileID: 11400000, guid: 593b92d37a4cd424c873ae9df5ffbc6e, type: 2} 25 | mConsoleFontSize: 15 26 | mConsoleFontColor: {r: 1, g: 1, b: 1, a: 1} 27 | mConsoleFontWarningColor: {r: 0.87058824, g: 0.6745098, b: 0.28627452, a: 1} 28 | mConsoleFontErrorColor: {r: 0.8, g: 0.32156864, b: 0.32941177, a: 1} 29 | mConsoleFilePathColor: {r: 0.67058825, g: 0.8039216, b: 0.6784314, a: 1} 30 | mConsoleOverlayAlpha: 0.3 31 | mConsolePrefixCharacter: $ 32 | mSelectAllOnOpen: 3 33 | -------------------------------------------------------------------------------- /console/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Logger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEngine; 7 | 8 | namespace Cronyx.Console 9 | { 10 | internal class Logger 11 | { 12 | internal enum LogLevel 13 | { 14 | Info = 1, 15 | Warn = 2, 16 | Error = 4 17 | } 18 | 19 | internal const string ApplicationName = "Developer Console"; 20 | private string mLogFormat = $"[{ApplicationName}] {{0}}"; 21 | 22 | public static void Out(object s) => RuntimeLog.LogOut(s); 23 | public static void Warn(object s) => RuntimeLog.LogWarn(s); 24 | public static void Error(object s) => RuntimeLog.LogError(s); 25 | 26 | public void Write(LogLevel level, object s) 27 | { 28 | switch (level) 29 | { 30 | case LogLevel.Error: 31 | Debug.LogErrorFormat(mLogFormat, s.ToString()); 32 | break; 33 | case LogLevel.Warn: 34 | Debug.LogWarningFormat(mLogFormat, s.ToString()); 35 | break; 36 | case LogLevel.Info: 37 | Debug.LogFormat(mLogFormat, s.ToString()); 38 | break; 39 | } 40 | } 41 | 42 | public void LogOut(object s) => Write(LogLevel.Info, s); 43 | public void LogWarn(object s) => Write(LogLevel.Warn, s); 44 | public void LogError(object s) => Write(LogLevel.Error, s); 45 | 46 | public static readonly Logger RuntimeLog = new Logger(); 47 | 48 | private Logger() { } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/MethodCommand.cs: -------------------------------------------------------------------------------- 1 | using Cronyx.Console.Commands.Shell; 2 | using Cronyx.Console.Parsing; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Reflection; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Cronyx.Console.Commands 11 | { 12 | /// 13 | /// Encapsulates an that is created from a method delegate. 14 | /// 15 | internal class MethodCommand : IConsoleCommand 16 | { 17 | protected string Name { get; } 18 | protected MethodInfo Method { get; } 19 | protected object Target { get; } 20 | protected Parser MethodParser { get; } 21 | 22 | public virtual string Help => MethodParser.CalculateHelp(Name); 23 | 24 | public virtual void Invoke(string data) 25 | { 26 | if (!MethodParser.TryParse(data, out var arguments)) 27 | { 28 | // Failed to parse input. Show usage 29 | DeveloperConsole.LogWarning($"{MethodParser.CalculateUsage(Name)}\n" + 30 | $"Try '{typeof(HelpCommand).GetCustomAttribute().Name} {Name}' for more information."); 31 | return; 32 | } 33 | 34 | Method.Invoke(Target, arguments); 35 | } 36 | 37 | public MethodCommand(string name, MethodInfo method, object target = null) 38 | { 39 | Name = name; 40 | Method = method; 41 | Target = target; 42 | MethodParser = Parser.FromMethodInfo(method); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/CommandData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Commands 8 | { 9 | /// 10 | /// A wrapper around that bundles a command's metadata with its implementation. 11 | /// 12 | public class CommandData 13 | { 14 | /// 15 | /// Gets the unique name of this command. 16 | /// 17 | public string Name { get; } 18 | 19 | /// 20 | /// Gets a boolean indicating whether or not this command is essential. 21 | /// 22 | /// 23 | /// Essential commands are registered before all other commands and cannot be unregistered using 24 | /// 25 | public bool Essential { get; } 26 | 27 | /// 28 | /// Gets a string containing a short description of this command. Can be null. 29 | /// 30 | public string Description { get; } 31 | 32 | /// 33 | /// Gets the object containing the implementation of this command. 34 | /// 35 | public IConsoleCommand Command { get; } 36 | 37 | internal CommandData (string name, bool essential, string description, IConsoleCommand command) 38 | { 39 | Name = name; 40 | Description = description; 41 | Essential = essential; 42 | Command = command; 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI/ConsoleEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using TMPro; 7 | using UnityEngine; 8 | 9 | namespace Cronyx.Console.UI 10 | { 11 | public abstract class ConsoleEntry : MonoBehaviour 12 | { 13 | /// 14 | /// Called when the console is setting up this before it is fully rendered. Use to update any relevant visual content within the object based on the default settings contained in . 15 | /// 16 | /// A instance passed containing a bundle of console-wide visual settings. 17 | public virtual void Configure(ViewSettings settings) { } 18 | 19 | /// 20 | /// Called after all initialization has completed and this is visible within the console. 21 | /// 22 | public virtual void OnCreated () { } 23 | 24 | /// 25 | /// Called before the console removes this from view. Use to release any resources claimed by this object. 26 | /// 27 | /// 28 | /// There is no need to call any Unity destruction methods, such as . 29 | /// The console will automatically take care of destroying the GameObject(s) associated with this component. 30 | /// 31 | public virtual void OnRemoved () { } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/UI/EventScrollRect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEngine.EventSystems; 7 | using UnityEngine.UI; 8 | 9 | namespace Cronyx.Console.UI 10 | { 11 | /// 12 | /// wrapper with support for various callbacks. 13 | /// 14 | internal class EventScrollRect : ScrollRect 15 | { 16 | public event Action onInitializePotentialDrag; 17 | public event Action onBeginDrag; 18 | public event Action onDrag; 19 | public event Action onEndDrag; 20 | public event Action onScroll; 21 | 22 | public override void OnInitializePotentialDrag(PointerEventData eventData) 23 | { 24 | base.OnInitializePotentialDrag(eventData); 25 | onInitializePotentialDrag?.Invoke(eventData); 26 | } 27 | 28 | public override void OnBeginDrag(PointerEventData eventData) 29 | { 30 | base.OnBeginDrag(eventData); 31 | onBeginDrag?.Invoke(eventData); 32 | } 33 | 34 | public override void OnDrag(PointerEventData eventData) 35 | { 36 | base.OnDrag(eventData); 37 | onDrag?.Invoke(eventData); 38 | } 39 | 40 | public override void OnEndDrag(PointerEventData eventData) 41 | { 42 | base.OnEndDrag(eventData); 43 | onEndDrag?.Invoke(eventData); 44 | } 45 | 46 | public override void OnScroll(PointerEventData data) 47 | { 48 | base.OnScroll(data); 49 | onScroll?.Invoke(data); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/KeyValuePairParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing.Parsers 8 | { 9 | public class KeyValuePairParser : ParameterParser> 10 | { 11 | public override bool TryParse(ArgumentInput input, out KeyValuePair result) 12 | { 13 | // This parser will parse a single key/value pair. 14 | // Valid syntaxes: 15 | // [WHITESPACE][WHITESPACE] 16 | 17 | result = default; 18 | 19 | var keyParser = Parser.GetParser(); 20 | var valueParser = Parser.GetParser(); 21 | 22 | if (!keyParser.TryParse(input, out TKey key)) return false; // Failed to parse key 23 | input.TrimWhitespace(); 24 | 25 | if (input.Length == 0 || input[0] != ':') return false; // No colon found 26 | input.Claim(); // Claim colon 27 | 28 | input.TrimWhitespace(); 29 | if (!valueParser.TryParse(input, out TValue value)) return false; // Failed to parse value 30 | 31 | result = new KeyValuePair(key, value); 32 | 33 | return true; 34 | } 35 | 36 | public override string GetFormat() => $"{Parser.GetParser().GetFormat() ?? "key"}: {Parser.GetParser().GetFormat() ?? "value"}"; 37 | public override string GetTypeName() => $"KeyValuePair<{Parser.GetTypeName()},{Parser.GetTypeName()}>"; 38 | 39 | public KeyValuePairParser () 40 | { 41 | Parser.AddSpecialChar(':'); // Add colon special char 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /console/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/BoolParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing.Parsers 8 | { 9 | public class BoolParser : ParameterParser 10 | { 11 | private static readonly StringBuilder mBuilder = new StringBuilder(); 12 | 13 | public override bool TryParse(ArgumentInput input, out bool result) 14 | { 15 | // Parses a boolean. This can accept a variety of inputs: 16 | // 17 | // Full word: 18 | // True => true (case-insensitive) 19 | // False => false (case-insensitive) 20 | // 21 | // Abbreviated word: 22 | // t => true (case-insensitive) 23 | // f => false (case-insensitive) 24 | // 25 | // Numeric: 26 | // 1 => true 27 | // 0 => false 28 | 29 | mBuilder.Clear(); 30 | result = false; 31 | 32 | if (input.Length == 0 || char.IsWhiteSpace(input[0])) return false; // Unexpected EOL or whitespace 33 | 34 | while (input.Length > 0 && !char.IsWhiteSpace(input[0]) && !Parser.IsSpecial(input[0])) 35 | { 36 | mBuilder.Append(input[0]); 37 | input.Claim(); 38 | } 39 | 40 | switch (mBuilder.ToString().ToLowerInvariant()) 41 | { 42 | case "true": 43 | result = true; 44 | break; 45 | case "false": 46 | result = false; 47 | break; 48 | case "t": 49 | result = true; 50 | break; 51 | case "f": 52 | result = false; 53 | break; 54 | case "1": 55 | result = true; 56 | break; 57 | case "0": 58 | result = true; 59 | break; 60 | default: 61 | return false; // Doesn't match specified inputs 62 | } 63 | 64 | return true; 65 | } 66 | 67 | public override string GetTypeName() => "bool"; 68 | public override string GetFormat() => "t/f"; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/TMP Settings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2705215ac5b84b70bacc50632be6e391, type: 3} 13 | m_Name: TMP Settings 14 | m_EditorClassIdentifier: 15 | m_enableWordWrapping: 1 16 | m_enableKerning: 1 17 | m_enableExtraPadding: 0 18 | m_enableTintAllSprites: 0 19 | m_enableParseEscapeCharacters: 1 20 | m_EnableRaycastTarget: 1 21 | m_GetFontFeaturesAtRuntime: 1 22 | m_missingGlyphCharacter: 0 23 | m_warningsDisabled: 1 24 | m_defaultFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} 25 | m_defaultFontAssetPath: Fonts & Materials/ 26 | m_defaultFontSize: 36 27 | m_defaultAutoSizeMinRatio: 0.5 28 | m_defaultAutoSizeMaxRatio: 2 29 | m_defaultTextMeshProTextContainerSize: {x: 20, y: 5} 30 | m_defaultTextMeshProUITextContainerSize: {x: 200, y: 50} 31 | m_autoSizeTextContainer: 0 32 | m_fallbackFontAssets: [] 33 | m_matchMaterialPreset: 1 34 | m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45, 35 | type: 2} 36 | m_defaultSpriteAssetPath: Sprite Assets/ 37 | m_enableEmojiSupport: 1 38 | m_MissingCharacterSpriteUnicode: 0 39 | m_defaultColorGradientPresetsPath: Color Gradient Presets/ 40 | m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e, 41 | type: 2} 42 | m_StyleSheetsResourcePath: 43 | m_leadingCharacters: {fileID: 4900000, guid: d82c1b31c7e74239bff1220585707d2b, type: 3} 44 | m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b, 45 | type: 3} 46 | m_UseModernHangulLineBreakingRules: 0 47 | -------------------------------------------------------------------------------- /console/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.sprite": "1.0.0", 4 | "com.unity.collab-proxy": "1.3.9", 5 | "com.unity.ide.rider": "2.0.7", 6 | "com.unity.ide.visualstudio": "2.0.5", 7 | "com.unity.ide.vscode": "1.2.3", 8 | "com.unity.test-framework": "1.1.19", 9 | "com.unity.textmeshpro": "3.0.1", 10 | "com.unity.timeline": "1.2.14", 11 | "com.unity.ugui": "1.0.0", 12 | "com.unity.modules.ai": "1.0.0", 13 | "com.unity.modules.androidjni": "1.0.0", 14 | "com.unity.modules.animation": "1.0.0", 15 | "com.unity.modules.assetbundle": "1.0.0", 16 | "com.unity.modules.audio": "1.0.0", 17 | "com.unity.modules.cloth": "1.0.0", 18 | "com.unity.modules.director": "1.0.0", 19 | "com.unity.modules.imageconversion": "1.0.0", 20 | "com.unity.modules.imgui": "1.0.0", 21 | "com.unity.modules.jsonserialize": "1.0.0", 22 | "com.unity.modules.particlesystem": "1.0.0", 23 | "com.unity.modules.physics": "1.0.0", 24 | "com.unity.modules.physics2d": "1.0.0", 25 | "com.unity.modules.screencapture": "1.0.0", 26 | "com.unity.modules.terrain": "1.0.0", 27 | "com.unity.modules.terrainphysics": "1.0.0", 28 | "com.unity.modules.tilemap": "1.0.0", 29 | "com.unity.modules.ui": "1.0.0", 30 | "com.unity.modules.uielements": "1.0.0", 31 | "com.unity.modules.umbra": "1.0.0", 32 | "com.unity.modules.unityanalytics": "1.0.0", 33 | "com.unity.modules.unitywebrequest": "1.0.0", 34 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 35 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 36 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 37 | "com.unity.modules.unitywebrequestwww": "1.0.0", 38 | "com.unity.modules.vehicles": "1.0.0", 39 | "com.unity.modules.video": "1.0.0", 40 | "com.unity.modules.vr": "1.0.0", 41 | "com.unity.modules.wind": "1.0.0", 42 | "com.unity.modules.xr": "1.0.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /codegen/codegen.py: -------------------------------------------------------------------------------- 1 | import datetime 2 | import os.path 3 | 4 | lines = [] 5 | 6 | # --- NUMERIC DICTIONARIES --- 7 | 8 | numbers = { 9 | 0: "zero", 10 | 1: "one", 11 | 2: "two", 12 | 3: "three", 13 | 4: "four", 14 | 5: "five", 15 | 6: "six", 16 | 7: "seven", 17 | 8: "eight", 18 | 9: "nine", 19 | 10: "ten", 20 | 11: "eleven", 21 | 12: "twelve", 22 | 13: "thirteen", 23 | 14: "fourteen", 24 | 15: "fifteen", 25 | 16: "sixteen", 26 | 17: "seventeen", 27 | 18: "eighteen", 28 | 19: "nineteen", 29 | 20: "twenty" 30 | } 31 | 32 | numbersadj = { 33 | 0: "zeroth", 34 | 1: "first", 35 | 2: "second", 36 | 3: "third", 37 | 4: "fourth", 38 | 5: "fifth", 39 | 6: "sixth", 40 | 7: "seventh", 41 | 8: "eighth", 42 | 9: "ninth", 43 | 10: "tenth", 44 | 11: "eleventh", 45 | 12: "twelfth", 46 | 13: "thirteenth", 47 | 14: "fourteenth", 48 | 15: "fifteenth", 49 | 16: "sixteenth", 50 | 17: "seventeenth", 51 | 18: "eighteenth", 52 | 19: "nineteenth", 53 | 20: "twentieth" 54 | } 55 | 56 | # --- WRITING METHODS --- 57 | 58 | def writeline (line="", indent=0): 59 | if line is None: return 60 | for i in range(indent): line = "\t" + line 61 | lines.append(line + "\n") 62 | 63 | def docline (line="", indent=0): 64 | if line is None: return 65 | writeline("/// " + line, indent) 66 | 67 | def comline (line="", indent=0): 68 | if line is None: return 69 | writeline("// " + line, indent) 70 | 71 | def writeheader (outputPath: str, description: str): 72 | now = datetime.datetime.now() 73 | 74 | comline() 75 | comline(os.path.basename(outputPath)) 76 | comline(description) 77 | comline() 78 | comline(f"This code was autogenerated on {now.strftime('%m/%d/%Y')} at {now.strftime('%H:%M:%S')}.") 79 | comline(f"Manual changes to this document will not be reflected if/when it is regenerated.") 80 | comline() 81 | writeline() 82 | 83 | def writeToOutput(file): 84 | file.writelines(lines) -------------------------------------------------------------------------------- /console/Assets/Scenes/SampleSceneSettings.lighting: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!850595691 &4890085278179872738 4 | LightingSettings: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: SampleSceneSettings 10 | serializedVersion: 3 11 | m_GIWorkflowMode: 1 12 | m_EnableBakedLightmaps: 1 13 | m_EnableRealtimeLightmaps: 0 14 | m_RealtimeEnvironmentLighting: 1 15 | m_BounceScale: 1 16 | m_AlbedoBoost: 1 17 | m_IndirectOutputScale: 1 18 | m_UsingShadowmask: 1 19 | m_BakeBackend: 1 20 | m_LightmapMaxSize: 1024 21 | m_BakeResolution: 40 22 | m_Padding: 2 23 | m_TextureCompression: 1 24 | m_AO: 0 25 | m_AOMaxDistance: 1 26 | m_CompAOExponent: 1 27 | m_CompAOExponentDirect: 0 28 | m_ExtractAO: 0 29 | m_MixedBakeMode: 2 30 | m_LightmapsBakeMode: 1 31 | m_FilterMode: 1 32 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} 33 | m_ExportTrainingData: 0 34 | m_TrainingDataDestination: TrainingData 35 | m_RealtimeResolution: 2 36 | m_ForceWhiteAlbedo: 0 37 | m_ForceUpdates: 0 38 | m_FinalGather: 0 39 | m_FinalGatherRayCount: 256 40 | m_FinalGatherFiltering: 1 41 | m_PVRCulling: 1 42 | m_PVRSampling: 1 43 | m_PVRDirectSampleCount: 32 44 | m_PVRSampleCount: 500 45 | m_PVREnvironmentSampleCount: 500 46 | m_PVREnvironmentReferencePointCount: 2048 47 | m_LightProbeSampleCountMultiplier: 4 48 | m_PVRBounces: 2 49 | m_PVRMinBounces: 2 50 | m_PVREnvironmentMIS: 0 51 | m_PVRFilteringMode: 2 52 | m_PVRDenoiserTypeDirect: 0 53 | m_PVRDenoiserTypeIndirect: 0 54 | m_PVRDenoiserTypeAO: 0 55 | m_PVRFilterTypeDirect: 0 56 | m_PVRFilterTypeIndirect: 0 57 | m_PVRFilterTypeAO: 0 58 | m_PVRFilteringGaussRadiusDirect: 1 59 | m_PVRFilteringGaussRadiusIndirect: 5 60 | m_PVRFilteringGaussRadiusAO: 2 61 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 62 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 63 | m_PVRFilteringAtrousPositionSigmaAO: 1 64 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | All notable changes to this project will be documented in this file. 3 | 4 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 5 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 6 | 7 | ## [1.2.0] - 2021-03-23 8 | ### Added 9 | - Added a public overload for `DeveloperConsole.RegisterCommand` that takes an `IConsoleCommand` instance. 10 | - Added `VerbCommand`, a new `IConsoleCommand` implementation, with support for verb commands, as in the case of `git push` or `git pull` 11 | - Allows for multiple subcommands to be called from one single root command by specifying *verbs* 12 | - Use the `RegisterVerb` and its overloads to register verb implementations 13 | 14 | ### Changed 15 | - Made the formatting of the `help` command more rigorous, supporting multi-line command descriptions and coloring built-in commands blue. 16 | - Renamed `DeveloperConsole.RegisterCommand(string, Action, string, string)` overload to `DeveloperConsole.RegisterCommandManual` to avoid ambiguity with `DeveloperConsole.RegisterCommand`. 17 | 18 | ### Fixed 19 | - Fixed target exception when calling automatically parsed commands when using non-static methods. 20 | - Fixed README.md meta file missing error 21 | 22 | ## [1.1.1] - 2021-03-23 23 | ### Changed 24 | - Changed `package.json` version to reflect actual, current version 25 | 26 | ## [1.1.0] - 2021-03-22 27 | ### Added 28 | - Added new built-in commands 29 | - `rm`: Removes files and directories 30 | - `mkdir`: Creates directories 31 | 32 | ### Changed 33 | - Changed `Third Party Notices.md` markdown 34 | 35 | ## [1.0.0] - 2021-03-02 36 | ### Added 37 | - Initial project architecture 38 | - Support for automatic and manual parsing 39 | - Automatic parser types for basic C# and Unity types 40 | - DeveloperConsole class which exposes major components of console API 41 | - README that contains outline of features and information about installation, getting started, and contributing 42 | -------------------------------------------------------------------------------- /console/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/StringParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing.Parsers 8 | { 9 | public class StringParser : ParameterParser 10 | { 11 | private static readonly StringBuilder mBuilder = new StringBuilder(); 12 | 13 | public override bool TryParse(ArgumentInput input, out string result) 14 | { 15 | // This parser will look for a string of characters that are either surrounded by single or double quotes 16 | // 17 | // If the string is surrounded by quotes, it will include everything between the first quote character found 18 | // and the last unescaped quote character. Quote characters may be escaped using \" 19 | // 20 | // If the string is not surrounded by quotes, it will start with the first character and stop at a special 21 | // character or whitespace. 22 | 23 | mBuilder.Clear(); 24 | 25 | result = null; 26 | if (input.Length == 0 || char.IsWhiteSpace(input[0])) return false; // Unexpected EOL or whitespace 27 | 28 | char? quoteChar = null; 29 | if (input[0] == '\'') quoteChar = '\''; 30 | else if (input[0] == '"') quoteChar = '"'; 31 | 32 | if (quoteChar != null) input.Claim(); // Claim the quote character, if it was found 33 | 34 | // Begin scanning for the string 35 | while (input.Length > 0) 36 | { 37 | if (quoteChar != null) 38 | { 39 | if (input.Match("\\" + quoteChar)) 40 | { 41 | // Escaped quotechar 42 | mBuilder.Append(quoteChar); 43 | input.Claim(2); 44 | continue; 45 | } else if (input[0] == quoteChar) 46 | { 47 | input.Claim(); // Claim end-quote 48 | break; 49 | } 50 | } else 51 | { 52 | if (char.IsWhiteSpace(input[0])) break; // Found whitespace not inside quotes 53 | else if (Parser.IsSpecial(input[0])) break; // Special character not inside quotes, must stop 54 | } 55 | 56 | // Append and claim the current character 57 | mBuilder.Append(input[0]); 58 | input.Claim(); 59 | } 60 | 61 | result = mBuilder.ToString(); 62 | return true; 63 | } 64 | 65 | public override string GetTypeName() => "string"; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets/EventSystem.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &5079667886617642612 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 4512760160550279535} 12 | - component: {fileID: 7257064880273932939} 13 | - component: {fileID: 2770014224772816322} 14 | m_Layer: 0 15 | m_Name: EventSystem 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &4512760160550279535 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 5079667886617642612} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 0} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | --- !u!114 &7257064880273932939 36 | MonoBehaviour: 37 | m_ObjectHideFlags: 0 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 5079667886617642612} 42 | m_Enabled: 1 43 | m_EditorHideFlags: 0 44 | m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} 45 | m_Name: 46 | m_EditorClassIdentifier: 47 | m_FirstSelected: {fileID: 0} 48 | m_sendNavigationEvents: 1 49 | m_DragThreshold: 10 50 | --- !u!114 &2770014224772816322 51 | MonoBehaviour: 52 | m_ObjectHideFlags: 0 53 | m_CorrespondingSourceObject: {fileID: 0} 54 | m_PrefabInstance: {fileID: 0} 55 | m_PrefabAsset: {fileID: 0} 56 | m_GameObject: {fileID: 5079667886617642612} 57 | m_Enabled: 1 58 | m_EditorHideFlags: 0 59 | m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} 60 | m_Name: 61 | m_EditorClassIdentifier: 62 | m_HorizontalAxis: Horizontal 63 | m_VerticalAxis: Vertical 64 | m_SubmitButton: Submit 65 | m_CancelButton: Cancel 66 | m_InputActionsPerSecond: 10 67 | m_RepeatDelay: 0.5 68 | m_ForceModuleActive: 0 69 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/DictionaryParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing.Parsers 8 | { 9 | /// 10 | /// A parser for a . 11 | /// 12 | /// 13 | /// If this parser finds any duplicate key names in the input, it will treat that input as malformed. 14 | /// 15 | public class DictionaryParser : ParameterParser> 16 | { 17 | private class KVIEnumerableParser : IEnumerableParser> 18 | { 19 | protected override (char Beginning, char End)[] GroupingChars => new[] { ('{', '}') }; 20 | } 21 | 22 | private static readonly KVIEnumerableParser mParser = new KVIEnumerableParser(); 23 | 24 | public override bool TryParse(ArgumentInput input, out Dictionary result) 25 | { 26 | result = null; 27 | if (!mParser.TryParse(input, out var value)) return false; 28 | 29 | // Take the IEnumerable> and convert it to a dictionary, 30 | // ensuring that no duplicate key names were used 31 | Dictionary dict = new Dictionary(); 32 | foreach (var pair in value) 33 | { 34 | if (dict.ContainsKey(pair.Key)) return false; // Duplicate key name 35 | dict[pair.Key] = pair.Value; 36 | } 37 | 38 | result = dict; 39 | 40 | return true; 41 | } 42 | 43 | public override string GetFormat() => $"{{{Parser.GetParser>().GetFormat()} ...}}"; 44 | public override string GetTypeName() => $"Dictionary<{Parser.GetTypeName()},{Parser.GetTypeName()}>"; 45 | } 46 | 47 | public class IDictionaryParser : CovariantParser, IDictionary> 48 | { 49 | public override string GetTypeName() => $"IDictionary<{Parser.GetTypeName()},{Parser.GetTypeName()}>"; 50 | } 51 | 52 | public class IReadOnlyDictionaryParser : CovariantParser, IReadOnlyDictionary> 53 | { 54 | public override string GetTypeName() => $"IReadOnlyDictionary<{Parser.GetTypeName()},{Parser.GetTypeName()}>"; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /console/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | m_LogWhenShaderIsCompiled: 0 63 | m_AllowEnlightenSupportForUpgradedProject: 0 64 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/SwitchAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Text.RegularExpressions; 6 | using System.Threading.Tasks; 7 | 8 | namespace Cronyx.Console.Parsing 9 | { 10 | /// 11 | /// Designates a switch parameter, i.e. a parameter that is designated using dashes (such as -f or --foo-bar). 12 | /// 13 | public class SwitchAttribute : ParameterAttribute 14 | { 15 | private static readonly Regex longNameFormatRegex = new Regex(@"[\s]+", RegexOptions.None); 16 | 17 | private string mName; 18 | private char mShortName; 19 | public char ShortName => mShortName; 20 | 21 | /// 22 | /// Gets or sets whether this switch is required. 23 | /// 24 | /// 25 | /// This value is meaningless if the attached type is a and is set to true. 26 | /// 27 | public bool Required { get; set; } 28 | 29 | /// 30 | /// Gets or sets whether this switch represents a boolean flag. 31 | /// 32 | /// 33 | /// If this attribute is attached to a parameter, indicates that this parameter represents a flag that is true when the switch is present (i.e. "-f") and false when it is absent. 34 | /// Defaults to true. 35 | /// This value is meaningless if attached to any type except . 36 | /// 37 | public bool Flag { get; set; } = true; 38 | 39 | /// 40 | /// Gets or sets the long name for this parameter which can be specified by using double dashes (i.e. --long-name). 41 | /// 42 | /// 43 | /// If any spaces are found within this string (leading and trailing whitespace will be ignored), they will be replaced with dashes. 44 | /// 45 | public string LongName 46 | { 47 | get => mName; 48 | set 49 | { 50 | if (string.IsNullOrWhiteSpace(value)) throw new ArgumentException(nameof(LongName)); 51 | mName = longNameFormatRegex.Replace(value.Trim(), "-"); 52 | } 53 | } 54 | 55 | /// 56 | /// Constructs a 57 | /// 58 | /// The short name of this parameter, which can be specified by using a single dash the short name (i.e. -f or -g) 59 | public SwitchAttribute(char shortName) 60 | { 61 | if (char.IsWhiteSpace(shortName)) throw new ArgumentException(nameof(shortName)); 62 | mShortName = shortName; 63 | } 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMPro.cginc: -------------------------------------------------------------------------------- 1 | float2 UnpackUV(float uv) 2 | { 3 | float2 output; 4 | output.x = floor(uv / 4096); 5 | output.y = uv - 4096 * output.x; 6 | 7 | return output * 0.001953125; 8 | } 9 | 10 | fixed4 GetColor(half d, fixed4 faceColor, fixed4 outlineColor, half outline, half softness) 11 | { 12 | half faceAlpha = 1-saturate((d - outline * 0.5 + softness * 0.5) / (1.0 + softness)); 13 | half outlineAlpha = saturate((d + outline * 0.5)) * sqrt(min(1.0, outline)); 14 | 15 | faceColor.rgb *= faceColor.a; 16 | outlineColor.rgb *= outlineColor.a; 17 | 18 | faceColor = lerp(faceColor, outlineColor, outlineAlpha); 19 | 20 | faceColor *= faceAlpha; 21 | 22 | return faceColor; 23 | } 24 | 25 | float3 GetSurfaceNormal(float4 h, float bias) 26 | { 27 | bool raisedBevel = step(1, fmod(_ShaderFlags, 2)); 28 | 29 | h += bias+_BevelOffset; 30 | 31 | float bevelWidth = max(.01, _OutlineWidth+_BevelWidth); 32 | 33 | // Track outline 34 | h -= .5; 35 | h /= bevelWidth; 36 | h = saturate(h+.5); 37 | 38 | if(raisedBevel) h = 1 - abs(h*2.0 - 1.0); 39 | h = lerp(h, sin(h*3.141592/2.0), _BevelRoundness); 40 | h = min(h, 1.0-_BevelClamp); 41 | h *= _Bevel * bevelWidth * _GradientScale * -2.0; 42 | 43 | float3 va = normalize(float3(1.0, 0.0, h.y - h.x)); 44 | float3 vb = normalize(float3(0.0, -1.0, h.w - h.z)); 45 | 46 | return cross(va, vb); 47 | } 48 | 49 | float3 GetSurfaceNormal(float2 uv, float bias, float3 delta) 50 | { 51 | // Read "height field" 52 | float4 h = {tex2D(_MainTex, uv - delta.xz).a, 53 | tex2D(_MainTex, uv + delta.xz).a, 54 | tex2D(_MainTex, uv - delta.zy).a, 55 | tex2D(_MainTex, uv + delta.zy).a}; 56 | 57 | return GetSurfaceNormal(h, bias); 58 | } 59 | 60 | float3 GetSpecular(float3 n, float3 l) 61 | { 62 | float spec = pow(max(0.0, dot(n, l)), _Reflectivity); 63 | return _SpecularColor.rgb * spec * _SpecularPower; 64 | } 65 | 66 | float4 GetGlowColor(float d, float scale) 67 | { 68 | float glow = d - (_GlowOffset*_ScaleRatioB) * 0.5 * scale; 69 | float t = lerp(_GlowInner, (_GlowOuter * _ScaleRatioB), step(0.0, glow)) * 0.5 * scale; 70 | glow = saturate(abs(glow/(1.0 + t))); 71 | glow = 1.0-pow(glow, _GlowPower); 72 | glow *= sqrt(min(1.0, t)); // Fade off glow thinner than 1 screen pixel 73 | return float4(_GlowColor.rgb, saturate(_GlowColor.a * glow * 2)); 74 | } 75 | 76 | float4 BlendARGB(float4 overlying, float4 underlying) 77 | { 78 | overlying.rgb *= overlying.a; 79 | underlying.rgb *= underlying.a; 80 | float3 blended = overlying.rgb + ((1-overlying.a)*underlying.rgb); 81 | float alpha = underlying.a + (1-underlying.a)*overlying.a; 82 | return float4(blended, alpha); 83 | } 84 | 85 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | release: 5 | types: [published] 6 | 7 | jobs: 8 | 9 | # A job to bundle the package contents into a tar.gz and upload them to the release 10 | bundle: 11 | runs-on: ubuntu-latest 12 | env: 13 | TAR_OUTPUT_PATH: DeveloperConsole_${{ github.event.release.tag_name }}.tar.gz 14 | steps: 15 | - uses: actions/checkout@v2 # Checkout the repository 16 | 17 | # Compress the package contents into a tar.gz file 18 | - run: tar -czvf "${{ env.TAR_OUTPUT_PATH }}" "console/Packages/com.cronyx.console" 19 | 20 | # Upload the tar.gz file to the release, using the upload URL 21 | # of the release that triggered this workflow 22 | - name: "Upload package tar.gz" 23 | uses: actions/upload-release-asset@v1 24 | env: 25 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 26 | with: 27 | upload_url: ${{ github.event.release.upload_url }} 28 | asset_path: ./${{ env.TAR_OUTPUT_PATH }} 29 | asset_name: ${{ env.TAR_OUTPUT_PATH }} 30 | asset_content_type: application/gzip 31 | 32 | # A job to handle synchronizing the upm branch with the current release 33 | upm: 34 | needs: bundle 35 | runs-on: ubuntu-latest 36 | steps: 37 | - uses: actions/checkout@v2 # Checkout the repository 38 | 39 | # Push the package root directory to the 'upm' branch 40 | - uses: s0/git-publish-subdir-action@develop 41 | env: 42 | REPO: self 43 | BRANCH: upm 44 | FOLDER: console/Packages/com.cronyx.console 45 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 46 | 47 | # Afterwards, change the git tag to reference the 'upm' branch 48 | - run: | 49 | git fetch 50 | git checkout upm 51 | git push origin -d ${{ github.event.release.tag_name }} # Delete old tag on remote 52 | git tag -d "${{ github.event.release.tag_name }}" # Delete tag that was created with the new release 53 | 54 | # Move main README file into the upm branch 55 | git checkout origin/main README.md 56 | git commit -m "Update upm README file" 57 | git push 58 | 59 | git tag "${{ github.event.release.tag_name }}" # Create new tag references 'upm' branch 60 | git push --tags # Push new tag 61 | 62 | # After having deleted the old tag that was originally associated with the release that 63 | # triggered this workflow, that release will now be marked as a draft release and must be republished. 64 | - uses: eregon/publish-release@v1 65 | env: 66 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 67 | with: 68 | release_id: ${{ github.event.release.id }} 69 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_Sprite.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Sprite" 2 | { 3 | Properties 4 | { 5 | _MainTex ("Sprite Texture", 2D) = "white" {} 6 | _Color ("Tint", Color) = (1,1,1,1) 7 | 8 | _StencilComp ("Stencil Comparison", Float) = 8 9 | _Stencil ("Stencil ID", Float) = 0 10 | _StencilOp ("Stencil Operation", Float) = 0 11 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 12 | _StencilReadMask ("Stencil Read Mask", Float) = 255 13 | 14 | _CullMode ("Cull Mode", Float) = 0 15 | _ColorMask ("Color Mask", Float) = 15 16 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 17 | 18 | [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 19 | } 20 | 21 | SubShader 22 | { 23 | Tags 24 | { 25 | "Queue"="Transparent" 26 | "IgnoreProjector"="True" 27 | "RenderType"="Transparent" 28 | "PreviewType"="Plane" 29 | "CanUseSpriteAtlas"="True" 30 | } 31 | 32 | Stencil 33 | { 34 | Ref [_Stencil] 35 | Comp [_StencilComp] 36 | Pass [_StencilOp] 37 | ReadMask [_StencilReadMask] 38 | WriteMask [_StencilWriteMask] 39 | } 40 | 41 | Cull [_CullMode] 42 | Lighting Off 43 | ZWrite Off 44 | ZTest [unity_GUIZTestMode] 45 | Blend SrcAlpha OneMinusSrcAlpha 46 | ColorMask [_ColorMask] 47 | 48 | Pass 49 | { 50 | CGPROGRAM 51 | #pragma vertex vert 52 | #pragma fragment frag 53 | 54 | #include "UnityCG.cginc" 55 | #include "UnityUI.cginc" 56 | 57 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 58 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 59 | 60 | struct appdata_t 61 | { 62 | float4 vertex : POSITION; 63 | float4 color : COLOR; 64 | float2 texcoord : TEXCOORD0; 65 | }; 66 | 67 | struct v2f 68 | { 69 | float4 vertex : SV_POSITION; 70 | fixed4 color : COLOR; 71 | half2 texcoord : TEXCOORD0; 72 | float4 worldPosition : TEXCOORD1; 73 | }; 74 | 75 | fixed4 _Color; 76 | fixed4 _TextureSampleAdd; 77 | float4 _ClipRect; 78 | 79 | v2f vert(appdata_t IN) 80 | { 81 | v2f OUT; 82 | OUT.worldPosition = IN.vertex; 83 | OUT.vertex = UnityObjectToClipPos(OUT.worldPosition); 84 | 85 | OUT.texcoord = IN.texcoord; 86 | 87 | #ifdef UNITY_HALF_TEXEL_OFFSET 88 | OUT.vertex.xy += (_ScreenParams.zw-1.0)*float2(-1,1); 89 | #endif 90 | 91 | OUT.color = IN.color * _Color; 92 | return OUT; 93 | } 94 | 95 | sampler2D _MainTex; 96 | 97 | fixed4 frag(v2f IN) : SV_Target 98 | { 99 | half4 color = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd) * IN.color; 100 | 101 | #if UNITY_UI_CLIP_RECT 102 | color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); 103 | #endif 104 | 105 | #ifdef UNITY_UI_ALPHACLIP 106 | clip (color.a - 0.001); 107 | #endif 108 | 109 | return color; 110 | } 111 | ENDCG 112 | } 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Tests/Runtime/Scripts/ScreenshotEntry.cs: -------------------------------------------------------------------------------- 1 | using Cronyx.Console; 2 | using Cronyx.Console.Commands; 3 | using Cronyx.Console.UI; 4 | using System; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using TMPro; 8 | using UnityEngine; 9 | using UnityEngine.UI; 10 | 11 | public class ScreenshotEntry : ConsoleEntry 12 | { 13 | [SerializeField] 14 | private RawImage Image; // A raw image that will store the screenshot texture 15 | 16 | [SerializeField] 17 | private TextMeshProUGUI Caption; // A text component that will show a caption for the screenshot 18 | 19 | private Texture2D mTexture; // A texture object to store the screenshot data (so we can delete it later) 20 | 21 | // Use the Configure method to update this component so that it conforms to the console's visual settings, 22 | // such as the font, font color, or font size 23 | public override void Configure(ViewSettings settings) 24 | { 25 | Caption.font = settings.Font; 26 | Caption.fontSize = settings.FontSize; 27 | Caption.color = settings.FontColor; 28 | 29 | // Make caption's height equal to the font height 30 | Caption.rectTransform.sizeDelta = new Vector2(Caption.rectTransform.sizeDelta.x, settings.FontSize); 31 | } 32 | 33 | // Use the OnCreated method to handle any initialization code. 34 | // This method is guaranteed to be called after Configure. 35 | public override void OnCreated() 36 | { 37 | } 38 | 39 | // OnRemoved is called just before this component is destroyed. 40 | // Use it to perform any cleanup, release any resources, etc. 41 | public override void OnRemoved() 42 | { 43 | // Destroy the texture object to free up memory 44 | if (mTexture != null) Destroy(mTexture); 45 | } 46 | 47 | public void SetData (Texture2D texture, string caption) 48 | { 49 | mTexture = texture; 50 | Image.texture = mTexture; 51 | Caption.text = caption; 52 | } 53 | } 54 | 55 | // Uncomment to use the screenshot command 56 | //[Command("screenshot")] 57 | public class ScreenshotCommand : MonoBehaviour, IConsoleCommand 58 | { 59 | public string Help => "Takes and displays a screenshot"; 60 | 61 | private Coroutine mCoroutine; 62 | 63 | public void Invoke(string data) 64 | { 65 | if (mCoroutine != null) StopCoroutine(mCoroutine); 66 | mCoroutine = StartCoroutine(ShowScreenshot()); 67 | } 68 | 69 | // A coroutine that will take and show the screenshot 70 | private IEnumerator ShowScreenshot() 71 | { 72 | yield return new WaitForEndOfFrame(); 73 | 74 | // Take a screenshot (in the form of a Texture2D) 75 | Texture2D texture = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false); 76 | texture.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0); 77 | texture.Apply(); 78 | 79 | // Get a caption for the image containing the date 80 | var now = DateTime.Now; 81 | string caption = $"Taken on {now.ToString("dddd, dd MMMM yyyy")} at {now.ToString("HH:mm:ss")}"; 82 | 83 | // Create ScreenShot entry 84 | var entry = DeveloperConsole.AppendEntry(Resources.Load("Developer Console/Tests/ScreenshotEntry")); 85 | entry.SetData(texture, caption); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/UnityParsers.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEngine; 7 | 8 | namespace Cronyx.Console.Parsing.Parsers 9 | { 10 | public class Vector2Parser : CompoundParser 11 | { 12 | protected override Vector2 GetResult(float t0, float t1) => new Vector2(t0, t1); 13 | 14 | public override string GetFormat() => $"{GroupingChars[0].Beginning}x y{GroupingChars[0].End}"; 15 | } 16 | 17 | public class Vector2IntParser : CompoundParser 18 | { 19 | protected override Vector2Int GetResult(int t0, int t1) => new Vector2Int(t0, t1); 20 | 21 | public override string GetFormat() => $"{GroupingChars[0].Beginning}x y{GroupingChars[0].End}"; 22 | } 23 | 24 | public class Vector3Parser : CompoundParser 25 | { 26 | protected override Vector3 GetResult(float t0, float t1, float t2=0.0f) => new Vector3(t0, t1, t2); 27 | 28 | public override string GetFormat() => $"{GroupingChars[0].Beginning}x y z{GroupingChars[0].End}"; 29 | } 30 | 31 | public class Vector3IntParser : CompoundParser 32 | { 33 | protected override Vector3Int GetResult(int t0, int t1, int t2=0) => new Vector3Int(t0, t1, t2); 34 | 35 | public override string GetFormat() => $"{GroupingChars[0].Beginning}x y z{GroupingChars[0].End}"; 36 | } 37 | 38 | public class Vector4Parser : CompoundParser 39 | { 40 | protected override Vector4 GetResult(float t0, float t1, float t2=0, float t3=0) => new Vector4(t0, t1, t2, t3); 41 | 42 | public override string GetFormat() => $"{GroupingChars[0].Beginning}x y z w{GroupingChars[0].End}"; 43 | } 44 | 45 | public class QuaternionParser : CompoundParser 46 | { 47 | protected override Quaternion GetResult(float t0, float t1, float t2, float? t3 = null) 48 | { 49 | if (t3 != null) 50 | return new Quaternion(t0, t1, t2, t3 ?? 0); 51 | return Quaternion.Euler(t0, t1, t2); 52 | } 53 | 54 | public override string GetFormat() => $"{GroupingChars[0].Beginning}x y z w{GroupingChars[0].End}"; 55 | } 56 | 57 | public class ColorParser : CompoundParser 58 | { 59 | protected override Color GetResult(float t0, float t1, float t2, float t3 = 1) 60 | { 61 | if (t0 < 0 || t0 > 1) throw new ArgumentException("r"); 62 | if (t1 < 0 || t1 > 1) throw new ArgumentException("g"); 63 | if (t2 < 0 || t2 > 1) throw new ArgumentException("b"); 64 | if (t3 < 0 || t3 > 1) throw new ArgumentException("a"); 65 | return new Color(t0, t1, t2, t3); 66 | } 67 | 68 | public override string GetFormat() => $"{GroupingChars[0].Beginning}r g b a{GroupingChars[0].End}"; 69 | } 70 | 71 | public class Color32Parser : CompoundParser 72 | { 73 | protected override Color32 GetResult(byte t0, byte t1, byte t2, byte t3=255) => new Color32(t0, t1, t2, t3); 74 | 75 | public override string GetFormat() => $"{GroupingChars[0].Beginning}r g b a{GroupingChars[0].End}"; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMPro_Properties.cginc: -------------------------------------------------------------------------------- 1 | // UI Editable properties 2 | uniform sampler2D _FaceTex; // Alpha : Signed Distance 3 | uniform float _FaceUVSpeedX; 4 | uniform float _FaceUVSpeedY; 5 | uniform fixed4 _FaceColor; // RGBA : Color + Opacity 6 | uniform float _FaceDilate; // v[ 0, 1] 7 | uniform float _OutlineSoftness; // v[ 0, 1] 8 | 9 | uniform sampler2D _OutlineTex; // RGBA : Color + Opacity 10 | uniform float _OutlineUVSpeedX; 11 | uniform float _OutlineUVSpeedY; 12 | uniform fixed4 _OutlineColor; // RGBA : Color + Opacity 13 | uniform float _OutlineWidth; // v[ 0, 1] 14 | 15 | uniform float _Bevel; // v[ 0, 1] 16 | uniform float _BevelOffset; // v[-1, 1] 17 | uniform float _BevelWidth; // v[-1, 1] 18 | uniform float _BevelClamp; // v[ 0, 1] 19 | uniform float _BevelRoundness; // v[ 0, 1] 20 | 21 | uniform sampler2D _BumpMap; // Normal map 22 | uniform float _BumpOutline; // v[ 0, 1] 23 | uniform float _BumpFace; // v[ 0, 1] 24 | 25 | uniform samplerCUBE _Cube; // Cube / sphere map 26 | uniform fixed4 _ReflectFaceColor; // RGB intensity 27 | uniform fixed4 _ReflectOutlineColor; 28 | //uniform float _EnvTiltX; // v[-1, 1] 29 | //uniform float _EnvTiltY; // v[-1, 1] 30 | uniform float3 _EnvMatrixRotation; 31 | uniform float4x4 _EnvMatrix; 32 | 33 | uniform fixed4 _SpecularColor; // RGB intensity 34 | uniform float _LightAngle; // v[ 0,Tau] 35 | uniform float _SpecularPower; // v[ 0, 1] 36 | uniform float _Reflectivity; // v[ 5, 15] 37 | uniform float _Diffuse; // v[ 0, 1] 38 | uniform float _Ambient; // v[ 0, 1] 39 | 40 | uniform fixed4 _UnderlayColor; // RGBA : Color + Opacity 41 | uniform float _UnderlayOffsetX; // v[-1, 1] 42 | uniform float _UnderlayOffsetY; // v[-1, 1] 43 | uniform float _UnderlayDilate; // v[-1, 1] 44 | uniform float _UnderlaySoftness; // v[ 0, 1] 45 | 46 | uniform fixed4 _GlowColor; // RGBA : Color + Intesity 47 | uniform float _GlowOffset; // v[-1, 1] 48 | uniform float _GlowOuter; // v[ 0, 1] 49 | uniform float _GlowInner; // v[ 0, 1] 50 | uniform float _GlowPower; // v[ 1, 1/(1+4*4)] 51 | 52 | // API Editable properties 53 | uniform float _ShaderFlags; 54 | uniform float _WeightNormal; 55 | uniform float _WeightBold; 56 | 57 | uniform float _ScaleRatioA; 58 | uniform float _ScaleRatioB; 59 | uniform float _ScaleRatioC; 60 | 61 | uniform float _VertexOffsetX; 62 | uniform float _VertexOffsetY; 63 | 64 | //uniform float _UseClipRect; 65 | uniform float _MaskID; 66 | uniform sampler2D _MaskTex; 67 | uniform float4 _MaskCoord; 68 | uniform float4 _ClipRect; // bottom left(x,y) : top right(z,w) 69 | //uniform float _MaskWipeControl; 70 | //uniform float _MaskEdgeSoftness; 71 | //uniform fixed4 _MaskEdgeColor; 72 | //uniform bool _MaskInverse; 73 | 74 | uniform float _MaskSoftnessX; 75 | uniform float _MaskSoftnessY; 76 | 77 | // Font Atlas properties 78 | uniform sampler2D _MainTex; 79 | uniform float _TextureWidth; 80 | uniform float _TextureHeight; 81 | uniform float _GradientScale; 82 | uniform float _ScaleX; 83 | uniform float _ScaleY; 84 | uniform float _PerspectiveFilter; 85 | uniform float _Sharpness; 86 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/NumericParsers.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing.Parsers 8 | { 9 | public class IntegralParser : ParameterParser where T : struct 10 | { 11 | private static readonly StringBuilder mBuilder = new StringBuilder(); 12 | 13 | private string mTypeName; 14 | private Func mParser; 15 | 16 | internal IntegralParser (string primitiveName, Func parse) { 17 | mTypeName = primitiveName; 18 | mParser = parse; 19 | } 20 | 21 | public override bool TryParse(ArgumentInput input, out T result) 22 | { 23 | result = default; 24 | 25 | mBuilder.Clear(); 26 | if (input.Length == 0 || char.IsWhiteSpace(input[0])) return false; // Unexpected EOL or whitespace 27 | 28 | // Check for negative or positive sign and claim it 29 | if (input[0] == '-' || input[0] == '+') 30 | { 31 | mBuilder.Append(input[0]); 32 | input.Claim(1); 33 | } 34 | 35 | while (input.Length > 0) 36 | { 37 | if (char.IsWhiteSpace(input[0])) break; 38 | else if (Parser.IsSpecial(input[0])) break; // Special character, must stop 39 | else if (!char.IsDigit(input[0])) return false; // Character not a digit 40 | 41 | mBuilder.Append(input[0]); 42 | input.Claim(); 43 | } 44 | 45 | try 46 | { 47 | result = mParser(mBuilder.ToString()); 48 | } 49 | catch (FormatException) { return false; } 50 | catch (OverflowException) { return false; } 51 | 52 | return true; 53 | } 54 | 55 | public override string GetTypeName() => mTypeName; 56 | } 57 | 58 | public class FloatingParser : ParameterParser where T : struct 59 | { 60 | private static readonly StringBuilder mBuilder = new StringBuilder(); 61 | 62 | private string mTypeName; 63 | private Func mParser; 64 | 65 | internal FloatingParser(string primitiveName, Func parse) 66 | { 67 | mTypeName = primitiveName; 68 | mParser = parse; 69 | } 70 | 71 | public override bool TryParse(ArgumentInput input, out T result) 72 | { 73 | result = default; 74 | mBuilder.Clear(); 75 | if (input.Length == 0 || char.IsWhiteSpace(input[0])) return false; // Unexpected EOL or whitespace 76 | 77 | // Check for negative or positive sign and claim it 78 | if (input[0] == '-' || input[0] == '+') 79 | { 80 | mBuilder.Append(input[0]); 81 | input.Claim(1); 82 | } 83 | 84 | bool decimalFound = false; 85 | while (input.Length > 0) 86 | { 87 | if (input[0] == '.') 88 | { 89 | if (decimalFound) return false; 90 | decimalFound = true; 91 | } 92 | else if (char.IsWhiteSpace(input[0])) break; 93 | else if (Parser.IsSpecial(input[0])) break; // Special character, must stop 94 | else if (!char.IsDigit(input[0])) return false; // Character not a digit 95 | 96 | mBuilder.Append(input[0]); 97 | input.Claim(); 98 | } 99 | 100 | try 101 | { 102 | result = mParser(mBuilder.ToString()); 103 | } 104 | catch (FormatException) { return false; } 105 | catch (OverflowException) { return false; } 106 | 107 | return true; 108 | } 109 | 110 | public override string GetTypeName() => mTypeName; 111 | 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/IEnumerableParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Cronyx.Console.Parsing.Parsers 9 | { 10 | public class IEnumerableParser : ParameterParser> 11 | { 12 | protected virtual char Seperator => ','; 13 | protected virtual (char Beginning, char End)[] GroupingChars => new[] 14 | { 15 | ('(', ')'), 16 | ('[', ']') 17 | }; 18 | 19 | public sealed override bool TryParse(ArgumentInput input, out IEnumerable result) 20 | { 21 | // This parser will recursively parse and return an IEnumerable of elements whose individual types are T 22 | // by using the parser for T. It will add these elements to another collection whose type is BackingType. 23 | // 24 | // Each element may optionally be separated by 1 (ONE) comma (','). Duplicate commas and leading or trailing 25 | // commas are not allowed. 26 | // 27 | // The IEnumerable MUST be surrounded by one of the grouping symbols defined by this class or a more derived one. 28 | // 29 | // Intermixing grouping symbols is not allowed 30 | 31 | result = null; 32 | if (input.Length == 0 || char.IsWhiteSpace(input[0])) return false; // Unexpected EOL or whitespace 33 | 34 | char? endGrouping = null; 35 | foreach (var grouping in GroupingChars) 36 | { 37 | if (input[0] == grouping.Beginning) 38 | { 39 | endGrouping = grouping.End; 40 | break; 41 | } 42 | } 43 | if (endGrouping == null) return false; // No beginning grouping symbol found, malformed input 44 | 45 | input.Claim(); // Claim initial grouping char 46 | 47 | // Create backing type 48 | List elements = new List(); 49 | ParameterParser elementParser = Parser.GetParser(); 50 | 51 | // Claim as many elements as possible 52 | while (true) 53 | { 54 | input.TrimWhitespace(); 55 | if (input.Length == 0) return false; // Unexpected EOL 56 | 57 | if (input[0] == endGrouping) 58 | { 59 | input.Claim(); // Claim end grouping char 60 | break; // Finished list of elements 61 | } else if (input[0] == Seperator) return false; // Unexpected seperator 62 | 63 | if (!elementParser.TryParse(input, out T element)) return false; // Failed to parse element 64 | elements.Add(element); 65 | 66 | input.TrimWhitespace(); // Trim any whitespace occuring after element 67 | 68 | if (input.Length == 0) return false; // Unexpected EOL 69 | if (input[0] == Seperator) 70 | { 71 | input.Claim(); // Claim seperator 72 | input.TrimWhitespace(); // Claim any whitespace occuring after the seperator 73 | if (input.Length == 0 || input[0] == Seperator || input[0] == endGrouping) return false; // Unexpected EOL, duplicate seperator, or trailing comma before grouping char 74 | } 75 | } 76 | 77 | result = elements; 78 | return true; 79 | } 80 | 81 | public override string GetFormat() => $"[{Parser.GetParser().GetFormat() ?? "foo bar"} ...]"; 82 | 83 | public override string GetTypeName() => $"{nameof(IEnumerable)}<{Parser.GetTypeName()}>"; 84 | 85 | public IEnumerableParser () 86 | { 87 | foreach (var c in GroupingChars.SelectMany(x => new[] { x.Beginning, x.End })) 88 | Parser.AddSpecialChar(c); 89 | Parser.AddSpecialChar(Seperator); 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/ArgumentInput.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing 8 | { 9 | /// 10 | /// A wrapper around that allows instances to procedurally process raw input from the console. 11 | /// 12 | public class ArgumentInput 13 | { 14 | /// 15 | /// The number of unclaimed characters remaining in the input. 16 | /// 17 | public int Length => mInput.Length; 18 | 19 | /// 20 | /// Gets the character at 21 | /// 22 | /// The position of the character 23 | /// The character at 24 | /// Thrown when is less than zero or greater than or equal to 25 | public char this[int index] => mInput[index]; 26 | 27 | private StringBuilder mInput; 28 | 29 | /// 30 | /// Constructs an object from an input string. 31 | /// 32 | /// An input string. 33 | public ArgumentInput(string input) 34 | { 35 | if (input == null) input = string.Empty; 36 | mInput = new StringBuilder(input); 37 | } 38 | 39 | /// 40 | /// Removes characters from the beginning of the input. If is not supplied, removes one character from the beginning of the input. 41 | /// 42 | /// The number of characters to claim from the beginning of the input. 43 | /// Thrown when is less than zero or greater than 44 | public void Claim(int count=1) => mInput.Remove(0, count); 45 | 46 | /// 47 | /// Attempts to match a string at the beginning of the input. 48 | /// 49 | /// 50 | /// If is null or is less than the length of , returns false. 51 | /// 52 | /// A string to match at the beginning of the input. 53 | /// The to use to compare to the input. 54 | /// A boolean indicating whether or not was found at the beginning of the input. 55 | public bool Match (string token, StringComparison comparison = StringComparison.InvariantCulture) 56 | { 57 | if (token == null) return false; 58 | if (Length < token.Length) return false; 59 | return mInput.ToString(0, token.Length).Equals(token); 60 | } 61 | 62 | /// 63 | /// Trims and claims all whitespace characters from the beginning of the input. 64 | /// 65 | public void TrimWhitespace () 66 | { 67 | while (Length > 0 && char.IsWhiteSpace(mInput[0])) 68 | Claim(); 69 | } 70 | 71 | /// 72 | /// Gets a string representing the current state of the input. 73 | /// 74 | /// A string representing the current state of the input. 75 | public override string ToString() => mInput.ToString(); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Outline 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _FaceDilate: 0.1 55 | - _FaceUVSpeedX: 0 56 | - _FaceUVSpeedY: 0 57 | - _GlowInner: 0.05 58 | - _GlowOffset: 0 59 | - _GlowOuter: 0.05 60 | - _GlowPower: 0.75 61 | - _GradientScale: 10 62 | - _LightAngle: 3.1416 63 | - _MaskSoftnessX: 0 64 | - _MaskSoftnessY: 0 65 | - _OutlineSoftness: 0 66 | - _OutlineUVSpeedX: 0 67 | - _OutlineUVSpeedY: 0 68 | - _OutlineWidth: 0.1 69 | - _PerspectiveFilter: 0.875 70 | - _Reflectivity: 10 71 | - _ScaleRatioA: 0.9 72 | - _ScaleRatioB: 0.73125 73 | - _ScaleRatioC: 0.64125 74 | - _ScaleX: 1 75 | - _ScaleY: 1 76 | - _ShaderFlags: 0 77 | - _Sharpness: 0 78 | - _SpecularPower: 2 79 | - _Stencil: 0 80 | - _StencilComp: 8 81 | - _StencilOp: 0 82 | - _StencilReadMask: 255 83 | - _StencilWriteMask: 255 84 | - _TextureHeight: 1024 85 | - _TextureWidth: 1024 86 | - _UnderlayDilate: 0 87 | - _UnderlayOffsetX: 0 88 | - _UnderlayOffsetY: 0 89 | - _UnderlaySoftness: 0 90 | - _VertexOffsetX: 0 91 | - _VertexOffsetY: 0 92 | - _WeightBold: 0.75 93 | - _WeightNormal: 0 94 | m_Colors: 95 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 96 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 97 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 98 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 99 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 100 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 101 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 102 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 104 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 105 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Assets/Scrollbar.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba2d84affc2563a4eb74970008fa26f5 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | vTOnly: 0 27 | grayScaleToAlpha: 0 28 | generateCubemap: 6 29 | cubemapConvolution: 0 30 | seamlessCubemap: 0 31 | textureFormat: 1 32 | maxTextureSize: 2048 33 | textureSettings: 34 | serializedVersion: 2 35 | filterMode: -1 36 | aniso: -1 37 | mipBias: -100 38 | wrapU: 1 39 | wrapV: 1 40 | wrapW: -1 41 | nPOTScale: 0 42 | lightmap: 0 43 | compressionQuality: 50 44 | spriteMode: 1 45 | spriteExtrude: 1 46 | spriteMeshType: 0 47 | alignment: 0 48 | spritePivot: {x: 0.5, y: 0.5} 49 | spritePixelsToUnits: 1200 50 | spriteBorder: {x: 45, y: 45, z: 45, w: 45} 51 | spriteGenerateFallbackPhysicsShape: 1 52 | alphaUsage: 1 53 | alphaIsTransparency: 1 54 | spriteTessellationDetail: -1 55 | textureType: 8 56 | textureShape: 1 57 | singleChannelComponent: 0 58 | flipbookRows: 1 59 | flipbookColumns: 1 60 | maxTextureSizeSet: 0 61 | compressionQualitySet: 0 62 | textureFormatSet: 0 63 | ignorePngGamma: 0 64 | applyGammaDecoding: 0 65 | platformSettings: 66 | - serializedVersion: 3 67 | buildTarget: DefaultTexturePlatform 68 | maxTextureSize: 2048 69 | resizeAlgorithm: 0 70 | textureFormat: -1 71 | textureCompression: 1 72 | compressionQuality: 50 73 | crunchedCompression: 0 74 | allowsAlphaSplitting: 0 75 | overridden: 0 76 | androidETC2FallbackOverride: 0 77 | forceMaximumCompressionQuality_BC6H_BC7: 0 78 | - serializedVersion: 3 79 | buildTarget: Standalone 80 | maxTextureSize: 2048 81 | resizeAlgorithm: 0 82 | textureFormat: -1 83 | textureCompression: 1 84 | compressionQuality: 50 85 | crunchedCompression: 0 86 | allowsAlphaSplitting: 0 87 | overridden: 0 88 | androidETC2FallbackOverride: 0 89 | forceMaximumCompressionQuality_BC6H_BC7: 0 90 | - serializedVersion: 3 91 | buildTarget: Android 92 | maxTextureSize: 2048 93 | resizeAlgorithm: 0 94 | textureFormat: -1 95 | textureCompression: 1 96 | compressionQuality: 50 97 | crunchedCompression: 0 98 | allowsAlphaSplitting: 0 99 | overridden: 0 100 | androidETC2FallbackOverride: 0 101 | forceMaximumCompressionQuality_BC6H_BC7: 0 102 | spriteSheet: 103 | serializedVersion: 2 104 | sprites: [] 105 | outline: [] 106 | physicsShape: [] 107 | bones: [] 108 | spriteID: 5e97eb03825dee720800000000000000 109 | internalID: 0 110 | vertices: [] 111 | indices: 112 | edges: [] 113 | weights: [] 114 | secondaryTextures: [] 115 | spritePackingTag: 116 | pSDRemoveMatte: 0 117 | pSDShowRemoveMatteOption: 0 118 | userData: 119 | assetBundleName: 120 | assetBundleVariant: 121 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Drop Shadow 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON UNDERLAY_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _DiffusePower: 1 55 | - _FaceDilate: 0.1 56 | - _FaceUVSpeedX: 0 57 | - _FaceUVSpeedY: 0 58 | - _GlowInner: 0.05 59 | - _GlowOffset: 0 60 | - _GlowOuter: 0.05 61 | - _GlowPower: 0.75 62 | - _GradientScale: 10 63 | - _LightAngle: 3.1416 64 | - _MaskSoftnessX: 0 65 | - _MaskSoftnessY: 0 66 | - _OutlineSoftness: 0 67 | - _OutlineUVSpeedX: 0 68 | - _OutlineUVSpeedY: 0 69 | - _OutlineWidth: 0.1 70 | - _PerspectiveFilter: 0.875 71 | - _Reflectivity: 10 72 | - _ScaleRatioA: 0.9 73 | - _ScaleRatioB: 0.73125 74 | - _ScaleRatioC: 0.64125 75 | - _ScaleX: 1 76 | - _ScaleY: 1 77 | - _ShaderFlags: 0 78 | - _Sharpness: 0 79 | - _SpecularPower: 2 80 | - _Stencil: 0 81 | - _StencilComp: 8 82 | - _StencilOp: 0 83 | - _StencilReadMask: 255 84 | - _StencilWriteMask: 255 85 | - _TextureHeight: 1024 86 | - _TextureWidth: 1024 87 | - _UnderlayDilate: 0 88 | - _UnderlayOffsetX: 0.5 89 | - _UnderlayOffsetY: -0.5 90 | - _UnderlaySoftness: 0.05 91 | - _VertexOffsetX: 0 92 | - _VertexOffsetY: 0 93 | - _WeightBold: 0.75 94 | - _WeightNormal: 0 95 | m_Colors: 96 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 97 | - _Color: {r: 1, g: 1, b: 1, a: 1} 98 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 99 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 100 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 101 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 102 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 104 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 105 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 106 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 107 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile SSD.shader: -------------------------------------------------------------------------------- 1 | // Simplified SDF shader: 2 | // - No Shading Option (bevel / bump / env map) 3 | // - No Glow Option 4 | // - Softness is applied on both side of the outline 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field SSD" { 7 | 8 | Properties { 9 | [HDR]_FaceColor ("Face Color", Color) = (1,1,1,1) 10 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 11 | 12 | [HDR]_OutlineColor ("Outline Color", Color) = (0,0,0,1) 13 | _OutlineWidth ("Outline Thickness", Range(0,1)) = 0 14 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 15 | 16 | [HDR]_UnderlayColor ("Border Color", Color) = (0,0,0,.5) 17 | _UnderlayOffsetX ("Border OffsetX", Range(-1,1)) = 0 18 | _UnderlayOffsetY ("Border OffsetY", Range(-1,1)) = 0 19 | _UnderlayDilate ("Border Dilate", Range(-1,1)) = 0 20 | _UnderlaySoftness ("Border Softness", Range(0,1)) = 0 21 | 22 | _WeightNormal ("Weight Normal", float) = 0 23 | _WeightBold ("Weight Bold", float) = .5 24 | 25 | _ShaderFlags ("Flags", float) = 0 26 | _ScaleRatioA ("Scale RatioA", float) = 1 27 | _ScaleRatioB ("Scale RatioB", float) = 1 28 | _ScaleRatioC ("Scale RatioC", float) = 1 29 | 30 | _MainTex ("Font Atlas", 2D) = "white" {} 31 | _TextureWidth ("Texture Width", float) = 512 32 | _TextureHeight ("Texture Height", float) = 512 33 | _GradientScale ("Gradient Scale", float) = 5 34 | _ScaleX ("Scale X", float) = 1 35 | _ScaleY ("Scale Y", float) = 1 36 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 37 | _Sharpness ("Sharpness", Range(-1,1)) = 0 38 | 39 | _VertexOffsetX ("Vertex OffsetX", float) = 0 40 | _VertexOffsetY ("Vertex OffsetY", float) = 0 41 | 42 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 43 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 44 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 45 | _MaskTex ("Mask Texture", 2D) = "white" {} 46 | _MaskInverse ("Inverse", float) = 0 47 | _MaskEdgeColor ("Edge Color", Color) = (1,1,1,1) 48 | _MaskEdgeSoftness ("Edge Softness", Range(0, 1)) = 0.01 49 | _MaskWipeControl ("Wipe Position", Range(0, 1)) = 0.5 50 | 51 | _StencilComp ("Stencil Comparison", Float) = 8 52 | _Stencil ("Stencil ID", Float) = 0 53 | _StencilOp ("Stencil Operation", Float) = 0 54 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 55 | _StencilReadMask ("Stencil Read Mask", Float) = 255 56 | 57 | _CullMode ("Cull Mode", Float) = 0 58 | _ColorMask ("Color Mask", Float) = 15 59 | } 60 | 61 | SubShader { 62 | Tags { 63 | "Queue"="Transparent" 64 | "IgnoreProjector"="True" 65 | "RenderType"="Transparent" 66 | } 67 | 68 | Stencil 69 | { 70 | Ref [_Stencil] 71 | Comp [_StencilComp] 72 | Pass [_StencilOp] 73 | ReadMask [_StencilReadMask] 74 | WriteMask [_StencilWriteMask] 75 | } 76 | 77 | Cull [_CullMode] 78 | ZWrite Off 79 | Lighting Off 80 | Fog { Mode Off } 81 | ZTest [unity_GUIZTestMode] 82 | Blend One OneMinusSrcAlpha 83 | ColorMask [_ColorMask] 84 | 85 | Pass { 86 | CGPROGRAM 87 | #pragma vertex VertShader 88 | #pragma fragment PixShader 89 | #pragma shader_feature __ OUTLINE_ON 90 | #pragma shader_feature __ UNDERLAY_ON UNDERLAY_INNER 91 | 92 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 93 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 94 | 95 | #include "UnityCG.cginc" 96 | #include "UnityUI.cginc" 97 | #include "TMPro_Properties.cginc" 98 | 99 | #include "TMPro_Mobile.cginc" 100 | 101 | ENDCG 102 | } 103 | } 104 | 105 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 106 | } 107 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMPro_Surface.cginc: -------------------------------------------------------------------------------- 1 | void VertShader(inout appdata_full v, out Input data) 2 | { 3 | v.vertex.x += _VertexOffsetX; 4 | v.vertex.y += _VertexOffsetY; 5 | 6 | UNITY_INITIALIZE_OUTPUT(Input, data); 7 | 8 | float bold = step(v.texcoord1.y, 0); 9 | 10 | // Generate normal for backface 11 | float3 view = ObjSpaceViewDir(v.vertex); 12 | v.normal *= sign(dot(v.normal, view)); 13 | 14 | #if USE_DERIVATIVE 15 | data.param.y = 1; 16 | #else 17 | float4 vert = v.vertex; 18 | float4 vPosition = UnityObjectToClipPos(vert); 19 | float2 pixelSize = vPosition.w; 20 | 21 | pixelSize /= float2(_ScaleX, _ScaleY) * mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy); 22 | float scale = rsqrt(dot(pixelSize, pixelSize)); 23 | scale *= abs(v.texcoord1.y) * _GradientScale * (_Sharpness + 1); 24 | scale = lerp(scale * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(v.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 25 | data.param.y = scale; 26 | #endif 27 | 28 | data.param.x = (lerp(_WeightNormal, _WeightBold, bold) / 4.0 + _FaceDilate) * _ScaleRatioA * 0.5; // 29 | 30 | v.texcoord1.xy = UnpackUV(v.texcoord1.x); 31 | data.viewDirEnv = mul((float3x3)_EnvMatrix, WorldSpaceViewDir(v.vertex)); 32 | } 33 | 34 | void PixShader(Input input, inout SurfaceOutput o) 35 | { 36 | 37 | #if USE_DERIVATIVE 38 | float2 pixelSize = float2(ddx(input.uv_MainTex.y), ddy(input.uv_MainTex.y)); 39 | pixelSize *= _TextureWidth * .75; 40 | float scale = rsqrt(dot(pixelSize, pixelSize)) * _GradientScale * (_Sharpness + 1); 41 | #else 42 | float scale = input.param.y; 43 | #endif 44 | 45 | // Signed distance 46 | float c = tex2D(_MainTex, input.uv_MainTex).a; 47 | float sd = (.5 - c - input.param.x) * scale + .5; 48 | float outline = _OutlineWidth*_ScaleRatioA * scale; 49 | float softness = _OutlineSoftness*_ScaleRatioA * scale; 50 | 51 | // Color & Alpha 52 | float4 faceColor = _FaceColor; 53 | float4 outlineColor = _OutlineColor; 54 | faceColor *= input.color; 55 | outlineColor.a *= input.color.a; 56 | faceColor *= tex2D(_FaceTex, float2(input.uv2_FaceTex.x + _FaceUVSpeedX * _Time.y, input.uv2_FaceTex.y + _FaceUVSpeedY * _Time.y)); 57 | outlineColor *= tex2D(_OutlineTex, float2(input.uv2_OutlineTex.x + _OutlineUVSpeedX * _Time.y, input.uv2_OutlineTex.y + _OutlineUVSpeedY * _Time.y)); 58 | faceColor = GetColor(sd, faceColor, outlineColor, outline, softness); 59 | faceColor.rgb /= max(faceColor.a, 0.0001); 60 | 61 | #if BEVEL_ON 62 | float3 delta = float3(1.0 / _TextureWidth, 1.0 / _TextureHeight, 0.0); 63 | 64 | float4 smp4x = {tex2D(_MainTex, input.uv_MainTex - delta.xz).a, 65 | tex2D(_MainTex, input.uv_MainTex + delta.xz).a, 66 | tex2D(_MainTex, input.uv_MainTex - delta.zy).a, 67 | tex2D(_MainTex, input.uv_MainTex + delta.zy).a }; 68 | 69 | // Face Normal 70 | float3 n = GetSurfaceNormal(smp4x, input.param.x); 71 | 72 | // Bumpmap 73 | float3 bump = UnpackNormal(tex2D(_BumpMap, input.uv2_FaceTex.xy)).xyz; 74 | bump *= lerp(_BumpFace, _BumpOutline, saturate(sd + outline * 0.5)); 75 | bump = lerp(float3(0, 0, 1), bump, faceColor.a); 76 | n = normalize(n - bump); 77 | 78 | // Cubemap reflection 79 | fixed4 reflcol = texCUBE(_Cube, reflect(input.viewDirEnv, mul((float3x3)unity_ObjectToWorld, n))); 80 | float3 emission = reflcol.rgb * lerp(_ReflectFaceColor.rgb, _ReflectOutlineColor.rgb, saturate(sd + outline * 0.5)) * faceColor.a; 81 | #else 82 | float3 n = float3(0, 0, -1); 83 | float3 emission = float3(0, 0, 0); 84 | #endif 85 | 86 | #if GLOW_ON 87 | float4 glowColor = GetGlowColor(sd, scale); 88 | glowColor.a *= input.color.a; 89 | emission += glowColor.rgb*glowColor.a; 90 | faceColor = BlendARGB(glowColor, faceColor); 91 | faceColor.rgb /= max(faceColor.a, 0.0001); 92 | #endif 93 | 94 | // Set Standard output structure 95 | o.Albedo = faceColor.rgb; 96 | o.Normal = -n; 97 | o.Emission = emission; 98 | o.Specular = lerp(_FaceShininess, _OutlineShininess, saturate(sd + outline * 0.5)); 99 | o.Gloss = 1; 100 | o.Alpha = faceColor.a; 101 | } 102 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_Bitmap.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Bitmap" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _FaceTex ("Font Texture", 2D) = "white" {} 6 | [HDR]_FaceColor ("Text Color", Color) = (1,1,1,1) 7 | 8 | _VertexOffsetX ("Vertex OffsetX", float) = 0 9 | _VertexOffsetY ("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | 15 | _StencilComp("Stencil Comparison", Float) = 8 16 | _Stencil("Stencil ID", Float) = 0 17 | _StencilOp("Stencil Operation", Float) = 0 18 | _StencilWriteMask("Stencil Write Mask", Float) = 255 19 | _StencilReadMask("Stencil Read Mask", Float) = 255 20 | 21 | _CullMode("Cull Mode", Float) = 0 22 | _ColorMask("Color Mask", Float) = 15 23 | } 24 | 25 | SubShader{ 26 | 27 | Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" } 28 | 29 | Stencil 30 | { 31 | Ref[_Stencil] 32 | Comp[_StencilComp] 33 | Pass[_StencilOp] 34 | ReadMask[_StencilReadMask] 35 | WriteMask[_StencilWriteMask] 36 | } 37 | 38 | 39 | Lighting Off 40 | Cull [_CullMode] 41 | ZTest [unity_GUIZTestMode] 42 | ZWrite Off 43 | Fog { Mode Off } 44 | Blend SrcAlpha OneMinusSrcAlpha 45 | ColorMask[_ColorMask] 46 | 47 | Pass { 48 | CGPROGRAM 49 | #pragma vertex vert 50 | #pragma fragment frag 51 | 52 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 53 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 54 | 55 | 56 | #include "UnityCG.cginc" 57 | 58 | struct appdata_t { 59 | float4 vertex : POSITION; 60 | fixed4 color : COLOR; 61 | float2 texcoord0 : TEXCOORD0; 62 | float2 texcoord1 : TEXCOORD1; 63 | }; 64 | 65 | struct v2f { 66 | float4 vertex : SV_POSITION; 67 | fixed4 color : COLOR; 68 | float2 texcoord0 : TEXCOORD0; 69 | float2 texcoord1 : TEXCOORD1; 70 | float4 mask : TEXCOORD2; 71 | }; 72 | 73 | uniform sampler2D _MainTex; 74 | uniform sampler2D _FaceTex; 75 | uniform float4 _FaceTex_ST; 76 | uniform fixed4 _FaceColor; 77 | 78 | uniform float _VertexOffsetX; 79 | uniform float _VertexOffsetY; 80 | uniform float4 _ClipRect; 81 | uniform float _MaskSoftnessX; 82 | uniform float _MaskSoftnessY; 83 | 84 | float2 UnpackUV(float uv) 85 | { 86 | float2 output; 87 | output.x = floor(uv / 4096); 88 | output.y = uv - 4096 * output.x; 89 | 90 | return output * 0.001953125; 91 | } 92 | 93 | v2f vert (appdata_t v) 94 | { 95 | float4 vert = v.vertex; 96 | vert.x += _VertexOffsetX; 97 | vert.y += _VertexOffsetY; 98 | 99 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 100 | 101 | float4 vPosition = UnityPixelSnap(UnityObjectToClipPos(vert)); 102 | 103 | fixed4 faceColor = v.color; 104 | faceColor *= _FaceColor; 105 | 106 | v2f OUT; 107 | OUT.vertex = vPosition; 108 | OUT.color = faceColor; 109 | OUT.texcoord0 = v.texcoord0; 110 | OUT.texcoord1 = TRANSFORM_TEX(UnpackUV(v.texcoord1), _FaceTex); 111 | float2 pixelSize = vPosition.w; 112 | pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 113 | 114 | // Clamp _ClipRect to 16bit. 115 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 116 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 117 | 118 | return OUT; 119 | } 120 | 121 | fixed4 frag (v2f IN) : SV_Target 122 | { 123 | fixed4 color = tex2D(_MainTex, IN.texcoord0); 124 | color = fixed4 (tex2D(_FaceTex, IN.texcoord1).rgb * IN.color.rgb, IN.color.a * color.a); 125 | 126 | // Alternative implementation to UnityGet2DClipping with support for softness. 127 | #if UNITY_UI_CLIP_RECT 128 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 129 | color *= m.x * m.y; 130 | #endif 131 | 132 | #if UNITY_UI_ALPHACLIP 133 | clip(color.a - 0.001); 134 | #endif 135 | 136 | return color; 137 | } 138 | ENDCG 139 | } 140 | } 141 | 142 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 143 | } 144 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Custom-Atlas.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Bitmap Custom Atlas" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _FaceTex ("Font Texture", 2D) = "white" {} 6 | [HDR]_FaceColor ("Text Color", Color) = (1,1,1,1) 7 | 8 | _VertexOffsetX ("Vertex OffsetX", float) = 0 9 | _VertexOffsetY ("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | _Padding ("Padding", float) = 0 15 | 16 | _StencilComp("Stencil Comparison", Float) = 8 17 | _Stencil("Stencil ID", Float) = 0 18 | _StencilOp("Stencil Operation", Float) = 0 19 | _StencilWriteMask("Stencil Write Mask", Float) = 255 20 | _StencilReadMask("Stencil Read Mask", Float) = 255 21 | 22 | _CullMode("Cull Mode", Float) = 0 23 | _ColorMask("Color Mask", Float) = 15 24 | } 25 | 26 | SubShader{ 27 | 28 | Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" } 29 | 30 | Stencil 31 | { 32 | Ref[_Stencil] 33 | Comp[_StencilComp] 34 | Pass[_StencilOp] 35 | ReadMask[_StencilReadMask] 36 | WriteMask[_StencilWriteMask] 37 | } 38 | 39 | 40 | Lighting Off 41 | Cull [_CullMode] 42 | ZTest [unity_GUIZTestMode] 43 | ZWrite Off 44 | Fog { Mode Off } 45 | Blend SrcAlpha OneMinusSrcAlpha 46 | ColorMask[_ColorMask] 47 | 48 | Pass { 49 | CGPROGRAM 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | 53 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 54 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 55 | 56 | 57 | #include "UnityCG.cginc" 58 | 59 | struct appdata_t { 60 | float4 vertex : POSITION; 61 | fixed4 color : COLOR; 62 | float2 texcoord0 : TEXCOORD0; 63 | float2 texcoord1 : TEXCOORD1; 64 | }; 65 | 66 | struct v2f { 67 | float4 vertex : SV_POSITION; 68 | fixed4 color : COLOR; 69 | float2 texcoord0 : TEXCOORD0; 70 | float2 texcoord1 : TEXCOORD1; 71 | float4 mask : TEXCOORD2; 72 | }; 73 | 74 | uniform sampler2D _MainTex; 75 | uniform sampler2D _FaceTex; 76 | uniform float4 _FaceTex_ST; 77 | uniform fixed4 _FaceColor; 78 | 79 | uniform float _VertexOffsetX; 80 | uniform float _VertexOffsetY; 81 | uniform float4 _ClipRect; 82 | uniform float _MaskSoftnessX; 83 | uniform float _MaskSoftnessY; 84 | 85 | float2 UnpackUV(float uv) 86 | { 87 | float2 output; 88 | output.x = floor(uv / 4096); 89 | output.y = uv - 4096 * output.x; 90 | 91 | return output * 0.001953125; 92 | } 93 | 94 | v2f vert (appdata_t v) 95 | { 96 | float4 vert = v.vertex; 97 | vert.x += _VertexOffsetX; 98 | vert.y += _VertexOffsetY; 99 | 100 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 101 | 102 | float4 vPosition = UnityPixelSnap(UnityObjectToClipPos(vert)); 103 | 104 | fixed4 faceColor = v.color; 105 | faceColor *= _FaceColor; 106 | 107 | v2f OUT; 108 | OUT.vertex = vPosition; 109 | OUT.color = faceColor; 110 | OUT.texcoord0 = v.texcoord0; 111 | OUT.texcoord1 = TRANSFORM_TEX(UnpackUV(v.texcoord1), _FaceTex); 112 | float2 pixelSize = vPosition.w; 113 | pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 114 | 115 | // Clamp _ClipRect to 16bit. 116 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 117 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 118 | 119 | return OUT; 120 | } 121 | 122 | fixed4 frag (v2f IN) : SV_Target 123 | { 124 | fixed4 color = tex2D(_MainTex, IN.texcoord0) * tex2D(_FaceTex, IN.texcoord1) * IN.color; 125 | 126 | // Alternative implementation to UnityGet2DClipping with support for softness. 127 | #if UNITY_UI_CLIP_RECT 128 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 129 | color *= m.x * m.y; 130 | #endif 131 | 132 | #if UNITY_UI_ALPHACLIP 133 | clip(color.a - 0.001); 134 | #endif 135 | 136 | return color; 137 | } 138 | ENDCG 139 | } 140 | } 141 | 142 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 143 | } 144 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface-Mobile.shader: -------------------------------------------------------------------------------- 1 | // Simplified version of the SDF Surface shader : 2 | // - No support for Bevel, Bump or envmap 3 | // - Diffuse only lighting 4 | // - Fully supports only 1 directional light. Other lights can affect it, but it will be per-vertex/SH. 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field (Surface)" { 7 | 8 | Properties { 9 | _FaceTex ("Fill Texture", 2D) = "white" {} 10 | [HDR]_FaceColor ("Fill Color", Color) = (1,1,1,1) 11 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 12 | 13 | [HDR]_OutlineColor ("Outline Color", Color) = (0,0,0,1) 14 | _OutlineTex ("Outline Texture", 2D) = "white" {} 15 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 16 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 17 | 18 | [HDR]_GlowColor ("Color", Color) = (0, 1, 0, 0.5) 19 | _GlowOffset ("Offset", Range(-1,1)) = 0 20 | _GlowInner ("Inner", Range(0,1)) = 0.05 21 | _GlowOuter ("Outer", Range(0,1)) = 0.05 22 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 23 | 24 | _WeightNormal ("Weight Normal", float) = 0 25 | _WeightBold ("Weight Bold", float) = 0.5 26 | 27 | // Should not be directly exposed to the user 28 | _ShaderFlags ("Flags", float) = 0 29 | _ScaleRatioA ("Scale RatioA", float) = 1 30 | _ScaleRatioB ("Scale RatioB", float) = 1 31 | _ScaleRatioC ("Scale RatioC", float) = 1 32 | 33 | _MainTex ("Font Atlas", 2D) = "white" {} 34 | _TextureWidth ("Texture Width", float) = 512 35 | _TextureHeight ("Texture Height", float) = 512 36 | _GradientScale ("Gradient Scale", float) = 5.0 37 | _ScaleX ("Scale X", float) = 1.0 38 | _ScaleY ("Scale Y", float) = 1.0 39 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 40 | _Sharpness ("Sharpness", Range(-1,1)) = 0 41 | 42 | _VertexOffsetX ("Vertex OffsetX", float) = 0 43 | _VertexOffsetY ("Vertex OffsetY", float) = 0 44 | 45 | _CullMode ("Cull Mode", Float) = 0 46 | //_MaskCoord ("Mask Coords", vector) = (0,0,0,0) 47 | //_MaskSoftness ("Mask Softness", float) = 0 48 | } 49 | 50 | SubShader { 51 | 52 | Tags { 53 | "Queue"="Transparent" 54 | "IgnoreProjector"="True" 55 | "RenderType"="Transparent" 56 | } 57 | 58 | LOD 300 59 | Cull [_CullMode] 60 | 61 | CGPROGRAM 62 | #pragma surface PixShader Lambert alpha:blend vertex:VertShader noforwardadd nolightmap nodirlightmap 63 | #pragma target 3.0 64 | #pragma shader_feature __ GLOW_ON 65 | 66 | #include "TMPro_Properties.cginc" 67 | #include "TMPro.cginc" 68 | 69 | half _FaceShininess; 70 | half _OutlineShininess; 71 | 72 | struct Input 73 | { 74 | fixed4 color : COLOR; 75 | float2 uv_MainTex; 76 | float2 uv2_FaceTex; 77 | float2 uv2_OutlineTex; 78 | float2 param; // Weight, Scale 79 | float3 viewDirEnv; 80 | }; 81 | 82 | #include "TMPro_Surface.cginc" 83 | 84 | ENDCG 85 | 86 | // Pass to render object as a shadow caster 87 | Pass 88 | { 89 | Name "Caster" 90 | Tags { "LightMode" = "ShadowCaster" } 91 | Offset 1, 1 92 | 93 | Fog {Mode Off} 94 | ZWrite On ZTest LEqual Cull Off 95 | 96 | CGPROGRAM 97 | #pragma vertex vert 98 | #pragma fragment frag 99 | #pragma multi_compile_shadowcaster 100 | #include "UnityCG.cginc" 101 | 102 | struct v2f { 103 | V2F_SHADOW_CASTER; 104 | float2 uv : TEXCOORD1; 105 | float2 uv2 : TEXCOORD3; 106 | float alphaClip : TEXCOORD2; 107 | }; 108 | 109 | uniform float4 _MainTex_ST; 110 | uniform float4 _OutlineTex_ST; 111 | float _OutlineWidth; 112 | float _FaceDilate; 113 | float _ScaleRatioA; 114 | 115 | v2f vert( appdata_base v ) 116 | { 117 | v2f o; 118 | TRANSFER_SHADOW_CASTER(o) 119 | o.uv = TRANSFORM_TEX(v.texcoord, _MainTex); 120 | o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex); 121 | o.alphaClip = o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2; 122 | return o; 123 | } 124 | 125 | uniform sampler2D _MainTex; 126 | 127 | float4 frag(v2f i) : COLOR 128 | { 129 | fixed4 texcol = tex2D(_MainTex, i.uv).a; 130 | clip(texcol.a - i.alphaClip); 131 | SHADOW_CASTER_FRAGMENT(i) 132 | } 133 | ENDCG 134 | } 135 | } 136 | 137 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 138 | } 139 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Mobile.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Mobile/Bitmap" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | [HDR]_Color ("Text Color", Color) = (1,1,1,1) 6 | _DiffusePower ("Diffuse Power", Range(1.0,4.0)) = 1.0 7 | 8 | _VertexOffsetX("Vertex OffsetX", float) = 0 9 | _VertexOffsetY("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | 15 | _StencilComp("Stencil Comparison", Float) = 8 16 | _Stencil("Stencil ID", Float) = 0 17 | _StencilOp("Stencil Operation", Float) = 0 18 | _StencilWriteMask("Stencil Write Mask", Float) = 255 19 | _StencilReadMask("Stencil Read Mask", Float) = 255 20 | 21 | _CullMode("Cull Mode", Float) = 0 22 | _ColorMask("Color Mask", Float) = 15 23 | } 24 | 25 | SubShader { 26 | 27 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 28 | 29 | Stencil 30 | { 31 | Ref[_Stencil] 32 | Comp[_StencilComp] 33 | Pass[_StencilOp] 34 | ReadMask[_StencilReadMask] 35 | WriteMask[_StencilWriteMask] 36 | } 37 | 38 | 39 | Lighting Off 40 | Cull [_CullMode] 41 | ZTest [unity_GUIZTestMode] 42 | ZWrite Off 43 | Fog { Mode Off } 44 | Blend SrcAlpha OneMinusSrcAlpha 45 | ColorMask[_ColorMask] 46 | 47 | Pass { 48 | CGPROGRAM 49 | #pragma vertex vert 50 | #pragma fragment frag 51 | #pragma fragmentoption ARB_precision_hint_fastest 52 | 53 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 54 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 55 | 56 | 57 | #include "UnityCG.cginc" 58 | 59 | struct appdata_t { 60 | float4 vertex : POSITION; 61 | fixed4 color : COLOR; 62 | float2 texcoord0 : TEXCOORD0; 63 | float2 texcoord1 : TEXCOORD1; 64 | }; 65 | 66 | struct v2f { 67 | float4 vertex : POSITION; 68 | fixed4 color : COLOR; 69 | float2 texcoord0 : TEXCOORD0; 70 | float4 mask : TEXCOORD2; 71 | }; 72 | 73 | sampler2D _MainTex; 74 | fixed4 _Color; 75 | float _DiffusePower; 76 | 77 | uniform float _VertexOffsetX; 78 | uniform float _VertexOffsetY; 79 | uniform float4 _ClipRect; 80 | uniform float _MaskSoftnessX; 81 | uniform float _MaskSoftnessY; 82 | 83 | v2f vert (appdata_t v) 84 | { 85 | v2f OUT; 86 | float4 vert = v.vertex; 87 | vert.x += _VertexOffsetX; 88 | vert.y += _VertexOffsetY; 89 | 90 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 91 | 92 | OUT.vertex = UnityPixelSnap(UnityObjectToClipPos(vert)); 93 | OUT.color = v.color; 94 | OUT.color *= _Color; 95 | OUT.color.rgb *= _DiffusePower; 96 | OUT.texcoord0 = v.texcoord0; 97 | 98 | float2 pixelSize = OUT.vertex.w; 99 | //pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 100 | 101 | // Clamp _ClipRect to 16bit. 102 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 103 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 104 | 105 | return OUT; 106 | } 107 | 108 | fixed4 frag (v2f IN) : COLOR 109 | { 110 | fixed4 color = fixed4(IN.color.rgb, IN.color.a * tex2D(_MainTex, IN.texcoord0).a); 111 | 112 | // Alternative implementation to UnityGet2DClipping with support for softness. 113 | #if UNITY_UI_CLIP_RECT 114 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 115 | color *= m.x * m.y; 116 | #endif 117 | 118 | #if UNITY_UI_ALPHACLIP 119 | clip(color.a - 0.001); 120 | #endif 121 | 122 | return color; 123 | } 124 | ENDCG 125 | } 126 | } 127 | 128 | SubShader { 129 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 130 | Lighting Off Cull Off ZTest Always ZWrite Off Fog { Mode Off } 131 | Blend SrcAlpha OneMinusSrcAlpha 132 | BindChannels { 133 | Bind "Color", color 134 | Bind "Vertex", vertex 135 | Bind "TexCoord", texcoord0 136 | } 137 | Pass { 138 | SetTexture [_MainTex] { 139 | constantColor [_Color] combine constant * primary, constant * texture 140 | } 141 | } 142 | } 143 | 144 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 145 | } 146 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Commands/Shell/HelpCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Text.RegularExpressions; 6 | using System.Threading.Tasks; 7 | using UnityEngine; 8 | 9 | namespace Cronyx.Console.Commands.Shell 10 | { 11 | [Essential, Command(kCommandName, Description = "Displays help information about available commands")] 12 | internal class HelpCommand : IConsoleCommand 13 | { 14 | private const string kCommandName = "help"; 15 | private static readonly string kUsage = $"usage: {kCommandName} [command]"; 16 | 17 | private static readonly string kEssentialColor = ColorUtility.ToHtmlStringRGB(new Color(76f / 255, 146f / 255, 245f / 255)); 18 | 19 | private const int kIndent = 4; 20 | 21 | public string Help { get; } = $"{kUsage}\nIf no command is provided, lists all available commands."; 22 | 23 | private void LogWarning(object message) => DeveloperConsole.LogWarning($"{kCommandName}: {message}"); 24 | 25 | public void Invoke(string data) 26 | { 27 | var args = DeveloperConsole.SplitArgs(data); 28 | if (args.Length > 1) LogWarning(kUsage); 29 | if (args.Length == 0) 30 | { 31 | // No arguments provided, list all commands 32 | 33 | // Sort commands alphabetically 34 | var commands = from command in DeveloperConsole.Commands 35 | orderby command.Name 36 | select command; 37 | 38 | const int kRichTextMargin = 23; // Add characters for the additional rich text tags 39 | var commandColumnWidth = commands.Select(command => command.Name).Max(name => name.Length) + kIndent; 40 | 41 | // Compile string of all commands and descriptions 42 | StringBuilder sb = new StringBuilder(); 43 | 44 | string essentialRowFormat = $"{{0,{-commandColumnWidth - kRichTextMargin}}}{{1}}"; 45 | string rowFormat = $"{{0,{-commandColumnWidth}}}{{1}}"; 46 | 47 | foreach (var command in commands) 48 | { 49 | string commandName = command.Name; 50 | 51 | // Show commands in a special color if they are essential 52 | if (command.Essential) commandName = $"{commandName}"; 53 | 54 | if (string.IsNullOrWhiteSpace(command.Description)) sb.AppendLine(command.Name); // No description, so don't print it 55 | else 56 | { 57 | // There is a description. Split it into lines and then print it out with the proper column indentation 58 | var lines = Regex.Split(command.Description, "\r\n|\r|\n"); 59 | sb.AppendLine(string.Format(command.Essential ? essentialRowFormat : rowFormat, commandName, lines[0])); 60 | for (int i = 1; i < lines.Length; i++) 61 | sb.AppendLine(string.Format(rowFormat, string.Empty, lines[i])); 62 | } 63 | } 64 | DeveloperConsole.Log(sb.ToString()); 65 | } 66 | else if (args.Length == 1) 67 | { 68 | var cmdName = args[0].Trim().ToLower(); 69 | var commands = DeveloperConsole.Console.mCommands; 70 | 71 | foreach (var pair in commands) 72 | { 73 | if (pair.Key.Equals(cmdName)) 74 | { 75 | var description = pair.Value.Description; 76 | var help = pair.Value.Command.Help; 77 | 78 | if (string.IsNullOrWhiteSpace(description)) 79 | { 80 | if (string.IsNullOrWhiteSpace(help)) 81 | { 82 | // No description or help text was provided with this command. Notify the user. 83 | DeveloperConsole.Log($"No help information provided for {pair.Key}"); 84 | } else 85 | { 86 | // Help was provided, but no description 87 | // Just print help text 88 | DeveloperConsole.Log(help); 89 | } 90 | } else 91 | { 92 | if (string.IsNullOrWhiteSpace(help)) 93 | { 94 | // A description was provided, but no help. 95 | // Just print description 96 | DeveloperConsole.Log($"{pair.Key}: {description}"); 97 | } else 98 | { 99 | // Both a description and help text were provided. 100 | // Print both with a paragraph break between 101 | DeveloperConsole.Log($"{pair.Key}: {description}\n\n{help}"); 102 | } 103 | } 104 | 105 | return; 106 | } 107 | } 108 | 109 | // No command found 110 | LogWarning($"'{cmdName}' is not a command"); 111 | } 112 | } 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt: -------------------------------------------------------------------------------- 1 | Digitized data copyright (c) 2010 Google Corporation 2 | with Reserved Font Arimo, Tinos and Cousine. 3 | Copyright (c) 2012 Red Hat, Inc. 4 | with Reserved Font Name Liberation. 5 | 6 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 7 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 8 | 9 | ----------------------------------------------------------- 10 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 11 | ----------------------------------------------------------- 12 | 13 | PREAMBLE 14 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 15 | 16 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 17 | 18 | DEFINITIONS 19 | "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 20 | 21 | "Reserved Font Name" refers to any names specified as such after the copyright statement(s). 22 | 23 | "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). 24 | 25 | "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 26 | 27 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 28 | 29 | PERMISSION & CONDITIONS 30 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 31 | 32 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 33 | 34 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 35 | 36 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 37 | 38 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 39 | 40 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 41 | 42 | TERMINATION 43 | This license becomes null and void if any of the above conditions are not met. 44 | 45 | DISCLAIMER 46 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/ParameterParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using Cronyx.Console.Parsing.Parsers; 8 | 9 | namespace Cronyx.Console.Parsing 10 | { 11 | internal interface IParameterParser 12 | { 13 | string GetTypeName(); 14 | string GetFormat(); 15 | bool TryParse(ArgumentInput input, out object result); 16 | } 17 | 18 | /// 19 | /// An object that parses and returns an object of type from a string representation. 20 | /// 21 | /// 22 | public abstract class ParameterParser : IParameterParser 23 | { 24 | bool IParameterParser.TryParse(ArgumentInput input, out object result) 25 | { 26 | var success = TryParse(input, out T res); 27 | result = res; 28 | return success; 29 | } 30 | 31 | /// 32 | /// Attempts to parse and store an object of type . 33 | /// 34 | /// An object containing the raw string input passed to this parser. 35 | /// An out parameter that stores the result of this parser. If parsing fails, set to null or default() 36 | /// A boolean value representing whether this parser succeeded in parsing the object. Return true if parsing succeeded, and false if parsing failed. 37 | public abstract bool TryParse(ArgumentInput input, out T result); 38 | 39 | /// 40 | /// Returns a string representing the complex format of this object. 41 | /// 42 | /// 43 | /// For simple types like and , return null. 44 | /// 45 | /// For objects with complex formats, return a template for that format. For instance, returns "[foo bar ...]" to indicate that an arbitrary number of objects can be parsed. 46 | /// This string serves to remind users what the format of this object should be when it is entered to the console. 47 | /// 48 | /// A string representing the complex format of this object, or null for objects without complex format. 49 | public virtual string GetFormat() => null; 50 | 51 | /// 52 | /// Returns a string representing the formatted type name of this object. Override in derived classes for parsers with non-standard type names, such as those with generic type arguments. 53 | /// 54 | /// A string representing the formatted type name of this object, such as "string" or "IEnumerable<int>" 55 | public virtual string GetTypeName() => typeof(T).Name; 56 | } 57 | 58 | /// 59 | /// A for values of type that uses the parser for , 60 | /// provided there is way to convert from values of type to . 61 | /// 62 | /// 63 | /// 64 | public abstract class AliasParser : ParameterParser 65 | { 66 | public override bool TryParse(ArgumentInput input, out TAlias result) 67 | { 68 | result = default; 69 | if (!Parser.GetParser().TryParse(input, out TBase baseValue)) return false; 70 | result = Convert(baseValue); 71 | return true; 72 | } 73 | 74 | /// 75 | /// Converts an object of type to an object of type 76 | /// 77 | /// An object of type 78 | /// An object of type 79 | public abstract TAlias Convert (TBase baseValue); 80 | 81 | public override string GetFormat() => Parser.GetParser().GetFormat(); 82 | } 83 | 84 | /// 85 | /// A special kind of that supports covariant generic parameters, 86 | /// that is, when is a subclass of . 87 | /// 88 | /// 89 | /// 90 | public class CovariantParser : AliasParser where TBase : TAlias 91 | { 92 | public override TAlias Convert(TBase baseValue) => baseValue; 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /console/Packages/com.cronyx.console/Runtime/Scripts/Parsing/Parsers/CollectionParsers.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Cronyx.Console.Parsing.Parsers 8 | { 9 | /// 10 | /// A parser for an array of objects. 11 | /// 12 | public class ArrayParser : AliasParser, T[]> 13 | { 14 | public override T[] Convert(IEnumerable baseValue) => baseValue.ToArray(); 15 | public override string GetTypeName() => $"{Parser.GetTypeName()}[]"; 16 | } 17 | 18 | /// 19 | /// A parser for a . 20 | /// 21 | public class ListParser : AliasParser, List> 22 | { 23 | public override List Convert(IEnumerable baseValue) => baseValue.ToList(); 24 | public override string GetTypeName() => $"List<{Parser.GetTypeName()}>"; 25 | } 26 | 27 | public class IListParser : CovariantParser, IList> 28 | { 29 | public override string GetTypeName() => $"IList<{Parser.GetTypeName()}>"; 30 | } 31 | 32 | public class IReadOnlyListParser : CovariantParser, IReadOnlyList> 33 | { 34 | public override string GetTypeName() => $"IReadOnlyList<{Parser.GetTypeName()}>"; 35 | } 36 | 37 | public class ICollectionParaser : CovariantParser, ICollection> 38 | { 39 | public override string GetTypeName() => $"ICollection<{Parser.GetTypeName()}>"; 40 | } 41 | 42 | public class IReadOnlyCollectionParser : CovariantParser, IReadOnlyCollection> 43 | { 44 | public override string GetTypeName() => $"IReadOnlyCollection<{Parser.GetTypeName()}>"; 45 | } 46 | 47 | /// 48 | /// A parser for a 49 | /// 50 | /// 51 | /// Elements that are parsed first will be situated at the front of the queue. 52 | /// For instance, if [A B C] was parsed, A would be the first element to be dequeued by calling 53 | /// 54 | public class QueueParser : AliasParser, Queue> 55 | { 56 | public override Queue Convert(IEnumerable baseValue) 57 | { 58 | Queue queue = new Queue(); 59 | foreach (var element in baseValue) queue.Enqueue(element); 60 | return queue; 61 | } 62 | 63 | public override string GetTypeName() => $"Queue<{Parser.GetTypeName()}>"; 64 | } 65 | 66 | /// 67 | /// A parser for a 68 | /// 69 | /// 70 | /// Elements that are parsed last will be situated at the top of the stack. 71 | /// For instance, if [A B C] was parsed, C would be first element to be popped by calling 72 | /// 73 | public class StackParser : AliasParser, Stack> 74 | { 75 | public override Stack Convert(IEnumerable baseValue) 76 | { 77 | Stack stack = new Stack(); 78 | foreach (var element in baseValue) stack.Push(element); 79 | return stack; 80 | } 81 | 82 | public override string GetTypeName() => $"Stack<{Parser.GetTypeName()}>"; 83 | } 84 | 85 | /// 86 | /// A parser for a 87 | /// 88 | /// 89 | /// This parser does not disallow multiple of the same item to be present in the raw input. Rather, after parsing all items individually, duplicate items are removed. 90 | /// For instance, parsing {A B C C} will produce, in effect, {A B C} 91 | /// 92 | public class HashSetParser : ParameterParser> 93 | { 94 | private class HashSetIEnumerableParser : IEnumerableParser 95 | { 96 | protected override (char Beginning, char End)[] GroupingChars => new[] { ('{', '}') }; 97 | } 98 | 99 | private static readonly HashSetIEnumerableParser mParser = new HashSetIEnumerableParser(); 100 | 101 | public override bool TryParse(ArgumentInput input, out HashSet result) 102 | { 103 | result = null; 104 | if (!mParser.TryParse(input, out var value)) return false; 105 | result = new HashSet(value); 106 | return true; 107 | } 108 | 109 | public override string GetFormat() => $"{{{Parser.GetParser().GetFormat() ?? "foo bar"} ...}}"; 110 | public override string GetTypeName() => $"HashSet<{Parser.GetTypeName()}>"; 111 | } 112 | 113 | public class ISetParser : CovariantParser, ISet> 114 | { 115 | public override string GetTypeName() => $"ISet<{Parser.GetTypeName()}>"; 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /console/Assets/TextMesh Pro/Sprites/EmojiOne.json: -------------------------------------------------------------------------------- 1 | {"frames": [ 2 | 3 | { 4 | "filename": "1f60a.png", 5 | "frame": {"x":0,"y":0,"w":128,"h":128}, 6 | "rotated": false, 7 | "trimmed": false, 8 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 9 | "sourceSize": {"w":128,"h":128}, 10 | "pivot": {"x":0.5,"y":0.5} 11 | }, 12 | { 13 | "filename": "1f60b.png", 14 | "frame": {"x":128,"y":0,"w":128,"h":128}, 15 | "rotated": false, 16 | "trimmed": false, 17 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 18 | "sourceSize": {"w":128,"h":128}, 19 | "pivot": {"x":0.5,"y":0.5} 20 | }, 21 | { 22 | "filename": "1f60d.png", 23 | "frame": {"x":256,"y":0,"w":128,"h":128}, 24 | "rotated": false, 25 | "trimmed": false, 26 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 27 | "sourceSize": {"w":128,"h":128}, 28 | "pivot": {"x":0.5,"y":0.5} 29 | }, 30 | { 31 | "filename": "1f60e.png", 32 | "frame": {"x":384,"y":0,"w":128,"h":128}, 33 | "rotated": false, 34 | "trimmed": false, 35 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 36 | "sourceSize": {"w":128,"h":128}, 37 | "pivot": {"x":0.5,"y":0.5} 38 | }, 39 | { 40 | "filename": "1f600.png", 41 | "frame": {"x":0,"y":128,"w":128,"h":128}, 42 | "rotated": false, 43 | "trimmed": false, 44 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 45 | "sourceSize": {"w":128,"h":128}, 46 | "pivot": {"x":0.5,"y":0.5} 47 | }, 48 | { 49 | "filename": "1f601.png", 50 | "frame": {"x":128,"y":128,"w":128,"h":128}, 51 | "rotated": false, 52 | "trimmed": false, 53 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 54 | "sourceSize": {"w":128,"h":128}, 55 | "pivot": {"x":0.5,"y":0.5} 56 | }, 57 | { 58 | "filename": "1f602.png", 59 | "frame": {"x":256,"y":128,"w":128,"h":128}, 60 | "rotated": false, 61 | "trimmed": false, 62 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 63 | "sourceSize": {"w":128,"h":128}, 64 | "pivot": {"x":0.5,"y":0.5} 65 | }, 66 | { 67 | "filename": "1f603.png", 68 | "frame": {"x":384,"y":128,"w":128,"h":128}, 69 | "rotated": false, 70 | "trimmed": false, 71 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 72 | "sourceSize": {"w":128,"h":128}, 73 | "pivot": {"x":0.5,"y":0.5} 74 | }, 75 | { 76 | "filename": "1f604.png", 77 | "frame": {"x":0,"y":256,"w":128,"h":128}, 78 | "rotated": false, 79 | "trimmed": false, 80 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 81 | "sourceSize": {"w":128,"h":128}, 82 | "pivot": {"x":0.5,"y":0.5} 83 | }, 84 | { 85 | "filename": "1f605.png", 86 | "frame": {"x":128,"y":256,"w":128,"h":128}, 87 | "rotated": false, 88 | "trimmed": false, 89 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 90 | "sourceSize": {"w":128,"h":128}, 91 | "pivot": {"x":0.5,"y":0.5} 92 | }, 93 | { 94 | "filename": "1f606.png", 95 | "frame": {"x":256,"y":256,"w":128,"h":128}, 96 | "rotated": false, 97 | "trimmed": false, 98 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 99 | "sourceSize": {"w":128,"h":128}, 100 | "pivot": {"x":0.5,"y":0.5} 101 | }, 102 | { 103 | "filename": "1f609.png", 104 | "frame": {"x":384,"y":256,"w":128,"h":128}, 105 | "rotated": false, 106 | "trimmed": false, 107 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 108 | "sourceSize": {"w":128,"h":128}, 109 | "pivot": {"x":0.5,"y":0.5} 110 | }, 111 | { 112 | "filename": "1f618.png", 113 | "frame": {"x":0,"y":384,"w":128,"h":128}, 114 | "rotated": false, 115 | "trimmed": false, 116 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 117 | "sourceSize": {"w":128,"h":128}, 118 | "pivot": {"x":0.5,"y":0.5} 119 | }, 120 | { 121 | "filename": "1f923.png", 122 | "frame": {"x":128,"y":384,"w":128,"h":128}, 123 | "rotated": false, 124 | "trimmed": false, 125 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 126 | "sourceSize": {"w":128,"h":128}, 127 | "pivot": {"x":0.5,"y":0.5} 128 | }, 129 | { 130 | "filename": "263a.png", 131 | "frame": {"x":256,"y":384,"w":128,"h":128}, 132 | "rotated": false, 133 | "trimmed": false, 134 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 135 | "sourceSize": {"w":128,"h":128}, 136 | "pivot": {"x":0.5,"y":0.5} 137 | }, 138 | { 139 | "filename": "2639.png", 140 | "frame": {"x":384,"y":384,"w":128,"h":128}, 141 | "rotated": false, 142 | "trimmed": false, 143 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 144 | "sourceSize": {"w":128,"h":128}, 145 | "pivot": {"x":0.5,"y":0.5} 146 | }], 147 | "meta": { 148 | "app": "http://www.codeandweb.com/texturepacker", 149 | "version": "1.0", 150 | "image": "EmojiOne.png", 151 | "format": "RGBA8888", 152 | "size": {"w":512,"h":512}, 153 | "scale": "1", 154 | "smartupdate": "$TexturePacker:SmartUpdate:196a26a2e149d875b91ffc8fa3581e76:fc928c7e275404b7e0649307410475cb:424723c3774975ddb2053fd5c4b85f6e$" 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /codegen/registerlambdas.py: -------------------------------------------------------------------------------- 1 | import argparse 2 | from codegen import * 3 | 4 | # --- DEFAULT OUTPUT --- 5 | output = "../console/Packages/com.cronyx.console/Runtime/Scripts/DeveloperConsole_GenericRegistration.cs" 6 | 7 | # --- CONFIGURATION --- 8 | kPartialClassName = "DeveloperConsole" 9 | kNamespace = "Cronyx.Console" 10 | kImports = [ 11 | "System" 12 | ] 13 | 14 | kMethodName = "RegisterCommand" 15 | kMethodNameToInvoke = "RegisterCommand" 16 | kParameterName = "name" 17 | kParameterCommand = "command" 18 | kParameterDescription = "description" 19 | 20 | # --- DOCUMENTATION --- 21 | kDocMethodSummary = ''' 22 | Registers a console command that will parse %NUMBER% argument%PLURAL% and invoke a delegate. 23 | ''' 24 | kDocTypeParam = f"The type of the %NUMBERADJ% parameter passed to " 25 | kDocParameterName = "A unique name for this command. Cannot be null or whitespace." 26 | kDocParameterCommand = "A delegate that is invoked when the command is called from the console." 27 | kDocParameterDescription = "A short, optional description of the command that appears in a list of all commands." 28 | kDocExceptions = { 29 | "ArgumentException": f"Thrown if is null or empty, or if is null.", 30 | "InvalidOperationException": f"Thrown if is taken by another command." 31 | } 32 | 33 | # --- SPECIAL VALUES --- 34 | kTokenNumber = "%NUMBER%" # Replaces with 'one,' 'two,' 'three,' etc. depending on the number 35 | kTokenNumberAdj = "%NUMBERADJ%" # Replaces with 'first,' 'second, 'third,' etc. depending on the number 36 | kTokenAddPlural = "%PLURAL%" # Replaces with 's' if the number is greater than 1 or equal to zero 37 | 38 | def replaceSpecialValues (raw: str, nargs: int): 39 | raw = raw.replace(kTokenNumber, numbers[nargs]) 40 | raw = raw.replace(kTokenNumberAdj, numbersadj[nargs]) 41 | raw = raw.replace(kTokenAddPlural, "" if nargs == 1 else "s") 42 | return raw 43 | 44 | def generateMethod (nargs: int, indent=1): 45 | # Write summary documentation 46 | for line in replaceSpecialValues(kDocMethodSummary, nargs).splitlines(): docline(line, indent) 47 | 48 | # Write all type params documentation 49 | for i in range(nargs): 50 | docline(f"{replaceSpecialValues(kDocTypeParam, i+1)}", indent) 51 | 52 | # Write parameter documentations 53 | docline(f"{kDocParameterName}", indent) 54 | docline(f"{kDocParameterCommand}", indent) 55 | docline(f"{kDocParameterDescription}", indent) 56 | 57 | # Write exception documentations 58 | for exception in kDocExceptions: 59 | docline(f"{kDocExceptions[exception]}", indent) 60 | 61 | # Generate generic type parameter list 62 | paramList = "" 63 | if (nargs > 0): 64 | paramList = "<" 65 | for i in range(nargs): 66 | paramList += f"T{i}" 67 | if i != nargs - 1: paramList += ", " 68 | paramList += ">" 69 | 70 | # Write method signature 71 | writeline(f"public static void {kMethodName}{paramList}(string {kParameterName}, Action{paramList} {kParameterCommand}, string {kParameterDescription}=null)", indent) 72 | 73 | # Write method body 74 | writeline(f"=> {kMethodNameToInvoke}({kParameterName}, (Delegate){kParameterCommand}, {kParameterDescription});", indent+1) 75 | 76 | # Create space after method 77 | writeline() 78 | 79 | parser = argparse.ArgumentParser(description='Generates generic methods for RegisterCommand') 80 | parser.add_argument('-o', '--output', type=argparse.FileType('w'), default=output, 81 | help='Where to store the generated output') 82 | parser.add_argument('-n', '--number', type=int, default = 16, 83 | help='Number of generic methods to generate') 84 | args = parser.parse_args() 85 | 86 | # Write header for this autogen 87 | writeheader(args.output.name, f"Contains generic implementations of {kMethodName} for an arbitrary number of generic type parameters.") 88 | 89 | # Write imports 90 | for namespace in kImports: 91 | writeline(f"using {namespace};") 92 | writeline() 93 | 94 | # Namespace name 95 | writeline(f"namespace {kNamespace}") 96 | writeline("{") # Open namespace 97 | 98 | # Class name 99 | writeline(f"public partial class {kPartialClassName}", 1) 100 | writeline("{", 1) # Open class 101 | 102 | # Generate methods 103 | for n in range(0, args.number + 1): 104 | generateMethod(n, 2) 105 | 106 | writeline("}", 1) # Close class 107 | 108 | writeline("}") # Close namespace 109 | 110 | # Log to output file 111 | writeToOutput(args.output) 112 | 113 | 114 | --------------------------------------------------------------------------------