From de9a41159faf985c790898651418f6607d7ae9ec Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 2 May 2022 19:41:43 -0400 Subject: [PATCH] Discord link in desktop menu --- core/assets-raw/sprites/ui/discord-banner.png | Bin 397 -> 331 bytes .../mindustry/ui/fragments/MenuFragment.java | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/assets-raw/sprites/ui/discord-banner.png b/core/assets-raw/sprites/ui/discord-banner.png index 165705e368e12325b98b93c98def2bf57f0ad0f1..0b39176bda0a59f5bcc88f47a38db81990807da8 100644 GIT binary patch delta 305 zcmeBWKFu^ixt@WsILO_JVcj{ImkbPyte!58AsLNtZ|>z}GL&fl_??fNy@1<&!(PrD zS*Ht{YwjEn)X^>B;+8ICDZk)kxR6Z!*oh|B`_}=gK%$3pdV*Eds z+P^8YE1UP+Q2xKU&-6u&%Q`Z}I88!*Hghb{OrF*07<}ABxT(JBrxz2~v*iaDB-EL6 zh@7bcGR(wTxYDZcEl4PP&dQZme{Mm-F4I+cdcUi8&O4|6RLbXjRlUZHy3(emm+{&f zGZIak-W~HcU|!wWWVvR|uE^YV3E!UBEMX1~&SP7)NyaBP@cAcAwiOl*M;W#F0ty?t mm_uY1JYo=KhX`R4d&g;J?zvj_%-0VLK;Y@>=d#Wzp$Pyu>U*#N delta 371 zcmV-(0gV330*wQZBYy!@NklA{Jg8jd);}YD3+k3VVZ)Dh-n5oDy9kO?hlnRMreW#kEsbtOhr&) zDuNPI5tNvUpq`jb#}~ysbI|CRwf&%Z=Ac_K{H|2aL_yv z=<9L&Mt00K4w?r&=NV{bOzD80_XyPcoau?VMHPb*6GW|nMyPki4N7b7u%K5Df)bRV1SKdz<((j c.bottom().right().button(Icon.discord, new ImageButtonStyle(){{ + up = discordBanner; + }}, ui.discord::show).tooltip("@discord").size(84, 45).name("discord")); + //info icon if(mobile){ parent.fill(c -> c.bottom().left().button("", new TextButtonStyle(){{ @@ -59,11 +64,7 @@ public class MenuFragment{ up = infoBanner; }}, ui.about::show).size(84, 45).name("info")); - parent.fill(c -> c.bottom().right().button("", new TextButtonStyle(){{ - font = Fonts.def; - fontColor = Color.white; - up = discordBanner; - }}, ui.discord::show).size(84, 45).name("discord")); + }else if(becontrol.active()){ parent.fill(c -> c.bottom().right().button("@be.check", Icon.refresh, () -> { ui.loadfrag.show();