From 8380e6561b814a72244d50feb26fcfc3ce02f30f Mon Sep 17 00:00:00 2001 From: sharlottes <60801210+sharlottes@users.noreply.github.com> Date: Fri, 28 May 2021 08:57:57 +0900 Subject: [PATCH] add cancel button --- assets/bundles/bundle.properties | 3 +- assets/bundles/bundle_ko.properties | 3 +- src/UnitInfo/core/HudUi.java | 53 ++++++++++++++++++++--------- 3 files changed, 41 insertions(+), 18 deletions(-) diff --git a/assets/bundles/bundle.properties b/assets/bundles/bundle.properties index bdbd03a..fff8b7e 100644 --- a/assets/bundles/bundle.properties +++ b/assets/bundles/bundle.properties @@ -37,4 +37,5 @@ warning = displayed wave amount is too high! it may cause lags. #Hud hud.unit = Unit Info hud.wave = Wave Info -hud.core = Core Info \ No newline at end of file +hud.core = Core Info +hud.cancel = Cancelled \ No newline at end of file diff --git a/assets/bundles/bundle_ko.properties b/assets/bundles/bundle_ko.properties index e3d84d8..23a72da 100644 --- a/assets/bundles/bundle_ko.properties +++ b/assets/bundles/bundle_ko.properties @@ -37,4 +37,5 @@ warning = 표시될 웨이브 수가 너무 많습니다! 많은 랙이 걸릴 #Hud hud.unit = 유닛 정보 hud.wave = 단계 정보 -hud.core = 코어 정보 \ No newline at end of file +hud.core = 코어 정보 +hud.cancel = 닫음 \ No newline at end of file diff --git a/src/UnitInfo/core/HudUi.java b/src/UnitInfo/core/HudUi.java index 5450e6c..2498807 100644 --- a/src/UnitInfo/core/HudUi.java +++ b/src/UnitInfo/core/HudUi.java @@ -97,12 +97,13 @@ public class HudUi { Table labelTable = new Table(t -> t.add(label).scaling(Scaling.fit).left().padRight(40 * 8f)); table.table(t -> { - Button[] buttons = {null, null, null}; - buttons[0] = t.button(Icon.units, Styles.clearToggleTransi, () -> { + Seq