From 0b570a391c87cb9c878ea2e6f81e407b21644573 Mon Sep 17 00:00:00 2001 From: FattyHope Date: Mon, 2 Oct 2023 22:24:33 +1000 Subject: [PATCH] Change fire rate from text to image --- source/core/assets/images/glass.png | Bin 0 -> 13839 bytes .../csse3200/game/input/UpgradeUIComponent.java | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 source/core/assets/images/glass.png diff --git a/source/core/assets/images/glass.png b/source/core/assets/images/glass.png new file mode 100644 index 0000000000000000000000000000000000000000..f9d9d87ea7378224c4d8ad2d3e80c90fea4453d9 GIT binary patch literal 13839 zcmeHuhgVb0*X~IOL_p9;i6TWodJ_YRh9*S>0VxV7B?yW%1w;dakf0(_6cj~B=txy* zuT&`s3StRT1*AsMfYJ?BAi0zG{grQhf52Vqu60?91?QYOduH~Y{p^{&pL5sN##~51 zLI8pwA&cXt_7DUI|H7dyeBjSwSkE8u2N7ayacT?rxv}Lu30(6B9X}HS+V^pPVa7_S zVc_Pjt7gtu9Rj_thMv1}0SXNb)$qOSAL4Z`=z>Pzm5ZsfdJ+({2eL3ddMYe!W;mjv z^z@m@g}Jv<(e^N&+dDdqFvpH7W$oC*7i(4G4vFzs`MAHfy?(f7r{ae}*eRL`F*lc} z?6kCJ$6pUl*$Q`Q=^RHn2-^y{ZSQwoj`}P!7kBymtG=@ln@sHJrxnaQ36mH4nO_4p znQ85mIn3xT^4)i;vIpVId{sPEXIt78mckW_{;G=}bX*9*1fBLCaVQT|QL}>HDasy1 zy2B;6O!EZTR+}gC`Rodk58|IMqHmo0!S;D)1s#)>?d6H*6Gq~Zz0U{bEad)zukHvk z2*P_C*wz|SU?RlmI1(hxV*^zc4@p^!hYAMi1x39kZl&QDVV%@+c`n}$vtAYtE9!9C(=cmz3n=jMMXyTRYvKGZy;w=n| zG9cBtaYpIj9#rtYGEp?aV)HNFvWoO)+S?T%p6w`q^X9uWbK;U}sClB}g-C`RD%jKX zrCS|_l9~X8mq;B)!;w9+ar@f3^Jsg?we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9|J4c-f^Nv&SWv2;_ezlesoIN!FrgmvUN$55|4IBXnP{FeED7|>OqRd{T z!48z-vF3qF?6canEm;!-(O35d8G-J*^xOm_6G7c5)HI<@ipY-G2I$szet^>L34Nxp zQ9@;Vw}CxiidNile@vbL#&>K(WEBkfaq?E_xUQh#ZPPz~5~B{lCbO5*IMEQQp3^dKokd z;VFBC-m(;ng*LD3*1NQe& zRUUb&herY03=RX1VUJ9k3V&k`0dGw0PD`4R-RmMegt#G9^J=q}*SYs-fW>ARtPMBL zQ zPB}a`eN#(&n*n?>mPfFfpi}1Mo$&*V|6c)S7?8QXOVG8FnXn0h6S^QC6>#MvzTXWfh| zSlI3kE{hxRzh?w0BMt@S0zSP?=VvMNF1oz@6Uw^wNx)IRbh>bO`~WK=X5gtdY)0~m zYc}&lTO2dPh zexn$WCG%f2r+NO<4iH-Z0H)n-D`=kuWe<>dS+#@tO0YuN_q8QmS)OU2P6X2a+v=C9 z)|RS3&ExqtwiCs$OR?a0Lrr{`RAL2 z-v53Xp#bTlP=sxIRJ`H7qB2cyrl4P_F<2OnS$?5LiANZ&egFABV@rTboo3>x_v$oZ z@|w|1{Cg?lh!3)PfyuLJ90zcr|2HOd-3K(RG>sz-VD%?d@QfG#-LC#i z3l#^xFHyjhW=+RM?Jk@0}BblG^7hl$d ztmh?$F@wmZu3vvGs=E)9+&4>-PQ^m{eZpBLL5fCQ`_ll|Y7f9h?sqmpd}UEwL}{PS@U-qXFnO*>b&mPmL4tVQ}XpmZr9~(atIy($y;wB+VOuw z@NCME1tndKmP`Z)+|U&&367?K9{az(Qfgyuo*;tBZ&O_{$9Ti{UqO|l$_|xDm3>i( xI#|?)wMZHk8mhXNnHv4#04w8Oq{BIm%y1Wr)Zf|^2R`0{EX-_7ON>2k{vZD#qtXBX literal 0 HcmV?d00001 diff --git a/source/core/src/main/com/csse3200/game/input/UpgradeUIComponent.java b/source/core/src/main/com/csse3200/game/input/UpgradeUIComponent.java index c132ecd98..3a364e3c0 100644 --- a/source/core/src/main/com/csse3200/game/input/UpgradeUIComponent.java +++ b/source/core/src/main/com/csse3200/game/input/UpgradeUIComponent.java @@ -157,6 +157,9 @@ public void clicked(InputEvent event, float x, float y) { Drawable attackIconDrawable = new TextureRegionDrawable(new TextureRegion(new Texture("images/attack.png"))); Image attackIconImage = new Image(attackIconDrawable); + Drawable fireRateDrawable = new TextureRegionDrawable(new TextureRegion(new Texture("images/glass.png"))); + Image fireRateImage = new Image(fireRateDrawable); + TextButton upgradeHealth = new TextButton("+H", style); upgradeHealth.addListener(new ClickListener() { @@ -207,7 +210,7 @@ public void clicked(InputEvent event, float x, float y) { turretEntity.getComponent(TowerUpgraderComponent.class).upgradeTower(TowerUpgraderComponent.UPGRADE.FIRERATE, (int) newFireRate * 5); float fireRate = turretEntity.getComponent(UpgradableStatsComponent.class).getAttackRate(); - fireRateLabel.setText(String.format("Fire Rate: %.2f", fireRate)); + fireRateLabel.setText(String.format("%.2f", fireRate)); } } }); @@ -232,10 +235,13 @@ public void clicked(InputEvent event, float x, float y) { innerUpgradeTable.add(healthIconImage).padRight(5).width(32).height(32); // Add health icon innerUpgradeTable.add(healthLabel).expandX().left(); innerUpgradeTable.row(); + if (attack != 0) { innerUpgradeTable.add(attackIconImage).padRight(5).width(32).height(32); // Add attack icon innerUpgradeTable.add(attackLabel).expandX().left(); innerUpgradeTable.row(); + + innerUpgradeTable.add(fireRateImage).padRight(5).width(32).height(32); // Add fire rate icon innerUpgradeTable.add(fireRateLabel).expandX().right(); innerUpgradeTable.row(); }