Skip to content

Commit

Permalink
Shorten presentable name of the templates in the template list
Browse files Browse the repository at this point in the history
  • Loading branch information
seclerp committed Oct 6, 2024
1 parent d6424c6 commit 4f496cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ class MonoGameTemplateType : PredefinedProjectTemplateType() {
)

override fun getType(template: RdProjectTemplate) = template.name
.removePrefix("MonoGame ")
.replace("Application", "App")
}
}

0 comments on commit 4f496cd

Please sign in to comment.