From 4f496cd890e2683df539d1c95c9730d71e5fa021 Mon Sep 17 00:00:00 2001 From: Andrii Rublov Date: Sat, 5 Oct 2024 23:37:43 +0200 Subject: [PATCH] Shorten presentable name of the templates in the template list --- .../monogame/templates/MonoGameTemplateNames.kt | 14 +++++++------- .../monogame/templates/MonoGameTemplateType.kt | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/rider/main/kotlin/me/seclerp/rider/plugins/monogame/templates/MonoGameTemplateNames.kt b/src/rider/main/kotlin/me/seclerp/rider/plugins/monogame/templates/MonoGameTemplateNames.kt index 36445b8..60aabd3 100644 --- a/src/rider/main/kotlin/me/seclerp/rider/plugins/monogame/templates/MonoGameTemplateNames.kt +++ b/src/rider/main/kotlin/me/seclerp/rider/plugins/monogame/templates/MonoGameTemplateNames.kt @@ -1,11 +1,11 @@ package me.seclerp.rider.plugins.monogame.templates object MonoGameTemplateNames { - const val CROSS_PLATFORM_APP = "MonoGame Cross-Platform Desktop Application" - const val WINDOWS_DESKTOP_APP = "MonoGame Windows Desktop Application" - const val ANDROID_APP = "MonoGame Android Application" - const val IOS_APP = "MonoGame iOS Application" - const val GAME_LIB = "MonoGame Game Library" - const val CONTENT_PIPELINE_EXTENSION = "MonoGame Content Pipeline Extension" - const val SHARED_LIB = "MonoGame Shared Library Project" + const val CROSS_PLATFORM_APP = "Cross-Platform Desktop App" + const val WINDOWS_DESKTOP_APP = "Windows Desktop App" + const val ANDROID_APP = "Android App" + const val IOS_APP = "iOS App" + const val GAME_LIB = "Game Library" + const val CONTENT_PIPELINE_EXTENSION = "Content Pipeline Extension" + const val SHARED_LIB = "Shared Library Project" } \ No newline at end of file diff --git a/src/rider/main/kotlin/me/seclerp/rider/plugins/monogame/templates/MonoGameTemplateType.kt b/src/rider/main/kotlin/me/seclerp/rider/plugins/monogame/templates/MonoGameTemplateType.kt index 810f232..370888f 100644 --- a/src/rider/main/kotlin/me/seclerp/rider/plugins/monogame/templates/MonoGameTemplateType.kt +++ b/src/rider/main/kotlin/me/seclerp/rider/plugins/monogame/templates/MonoGameTemplateType.kt @@ -33,5 +33,7 @@ class MonoGameTemplateType : PredefinedProjectTemplateType() { ) override fun getType(template: RdProjectTemplate) = template.name + .removePrefix("MonoGame ") + .replace("Application", "App") } } \ No newline at end of file