fixed maven issues
Maven really fucked me on this merge lol
This commit is contained in:
@@ -27,9 +27,9 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>com.runeswag</groupId>
|
||||
<artifactId>runeswag-parent</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<groupId>net.runelite</groupId>
|
||||
<artifactId>runelite-parent</artifactId>
|
||||
<version>1.5.26-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>client</artifactId>
|
||||
@@ -422,7 +422,7 @@
|
||||
<plugin>
|
||||
<groupId>net.runelite</groupId>
|
||||
<artifactId>script-assembler-plugin</artifactId>
|
||||
<version>1.5.26-SNAPSHOT</version>
|
||||
<version>1.5.23-SNAPSHOT</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>assemble</id>
|
||||
|
||||
@@ -300,7 +300,7 @@ public class Notifier
|
||||
{
|
||||
if (OSType.getOSType() == OSType.Linux && !Files.exists(notifyIconPath))
|
||||
{
|
||||
try (InputStream stream = Notifier.class.getResourceAsStream("/runeliteplus.png"))
|
||||
try (InputStream stream = Notifier.class.getResourceAsStream("/runelite.png"))
|
||||
{
|
||||
Files.copy(stream, notifyIconPath);
|
||||
}
|
||||
|
||||
@@ -34,11 +34,22 @@ import net.runelite.client.config.Range;
|
||||
@ConfigGroup("runeliteplus")
|
||||
public interface RuneLitePlusConfig extends Config
|
||||
{
|
||||
@ConfigItem(
|
||||
position = 0,
|
||||
keyName = "customPresence",
|
||||
name = "RL+ Presence",
|
||||
description = "Represent RL+ with a custom icon and discord presence."
|
||||
)
|
||||
default boolean customPresence()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "enableOpacity",
|
||||
name = "Enable opacity",
|
||||
description = "Enables opacity for the whole window.<br>NOTE: This only stays enabled if your pc supports this!",
|
||||
position = 0
|
||||
position = 1
|
||||
)
|
||||
default boolean enableOpacity()
|
||||
{
|
||||
@@ -53,7 +64,7 @@ public interface RuneLitePlusConfig extends Config
|
||||
keyName = "opacityPercentage",
|
||||
name = "Opacity percentage",
|
||||
description = "Changes the opacity of the window if opacity is enabled",
|
||||
position = 1
|
||||
position = 2
|
||||
)
|
||||
default int opacityPercentage()
|
||||
{
|
||||
@@ -64,7 +75,7 @@ public interface RuneLitePlusConfig extends Config
|
||||
keyName = "keyboardPin",
|
||||
name = "Keyboard bank pin",
|
||||
description = "Enables you to type your bank pin",
|
||||
position = 2
|
||||
position = 3
|
||||
)
|
||||
default boolean keyboardPin()
|
||||
{
|
||||
@@ -75,7 +86,7 @@ public interface RuneLitePlusConfig extends Config
|
||||
keyName = "logOpt",
|
||||
name = "Send logs",
|
||||
description = "Send logs to help us analyze errors",
|
||||
position = 3
|
||||
position = 4
|
||||
)
|
||||
default boolean logOpt()
|
||||
{
|
||||
|
||||
@@ -160,19 +160,32 @@ public class RuneLitePlusPlugin extends Plugin
|
||||
@Override
|
||||
protected void startUp() throws Exception
|
||||
{
|
||||
ClientUI.currentPresenceName = ("RuneLitePlus");
|
||||
ClientUI.frame.setTitle(ClientUI.currentPresenceName);
|
||||
RuneLiteProperties.discordAppID = rlPlusDiscordApp;
|
||||
discordService.close();
|
||||
discordService.init();
|
||||
|
||||
entered = -1;
|
||||
enterIdx = 0;
|
||||
|
||||
if (getConfig(configManager).customPresence())
|
||||
{
|
||||
ClientUI.currentPresenceName = ("RuneLitePlus");
|
||||
ClientUI.frame.setTitle(ClientUI.currentPresenceName);
|
||||
}
|
||||
|
||||
if (config.logOpt())
|
||||
{
|
||||
Sentry.init("https://f0ed76be2fe847f8b9eb3620fa55d729@sentry.io/1468399?stacktrace.app.packages=net.runelite.client");
|
||||
}
|
||||
|
||||
if (config.customPresence())
|
||||
{
|
||||
RuneLiteProperties.discordAppID = rlPlusDiscordApp;
|
||||
discordService.close();
|
||||
discordService.init();
|
||||
}
|
||||
else
|
||||
{
|
||||
RuneLiteProperties.discordAppID = rlDiscordApp;
|
||||
discordService.close();
|
||||
discordService.init();
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
@@ -183,7 +196,33 @@ public class RuneLitePlusPlugin extends Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
if (!config.keyboardPin())
|
||||
if (event.getKey().equals("customPresence"))
|
||||
{
|
||||
if (config.customPresence())
|
||||
{
|
||||
ClientUI.currentPresenceName = ("RuneLitePlus");
|
||||
ClientUI.frame.setTitle(ClientUI.currentPresenceName);
|
||||
}
|
||||
else
|
||||
{
|
||||
ClientUI.currentPresenceName = ("RuneLite");
|
||||
ClientUI.frame.setTitle(ClientUI.currentPresenceName);
|
||||
}
|
||||
|
||||
if (config.customPresence())
|
||||
{
|
||||
RuneLiteProperties.discordAppID = rlPlusDiscordApp;
|
||||
discordService.close();
|
||||
discordService.init();
|
||||
}
|
||||
else
|
||||
{
|
||||
RuneLiteProperties.discordAppID = rlDiscordApp;
|
||||
discordService.close();
|
||||
discordService.init();
|
||||
}
|
||||
}
|
||||
else if (!config.keyboardPin())
|
||||
{
|
||||
entered = -1;
|
||||
enterIdx = 0;
|
||||
|
||||
@@ -64,7 +64,7 @@ import org.apache.commons.compress.compressors.CompressorException;
|
||||
@Singleton
|
||||
public class ClientLoader
|
||||
{
|
||||
private static final File CUSTOMFILE = new File("./injected-client/target/injected-client-1.5.25-SNAPSHOT.jar");
|
||||
private static final File CUSTOMFILE = new File("./injected-client/target/injected-client-1.0-SNAPSHOT.jar");
|
||||
private final ClientConfigLoader clientConfigLoader;
|
||||
private ClientUpdateCheckMode updateCheckMode;
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ public class ClientUI
|
||||
private static final int CLIENT_WELL_HIDDEN_MARGIN_TOP = 10;
|
||||
public static boolean allowInput = false;
|
||||
public static String currentPresenceName = "RuneLite";
|
||||
public static final BufferedImage ICON = ImageUtil.getResourceStreamFromClass(ClientUI.class, "/runeliteplus.png");
|
||||
public static final BufferedImage ICON = ImageUtil.getResourceStreamFromClass(ClientUI.class, "/runelite.png");
|
||||
|
||||
@Getter
|
||||
private TrayIcon trayIcon;
|
||||
|
||||
@@ -153,6 +153,17 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>test-jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>net.runelite</groupId>
|
||||
<artifactId>runelite-parent</artifactId>
|
||||
<version>1.5.25-SNAPSHOT</version>
|
||||
<groupId>com.runeswag</groupId>
|
||||
<artifactId>runeswag-parent</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>injected-client</artifactId>
|
||||
@@ -37,9 +37,9 @@
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.runeswag</groupId>
|
||||
<groupId>net.runelite</groupId>
|
||||
<artifactId>client</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<version>1.5.26-SNAPSHOT</version>
|
||||
<optional>true</optional> <!-- to prevent the dependency on this from runelite-client -->
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -51,7 +51,7 @@
|
||||
<dependency>
|
||||
<groupId>net.runelite.rs</groupId>
|
||||
<artifactId>vanilla</artifactId>
|
||||
<version>${rs.version}</version>
|
||||
<version>180</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@@ -61,7 +61,7 @@
|
||||
<plugin>
|
||||
<groupId>net.runelite.rs</groupId>
|
||||
<artifactId>injector-plugin</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<version>1.5.26-SNAPSHOT</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<parent>
|
||||
<groupId>net.runelite</groupId>
|
||||
<artifactId>runelite-parent</artifactId>
|
||||
<version>1.5.25-SNAPSHOT</version>
|
||||
<version>1.5.26-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<groupId>net.runelite.rs</groupId>
|
||||
|
||||
Reference in New Issue
Block a user