diff --git a/assets/bundles/bundle.properties b/assets/bundles/bundle.properties index c8c43fc..61ee80a 100644 --- a/assets/bundles/bundle.properties +++ b/assets/bundles/bundle.properties @@ -87,78 +87,102 @@ update.failCheck = Check failed. update.download = Download update.close = Close -settings.tags.restart = 需要重启游戏 -settings.tags.reloadWorld = 需要重新进入世界 -settings.tags.performance = 可能影响性能 +settings.tags.restart = Restart required +settings.tags.reloadWorld = Reload world required +settings.tags.performance = May affect performance -settings.graphics.ui = UI窗口 -settings.MI2UI.showEmojis = 启用Emoji窗口 -settings.MI2UI.showCoreInfo = 启用核心信息窗口 -settings.MI2UI.showMindowMap = 启用小地图窗口 -settings.MI2UI.showLogicHelper = 启用逻辑辅助窗口 -settings.graphics.zone = 渲染范围建筑 -settings.MI2UI.enPlayerCursor = 玩家光标 -settings.MI2UI.enOverdriveZone = 超速范围 -settings.MI2UI.enMenderZone = 修复范围 -settings.MI2UI.enSpawnZone = 敌人刷怪点 -settings.MI2UI.enTurretRangeZone = 炮台视野范围 -settings.MI2UI.enUnitRangeZone = 单位视野范围 -settings.graphics.distributionReveal = 渲染之物流揭示 -settings.MI2UI.enDistributionReveal = 启用物流揭示 -settings.MI2UI.drevealBridge = 渲染桥带物流 -settings.MI2UI.drevealJunction = 渲染交叉器物流 -settings.MI2UI.drevealUnloader = 渲染装卸器物流 -settings.MI2UI.drevealInventory = 渲染建筑内物品 -settings.graphics.overlay = 渲染叠加层 -settings.MI2UI.enBlockHpBar = 建筑血条 -settings.MI2UI.enUnitHpBar = 单位血条 -settings.MI2UI.unitHpBarDamagedOnly = 单位满血隐藏血条 -settings.MI2UI.unitHpBarStyle = 单位血条样式 -settings.MI2UI.enUnitHitbox = 单位碰撞箱 -settings.MI2UI.enUnitLogic = 单位逻辑线 -settings.MI2UI.enUnitPath = 单位寻路线 -settings.MI2UI.enUnitPath.length = 寻路线长度 -settings.graphics.drawGroups = 渲染实体组 -settings.MI2UI.disableWreck = 不渲染残骸 -settings.MI2UI.disableUnit = 不渲染单位 -settings.MI2UI.disableBullet = 不渲染子弹 -settings.MI2UI.disableBuilding = 不渲染建筑 -settings.game.speedctrl = 自动变速器 -settings.MI2UI.speedctrl.basefps = 基准帧数 -settings.MI2UI.speedctrl.cutoff = 截止帧数 -settings.input = 输入 -settings.MI2UI.inputReplace = 替换输入控制器 -settings.MI2UI.instantBuild = 沙盒瞬间建造 -settings.MI2UI.rtsFormDoubleTap = RTS编队双击灵敏度 -settings.MI2UI.forceTapTile = 强制跨队交互 -settings.MI2UI.edgePanning = 屏边移动视角 -settings.modify = 修改原版 -settings.MI2UI.blockSelectTableHeight = 方块选择面板高度 -settings.MI2UI.modifyBlockBars = 修改方块信息条 -settings.MI2UI.replaceTopTable = 替换TopTable -settings.MI2UI.modTopTableFollowMouse = 模组TopTable跟随鼠标 -settings.MI2UI.maxSchematicSize = 最大蓝图尺寸 -settings.MI2UI.maxZoom = 最大缩放 -settings.MI2UI.minZoom = 最小缩放 -settings.MI2UI.enableUpdate = 模组更新检查 +settings.graphics.ui = Windows +settings.MI2UI.showEmojis = Emojis +settings.MI2UI.showCoreInfo = Core Info +settings.MI2UI.showMindowMap = Mindow Map +settings.MI2UI.showLogicHelper = Logic Helper +settings.graphics.zone = Zone Rendering +settings.MI2UI.enPlayerCursor = Draw Player Cursor +settings.MI2UI.enOverdriveZone = Draw Overdrive Zone +settings.MI2UI.enMenderZone = Draw Mend Zone +settings.MI2UI.enSpawnZone = Draw Spawnpoint Zone +settings.MI2UI.enTurretRangeZone = Draw Turret Range +settings.MI2UI.enUnitRangeZone = Draw Unit Range +settings.graphics.distributionReveal = Distribution Revealing +settings.MI2UI.enDistributionReveal = Enable Distribution Reveal +settings.MI2UI.drevealBridge = Reveal Bridge +settings.MI2UI.drevealJunction = Reveal Junction +settings.MI2UI.drevealJunction.description = Draw items inside junction. Draw the item inside router, and the direction of transmission. +settings.MI2UI.drevealUnloader = Render Unloader +settings.MI2UI.drevealUnloader.description = Draw the direction in which the unloader was last transmitted, where the red bar indicates input and the yellow bar indicates output. If the unloader is set null, the last transferred item is also drawn. +settings.MI2UI.drevealInventory = Renders Items in Building +settings.MI2UI.drevealInventory.description = Draws a table of building contents for buildings without distribution reveal. All items, liquids and their amount are displayed on the overlay. Turrets also show ammo. +settings.graphics.overlay = Overlay +settings.MI2UI.enBlockHpBar = Building Health Bar +settings.MI2UI.enUnitHpBar = Unit Health Bar +settings.MI2UI.unitHpBarDamagedOnly = Unit Health Bar Hide on Full Health +settings.MI2UI.unitHpBarStyle = Unit Health Bar Style +settings.MI2UI.enUnitHitbox = Unit Hitbox +settings.MI2UI.enUnitLogic = Unit Logic Lines +settings.MI2UI.enUnitLogic.description = Display moving target, control timer, and item transfer timer for the logic controlled units. +settings.MI2UI.enUnitPath = Unit Pathfind +settings.MI2UI.enUnitPath.description = Displays the pathfinding line of unit, including survive-mode pathfinding and RTS pathfinding. Does not work in multiplayer. +settings.MI2UI.enUnitPath.length = Length of Pathfind +settings.graphics.drawGroups = Draw Entity Group +settings.MI2UI.disableWreck = Disable Wreck +settings.MI2UI.disableUnit = Disable Unit +settings.MI2UI.disableBullet = Disable Bullet +settings.MI2UI.disableBuilding = Disable Building +settings.game.speedctrl = Speed Auto Controller +settings.game.speedctrl.description = Mindustry's rendering frame rate is bound to the logical frame rate, so that severe frame drops can slow down the efficiency of distribution buildings. The speed controller can appropriately slow down the flow of game time in frame drops to counteract the effects of frame drops. \nNote!This may affect the processor's frame complement mechanism. +settings.MI2UI.speedctrl.basefps = Base Fps +settings.MI2UI.speedctrl.basefps.description = The frame rate at which the automatic transmission is to emulate, usually the maximum frame rate you set or the device's screen refresh rate. +settings.MI2UI.speedctrl.cutoff = Cutoff Fps +settings.MI2UI.speedctrl.cutoff.description = The lower limit of the frame rate offset by speed controller. If the rendered frame rate is lower than this value, the lower part will be ignored. So as not to slow respond of UI. +settings.input = Input +settings.MI2UI.inputReplace = Replace Input Handler +settings.MI2UI.inputReplace.description = [accent]Replace[] the vanilla input handler with the modded one. Features such as AI, minimap, and RTS formation camera panning are all dependent on this. +settings.MI2UI.instantBuild = Sandbox Instantly Build +settings.MI2UI.rtsFormDoubleTap = RTS Formation Double-tap Sensitivity +settings.MI2UI.forceTapTile = Force Cross-team Interaction +settings.MI2UI.edgePanning = Panning on Edge +settings.modify = Modify Vanilla +settings.MI2UI.blockSelectTableHeight = Block Select Table Height +settings.MI2UI.modifyBlockBars = Modify Hovering Info Table Bars +settings.MI2UI.modifyBlockBars.description = Replace or add more detailed information such as health bars, shield bars, etc. to the unit and building hovering table bars. +settings.MI2UI.replaceTopTable = Replaces Hovering Info Table +settings.MI2UI.replaceTopTable.description = [accent]Replace[] the vanilla hovering info table with the modded one. You can display the tile, units and buildings at the cursor at the same time. +settings.MI2UI.modTopTableFollowMouse = Mod Hovering Info Table Follows Mouse +settings.MI2UI.modTopTableFollowMouse.description = Detach the mod's hovering table from the bottom right corner and make it follow the cursor. The vanilla one is not supported. +settings.MI2UI.maxSchematicSize = Max Schematic Size +settings.MI2UI.maxZoom = Max Zoom +settings.MI2UI.minZoom = Min Zoom +settings.MI2UI.enableUpdate = Mod Update Check -settings.CoreInfo.showCoreItems = 显示核心物品 -settings.CoreInfo.showUnits = 显示单位总数 -settings.CoreInfo.showPowerGraphs = 显示电网条 -settings.CoreInfo.itemsMaxHeight = 物品面板最大高度 -settings.CoreInfo.unitsMaxHeight = 单位面板最大高度 +settings.CoreInfo.showCoreItems = Show Core Items +settings.CoreInfo.showCoreItems.description = Similar to vanilla. It has item statistics chart. Click on the icon to popup the item's 60-second chart. +settings.CoreInfo.showUnits = Show Unit Counts +settings.CoreInfo.showUnits.description = Count the number of units of each type. Click on the icon to pan to a random unit. +settings.CoreInfo.showPowerGraphs = Show Power Graph Bars +settings.CoreInfo.showPowerGraphs.description = Grid graph bars display each grid individually. Hover to display the power I/O statistics. The power icon button is to switch display mode. +settings.CoreInfo.itemsMaxHeight = Items Max Height +settings.CoreInfo.unitsMaxHeight = Units Max Height -settings.MindowMap.drawLabel = 显示玩家标签 -settings.MindowMap.drawSpawn = 显示刷怪点 -settings.MindowMap.drawFog = 显示战争迷雾 -settings.MindowMap.drawIndicator = 显示攻击指示器 -settings.MindowMap.drawObjective = 显示地图目标 -settings.MindowMap.size = 小地图尺寸 -settings.MindowMap.drawUnitColorDiff = 单位图标色差 -settings.MindowMap.drawUnitOutline = 单位描边量 +settings.MindowMap.drawLabel = Draw Label +settings.MindowMap.drawSpawn = Draw Spawnpoint +settings.MindowMap.drawFog = Draw Fog +settings.MindowMap.drawIndicator = Draw Attack Indicator +settings.MindowMap.drawObjective = Draw Objective +settings.MindowMap.size = Minimap Size +settings.MindowMap.drawUnitColorDiff = Unit Icon Color Difference +settings.MindowMap.drawUnitOutline = Unit Icon Stroke -settings.LogicHelper.autocomplete = 自动补全 -settings.LogicHelper.split = 分隔符 +settings.LogicHelper.autocomplete = Auto Complete +settings.LogicHelper.split = Split + +settings.mindow.scale = UI Scale + +settings.meta.category = MI2U Settings +settings.meta.dialogTitle = MI2U Settings +settings.meta.mindowHelp = Help +settings.meta.oldVersionButton = Legacy settings +settings.meta.oldVersion.tip = Click to copy as text. +settings.meta.oldVersion = This mod uses a new settings framework since version 1.6.x, and all settings are stored in the player's personal settings for import and export along with the game data. \nYou can use the BlackDeluxeCat/SettingSweep mod to manage your personal settings. \nIf you have filled in a setting by mistake and the mod is broken, please disable MI2-Utilities-Java and download SettingSweep to find and delete the setting that is causing the problem. \nThe old settings file (in the mod folder) has been deactivated, and version 1.7.0 can still view and export the old settings as text, and in subsequent versions it will be completely deprecated and removed. mi2u.settings.cleanUp = Clean Up MI2U Settings mi2u.settings.removeConf = (IRREVERSIBLE)Confirm remove this setting: diff --git a/assets/bundles/bundle_zh_CN.properties b/assets/bundles/bundle_zh_CN.properties index 2909daa..707e896 100644 --- a/assets/bundles/bundle_zh_CN.properties +++ b/assets/bundles/bundle_zh_CN.properties @@ -143,12 +143,12 @@ settings.MI2UI.forceTapTile = 强制跨队交互 settings.MI2UI.edgePanning = 屏边移动视角 settings.modify = 修改原版 settings.MI2UI.blockSelectTableHeight = 方块选择面板高度 -settings.MI2UI.modifyBlockBars = 修改信息窗信息 -settings.MI2UI.modifyBlockBars.description = 在单位信息栏和建筑信息栏中替换或添加血量条、护盾条等更详细的信息。 -settings.MI2UI.replaceTopTable = 替换TopTable -settings.MI2UI.replaceTopTable.description = 将原版光标悬浮的信息窗[accent]替换[]为本Mod的信息窗。可以同时显示光标处的地形、单位、建筑。 -settings.MI2UI.modTopTableFollowMouse = 模组TopTable跟随鼠标 -settings.MI2UI.modTopTableFollowMouse.description = 将本Mod的信息窗从右下角分离出来,跟随光标移动。不支持原版信息窗。 +settings.MI2UI.modifyBlockBars = 修改悬浮信息栏 +settings.MI2UI.modifyBlockBars.description = 在单位悬浮信息栏和建筑信息栏中替换或添加血量条、护盾条等更详细的信息。 +settings.MI2UI.replaceTopTable = 替换悬浮信息栏 +settings.MI2UI.replaceTopTable.description = 将原版的悬浮信息栏[accent]替换[]为本Mod的悬浮信息栏。可以同时显示光标处的地形、单位、建筑。 +settings.MI2UI.modTopTableFollowMouse = 模组悬浮信息栏跟随鼠标 +settings.MI2UI.modTopTableFollowMouse.description = 将本Mod的悬浮信息栏从右下角分离出来,跟随光标移动。不支持原版悬浮信息栏。 settings.MI2UI.maxSchematicSize = 最大蓝图尺寸 settings.MI2UI.maxZoom = 最大缩放 settings.MI2UI.minZoom = 最小缩放 @@ -184,7 +184,6 @@ settings.meta.oldVersionButton = 旧版设置项 settings.meta.oldVersion.tip = 点击以文本形式复制到剪切板 settings.meta.oldVersion = 本Mod自1.6.x版本开始使用新的设置框架,所有设置存入玩家的个人settings存档,以便随游戏数据一起导入导出。\n可以使用我开发的设置项管理器模组BlackDeluxeCat/SettingSweep来管理个人settings存档。\n如果你误填了某个设置项导致本Mod的崩坏,请先停用MI2-Utilities-Java,然后下载SettingSweep,找到并删除引发问题的设置项。\n旧版设置文件(Mod文件夹中)已停用,1.7.0仍可以查看、以文本形式导出旧版设置项,随后的版本将完全废弃并移除相关代码。 -mindow2.helpInfoTitle = 帮助信息 mindow2.uiHelp = Mindow2是MI2U开发的简易窗体。\ \n每个Mindow2都有标题栏,标题栏有标题文本+5个按钮,各部件均有功能。其他部件均在[accent]内容[]区域。\ \n[#cce6ff]标题文本[]:按住标题可拖拽,可以吸附到边缘或其他窗体。\ diff --git a/src/mi2u/ui/elements/Mindow2.java b/src/mi2u/ui/elements/Mindow2.java index fba1515..4a3a116 100644 --- a/src/mi2u/ui/elements/Mindow2.java +++ b/src/mi2u/ui/elements/Mindow2.java @@ -349,7 +349,7 @@ public boolean addTo(Group newParent){ } public void showHelp(){ - new BaseDialog("@mindow2.helpInfoTitle"){ + new BaseDialog(""){ { addCloseButton(); this.cont.pane(t -> {