User: joe Date: 24 Jul 24 16:52 Revision: da4a3cd40752ee1aa75c65977d87536a0a5a8983 Summary: Add option to disable mixin class icon TeamCity URL: http://ci.mcdev.io:80/viewModification.html?tab=vcsModificationFiles&modId=9508&personal=false Index: src/main/kotlin/MinecraftConfigurable.kt =================================================================== --- src/main/kotlin/MinecraftConfigurable.kt (revision c74216fc93e4ea449abf8c9eb0aa30f6ab47a959) +++ src/main/kotlin/MinecraftConfigurable.kt (revision da4a3cd40752ee1aa75c65977d87536a0a5a8983) @@ -86,6 +86,13 @@ } } + group(MCDevBundle("minecraft.settings.mixin")) { + row { + checkBox(MCDevBundle("minecraft.settings.mixin.mixin_class_icon")) + .bindSelected(settings::mixinClassIcon) + } + } + group(MCDevBundle("minecraft.settings.creator")) { row(MCDevBundle("minecraft.settings.creator.repos")) {} Index: src/main/kotlin/MinecraftSettings.kt =================================================================== --- src/main/kotlin/MinecraftSettings.kt (revision c74216fc93e4ea449abf8c9eb0aa30f6ab47a959) +++ src/main/kotlin/MinecraftSettings.kt (revision da4a3cd40752ee1aa75c65977d87536a0a5a8983) @@ -40,6 +40,8 @@ var isShowChatColorUnderlines: Boolean = false, var underlineType: UnderlineType = UnderlineType.DOTTED, + var mixinClassIcon: Boolean = true, + var creatorTemplateRepos: List = listOf(TemplateRepo.makeBuiltinRepo()), ) @@ -106,6 +108,12 @@ state.underlineType = underlineType } + var mixinClassIcon: Boolean + get() = state.mixinClassIcon + set(mixinClassIcon) { + state.mixinClassIcon = mixinClassIcon + } + var creatorTemplateRepos: List get() = state.creatorTemplateRepos.map { it.copy() } set(creatorTemplateRepos) { Index: src/main/kotlin/platform/mixin/framework/MixinIconProvider.kt =================================================================== --- src/main/kotlin/platform/mixin/framework/MixinIconProvider.kt (revision c74216fc93e4ea449abf8c9eb0aa30f6ab47a959) +++ src/main/kotlin/platform/mixin/framework/MixinIconProvider.kt (revision da4a3cd40752ee1aa75c65977d87536a0a5a8983) @@ -1,3 +1,23 @@ +/* + * Minecraft Development for IntelliJ + * + * https://mcdev.io/ + * + * Copyright (C) 2024 minecraft-dev + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation, version 3.0 only. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package com.demonwav.mcdev.platform.mixin.framework import com.demonwav.mcdev.asset.PlatformAssets Index: src/main/resources/messages/MinecraftDevelopment.properties =================================================================== --- src/main/resources/messages/MinecraftDevelopment.properties (revision c74216fc93e4ea449abf8c9eb0aa30f6ab47a959) +++ src/main/resources/messages/MinecraftDevelopment.properties (revision da4a3cd40752ee1aa75c65977d87536a0a5a8983) @@ -278,6 +278,7 @@
Each line may be empty, a comment (with #) or a glob pattern for matching translation keys (like "item.*").\
Note: Empty lines are respected and will be put into the sorting result. minecraft.settings.mixin.definition_pos_relative_to_expression=@Definition position relative to @Expression +minecraft.settings.mixin.mixin_class_icon=Show Mixin class icon minecraft.settings.mixin.shadow_annotation_same_line=@Shadow annotations on same line minecraft.settings.mixin=Mixin minecraft.settings.project.display_name=Project-Specific Settings