Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-client into foo-v7
  • Loading branch information
BalaM314 committed Dec 14, 2023
2 parents 8193f39 + b8cbf32 commit b9c2190
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/assets/bundles/bundle_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1254,12 +1254,17 @@ ability.statusfield = 状态场
ability.unitspawn = 单位工厂
ability.shieldregenfield = 护盾再生场
ability.movelightning = 闪电助推器
ability.moveeffect = 移动效果
ability.shieldarc = 弧形护盾
ability.suppressionfield = 修复压制场
ability.energyfield = 能量场:
ability.energyfield.sametypehealmultiplier = [lightgray]Same Type Healing: [white]{0}%
ability.energyfield.maxtargets = [lightgray]Max Targets: [white]{0}
ability.regen = Regeneration
ability.armorplate = 装甲
ability.spawndeath = 死亡时生成
ability.liquidregen = 从液体中再生
ability.liquidexplode = 死亡时释放液体

bar.onlycoredeposit = 仅核心可丢入资源
bar.drilltierreq = 需要更高级的钻头
Expand Down Expand Up @@ -1463,7 +1468,7 @@ setting.drawselectionvanilla.description = 选择一块区域时绘制的轮廓
setting.drawcursors.name = 绘制玩家光标
setting.drawdisplayborder.name = 绘制逻辑显示屏和画板的边框
setting.tracelogicunits.name = 追踪单位控制逻辑
setting.tracelogicunits.description = 光标悬浮在处理器上时在其与受控单位之间绘制线条
setting.tracelogicunits.description = 光标悬停在处理器上时在其与受控单位之间绘制线条
setting.enemyunitranges.name = 当炮塔范围启用时显示敌人单位的范围
setting.allyunitranges.name = 当己方炮塔范围启用时显示己方单位的范围
setting.highlightselectedgraph.name = 高亮当前所选的电力图
Expand Down
7 changes: 7 additions & 0 deletions core/src/mindustry/input/InputHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import mindustry.net.Administration.*;
import mindustry.net.*;
import mindustry.type.*;
import mindustry.ui.*;
import mindustry.ui.fragments.*;
import mindustry.world.*;
import mindustry.world.blocks.*;
Expand Down Expand Up @@ -1324,6 +1325,12 @@ protected void drawSelection(int x1, int y1, int x2, int y2, int maxLength, Colo
Draw.color(col2, .3f);
Fill.crect(result.x, result.y, result.x2 - result.x, result.y2 - result.y);
}
Font font = Fonts.outline;
font.setColor(col2);
font.getData().setScale(1 / (4 * Scl.scl(1)));
font.draw((int)(result.x2 - result.x) / 8 + "x" + (int)(result.y2 - result.y) / 8, result.x2, result.y);
font.setColor(Color.white);
font.getData().setScale(1);
}

protected void flushSelectPlans(Seq<BuildPlan> plans){
Expand Down

0 comments on commit b9c2190

Please sign in to comment.