From d6bf7c2cf6c189762cbbe738956c1d527a7762b5 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Wed, 9 May 2018 14:35:13 +0200 Subject: [PATCH] Show RuneLite launcher version in info panel Signed-off-by: Tomas Slusny --- .../java/net/runelite/client/plugins/info/InfoPanel.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/info/InfoPanel.java b/runelite-client/src/main/java/net/runelite/client/plugins/info/InfoPanel.java index bccb6b2dc7..64c01cf7c8 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/info/InfoPanel.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/info/InfoPanel.java @@ -25,6 +25,7 @@ */ package net.runelite.client.plugins.info; +import com.google.common.base.MoreObjects; import com.google.common.eventbus.EventBus; import com.google.common.eventbus.Subscribe; import com.google.inject.Inject; @@ -133,6 +134,10 @@ public class InfoPanel extends PluginPanel revision.setText(htmlLabel("Oldschool revision: ", engineVer)); + JLabel launcher = new JLabel(htmlLabel("Launcher version: ", MoreObjects + .firstNonNull(runeLiteProperties.getLauncherVersion(), "Unknown"))); + launcher.setFont(smallFont); + loggedLabel.setForeground(ColorScheme.LIGHT_GRAY_COLOR); loggedLabel.setFont(smallFont); @@ -152,6 +157,7 @@ public class InfoPanel extends PluginPanel versionPanel.add(version); versionPanel.add(revision); + versionPanel.add(launcher); versionPanel.add(Box.createGlue()); versionPanel.add(loggedLabel); versionPanel.add(emailLabel);