Skip to content

Commit

Permalink
Cloth config as dependency, shuffled around config screen for easier …
Browse files Browse the repository at this point in the history
…readability. Added ru_ru.json
  • Loading branch information
TomB-134 committed Dec 27, 2021
1 parent 2d73354 commit 8aa04bc
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/minimalmenu/config/ConfigScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ public static Screen getConfigScreen(Screen parentScreen) {
builder.setSavingRunnable(ConfigHandler::write);

//Create categories
ConfigCategory generalScreen = builder.getOrCreateCategory(new TranslatableText("minimalmenu.config.category.general"));
ConfigCategory titleScreen = builder.getOrCreateCategory(new TranslatableText("minimalmenu.config.category.title"));
ConfigCategory optionsScreen = builder.getOrCreateCategory(new TranslatableText("minimalmenu.config.category.options"));
ConfigCategory pauseScreen = builder.getOrCreateCategory(new TranslatableText("minimalmenu.config.category.pause"));
ConfigCategory singePlayerScreen = builder.getOrCreateCategory(new TranslatableText("minimalmenu.config.category.sp"));
ConfigCategory generalScreen = builder.getOrCreateCategory(new TranslatableText("minimalmenu.config.category.general"));
ConfigCategory optionsScreen = builder.getOrCreateCategory(new TranslatableText("minimalmenu.config.category.options"));
ConfigCategory otherOptions = builder.getOrCreateCategory(new TranslatableText("minimalmenu.config.category.other"));

ConfigEntryBuilder entryBuilder = builder.entryBuilder();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/minimalmenu/mixin/GameMenuScreenMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(GameMenuScreen.class)
public class GameMenuScreenMixin extends Screen {
public abstract class GameMenuScreenMixin extends Screen {
protected GameMenuScreenMixin(Text title) {
super(title);
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/minimalmenu/mixin/TitleScreenButtonMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(TitleScreen.class)
public class TitleScreenButtonMixin extends Screen {
public abstract class TitleScreenButtonMixin extends Screen {
protected TitleScreenButtonMixin(Text title) {
super(title);
}
Expand All @@ -23,6 +23,7 @@ protected void init(CallbackInfo info) {
if (ConfigHandler.ADD_FOLDER_TS) {
this.addDrawableChild(new ButtonWidget(this.width / 2 + 104, (this.height / 4 + 48) + 84 , 20, 20, new TranslatableText("minimalmenu.common..minecraft"), (button) -> {
MinimalMenu.processButtonFolderClick(client);

}));
}
}
Expand Down
34 changes: 34 additions & 0 deletions src/main/resources/assets/minimalmenu/lang/ru_ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"minimalmenu.config.title": "Minimal Menu настройки",
"minimalmenu.config.category.title": "Титульный экран",
"minimalmenu.config.category.options": "Экран настроек",
"minimalmenu.config.category.pause": "Экран паузы",
"minimalmenu.config.category.sp": "Экран одиночной игры",
"minimalmenu.config.category.ingame": "Игровой экран",
"minimalmenu.config.category.other": "Другие варианты",
"minimalmenu.config.option.title.splash": "Удалить всплывающий текст",
"minimalmenu.config.option.title.edition": "Удалить надпись версии Java",
"minimalmenu.config.option.title.singleplayer": "Удалить кнопку одиночной игры",
"minimalmenu.config.option.title.multiplayer": "Удалить кнопку мультиплеерной игры",
"minimalmenu.config.option.title.realms": "Удалить кнопку Realms",
"minimalmenu.config.option.title.accessibility": "Удалить кнопку специальные возможности",
"minimalmenu.config.option.title.language": "Удалить кнопку с языками",
"minimalmenu.config.option.title.copy": "Удалить надпись Авторские права",
"minimalmenu.config.option.title.spin": "Приостановить Фоновую панораму",
"minimalmenu.config.option.title.dirtBackground": "Используйте Грязный Фон",
"minimalmenu.config.option.title.xOffset": "X смещение",
"minimalmenu.config.option.title.yOffset": "Y смещение",
"minimalmenu.config.option.options.online": "Удалить кнопку Онлайн…",
"minimalmenu.config.option.pause.feedback": "Удалить кнопку Обратной связи",
"minimalmenu.config.option.pause.bugs": "Удалить Сообщение об ошибках",
"minimalmenu.config.option.pause.lanSingle": "Удалить Доступ к локальной сети в одиночной игре",
"minimalmenu.config.option.pause.lanMulti": "Удалить Доступ к локальной сети в многопользовательской игре",
"minimalmenu.config.option.pause.xOffset": "X смещение",
"minimalmenu.config.option.pause.yOffset": "Y смещение",
"minimalmenu.config.option.sp.addSavesFolder": "Добавить кнопку Папки сохранения",
"minimalmenu.config.option.sp.reloadSaves": "Добавить кнопку Перезагрузки сохранения",
"minimalmenu.config.option.other.dev": "Режим разработчика",
"minimalmenu.config.option.other.dev.tooltip": "Используется при разработке этого мода. Игнорировать.",
"minimalmenu.config.option.common.addFolder": "Добавить кнопку .minecraft",
"minimalmenu.common..minecraft": "."
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"fabric": ">=0.35.0",
"modmenu": ">=2.0.1",
"java": ">=17",
"cloth-config": ">=6.1.48"
"cloth-config2": ">=6.1.48"
}
}

0 comments on commit 8aa04bc

Please sign in to comment.