Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Feb 24, 2024
1 parent e71a78c commit 1683598
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 39 deletions.
10 changes: 8 additions & 2 deletions src/main/java/net/krlite/tapestop/config/TapeStopConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
import org.jetbrains.annotations.NotNull;

@Config(name = "tapestop")
@Config.Gui.Background(Config.Gui.Background.TRANSPARENT)
public class TapeStopConfig implements ConfigData {
@ConfigEntry.Gui.Tooltip
public boolean enabled = true;

@ConfigEntry.Gui.Tooltip
public boolean debugInfoEnabled = true;

@ConfigEntry.Gui.Tooltip
@ConfigEntry.BoundedDiscrete(min = 1000, max = 1000 * 60 * 5)
public long timeoutMs = 1000 * 30;

Expand All @@ -25,9 +27,13 @@ public class TapeStopConfig implements ConfigData {
public Visual visual = new Visual();

public static class Trigger {
@ConfigEntry.Gui.Tooltip
public boolean whenMinimized = true;
@ConfigEntry.Gui.Tooltip
public boolean whenLostFocus = true;
@ConfigEntry.Gui.Tooltip
public boolean afterGUITimeout = true;
@ConfigEntry.Gui.Tooltip
public boolean afterGameTimeout = true;
}

Expand Down
31 changes: 15 additions & 16 deletions src/main/resources/assets/tapestop/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,32 @@
"text.autoconfig.tapestop.category.default": "General",

"text.autoconfig.tapestop.option.enabled" : "Enabled",
"text.autoconfig.tapestop.option.enabled.tooltip": "Whether to stop rendering as you leave",
"text.autoconfig.tapestop.option.enabled.@Tooltip": "Whether to stop rendering as you leave",

"text.autoconfig.tapestop.debug.enabled" : "Debug Info",
"text.autoconfig.tapestop.debug.enabled.tooltip": "Whether to print debug messages to the console",
"text.autoconfig.tapestop.option.debugInfoEnabled" : "Prints Debug Info",
"text.autoconfig.tapestop.option.debugInfoEnabled.@Tooltip": "Whether to print debug messages to the console",

"text.autoconfig.tapestop.option.timeout_ms" : "Timeout",
"text.autoconfig.tapestop.option.timeout_ms.tooltip": "§cMilliseconds\nHow long to wait before tape stops",
"text.autoconfig.tapestop.option.timeoutMs" : "Timeout",
"text.autoconfig.tapestop.option.timeoutMs.@Tooltip": "§eMilliseconds§r\nHow long to wait before tape stops",

"text.autoconfig.tapestop.category.trigger": "Trigger",

"text.autoconfig.tapestop.trigger.when_minimized" : "When Minimized",
"text.autoconfig.tapestop.trigger.when_minimized.tooltip": "Whether to tape stop when the window is minimized",
"text.autoconfig.tapestop.option.trigger.whenMinimized" : "When Minimized",
"text.autoconfig.tapestop.option.trigger.whenMinimized.@Tooltip": "Whether to tape stop when the window is minimized",

"text.autoconfig.tapestop.trigger.when_lost_focus" : "When Lost Focus",
"text.autoconfig.tapestop.trigger.when_lost_focus.tooltip": "Whether to tape stop when the window lost focus",
"text.autoconfig.tapestop.option.trigger.whenLostFocus" : "When Lost Focus",
"text.autoconfig.tapestop.option.trigger.whenLostFocus.@Tooltip": "Whether to tape stop when the window lost focus",

"text.autoconfig.tapestop.trigger.after_gui_timeout" : "After GUI Timeout",
"text.autoconfig.tapestop.trigger.after_gui_timeout.tooltip": "Whether to tape stop when the game is in a GUI screen(inventory, pause menu, etc.) and reaches the timeout specified above",
"text.autoconfig.tapestop.option.trigger.afterGUITimeout" : "After GUI Timeout",
"text.autoconfig.tapestop.option.trigger.afterGUITimeout.@Tooltip": "Whether to tape stop when the game is in a GUI screen(inventory, pause menu, etc.) and reaches the timeout specified above",

"text.autoconfig.tapestop.trigger.after_game_timeout" : "After Game Timeout",
"text.autoconfig.tapestop.trigger.after_game_timeout.tooltip": "Whether to tape stop when the game is not in a GUI screen and reaches the timeout specified above",
"text.autoconfig.tapestop.option.trigger.afterGameTimeout" : "After Game Timeout",
"text.autoconfig.tapestop.option.trigger.afterGameTimeout.@Tooltip": "Whether to tape stop when the game is not in a GUI screen and reaches the timeout specified above",

"text.autoconfig.tapestop.category.visual": "Visual",

"text.autoconfig.tapestop.visual.panorama" : "Panorama",
"text.autoconfig.tapestop.visual.panorama.tooltip": "Whether to render the panorama background while tape stopped",
"text.autoconfig.tapestop.option.visual.backgroundStyle": "Background Style",

"config.tapestop.background_style.pure_color": "Pure Color",
"config.tapestop.background_style.panorama": "Panorama"
"config.tapestop.background_style.panorama" : "Panorama"
}
42 changes: 21 additions & 21 deletions src/main/resources/assets/tapestop/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
"modmenu.nameTranslation.tapestop" : "停碟",
"modmenu.descriptionTranslation.tapestop": "在你离开游戏时中断渲染工作。",

"screen.tapestop.config.title": "停碟",
"text.autoconfig.tapestop.title": "停碟",

"config.tapestop.category.general": "通用",
"text.autoconfig.tapestop.category.default": "通用",

"config.tapestop.general.enabled": "启用停碟",
"config.tapestop.general.enabled.tooltip": "是否在你离开游戏时停止游戏渲染",
"text.autoconfig.tapestop.option.enabled": "启用停碟",
"text.autoconfig.tapestop.option.enabled.@Tooltip": "是否在你离开游戏时停止游戏渲染",

"config.tapestop.general.timeout_ms": "停碟超时",
"config.tapestop.general.timeout_ms.tooltip": "§c毫秒\n在停碟之前等待的时间",
"text.autoconfig.tapestop.option.debugInfoEnabled": "打印调试信息",
"text.autoconfig.tapestop.option.debugInfoEnabled.@Tooltip": "是否在控制台中输出调试信息",

"config.tapestop.category.trigger": "触发规则",
"text.autoconfig.tapestop.option.timeoutMs": "停碟超时",
"text.autoconfig.tapestop.option.timeoutMs.@Tooltip": "§e毫秒§r\n在停碟之前等待的时间",

"config.tapestop.trigger.when_minimized": "最小化时",
"config.tapestop.trigger.when_minimized.tooltip": "是否在游戏窗口最小化时停碟",
"text.autoconfig.tapestop.category.trigger": "触发规则",

"config.tapestop.trigger.when_lost_focus": "失去焦点时",
"config.tapestop.trigger.when_lost_focus.tooltip": "是否在游戏窗口失去焦点时停碟",
"text.autoconfig.tapestop.option.trigger.whenMinimized": "最小化时",
"text.autoconfig.tapestop.option.trigger.whenMinimized.@Tooltip": "是否在游戏窗口最小化时停碟",

"config.tapestop.trigger.after_gui_timeout": "GUI超时",
"config.tapestop.trigger.after_gui_timeout.tooltip": "是否在游戏处在GUI界面(例如背包和暂停界面)并达到设置的超时时间后停碟",
"text.autoconfig.tapestop.option.trigger.whenLostFocus": "失去焦点时",
"text.autoconfig.tapestop.option.trigger.whenLostFocus.@Tooltip": "是否在游戏窗口失去焦点时停碟",

"config.tapestop.trigger.after_game_timeout": "游戏超时",
"config.tapestop.trigger.after_game_timeout.tooltip": "是否在游戏不处在GUI界面并达到设置的超时时间后停碟",
"text.autoconfig.tapestop.option.trigger.afterGUITimeout": "GUI超时",
"text.autoconfig.tapestop.option.trigger.afterGUITimeout.@Tooltip": "是否在游戏处在GUI界面(例如背包和暂停界面)并达到设置的超时时间后停碟",

"config.tapestop.category.visual": "视觉效果",
"text.autoconfig.tapestop.option.trigger.afterGameTimeout": "游戏超时",
"text.autoconfig.tapestop.option.trigger.afterGameTimeout.@Tooltip": "是否在游戏不处在GUI界面并达到设置的超时时间后停碟",

"config.tapestop.visual.panorama": "全景图",
"config.tapestop.visual.panorama.tooltip": "是否在停碟时渲染全景图",
"text.autoconfig.tapestop.category.visual": "视觉效果",

"config.tapestop.category.debug": "调试",
"text.autoconfig.tapestop.option.visual.backgroundStyle": "背景样式",

"config.tapestop.debug.enabled": "调试信息",
"config.tapestop.debug.enabled.tooltip": "是否在控制台中输出调试信息"
"config.tapestop.background_style.pure_color": "纯色",
"config.tapestop.background_style.panorama" : "全景图"
}

0 comments on commit 1683598

Please sign in to comment.