Add always on top setting
This commit is contained in:
@@ -192,6 +192,11 @@ public class RuneLite
|
||||
}
|
||||
|
||||
gui.showWithChrome(runeliteConfig.enableCustomChrome());
|
||||
|
||||
if (gui.isAlwaysOnTopSupported())
|
||||
{
|
||||
gui.setAlwaysOnTop(runeliteConfig.gameAlwaysOnTop());
|
||||
}
|
||||
});
|
||||
|
||||
eventBus.post(new ClientUILoaded());
|
||||
|
||||
@@ -65,4 +65,14 @@ public interface RuneLiteConfig extends Config
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "gameAlwaysOnTop",
|
||||
name = "Enable client always on top",
|
||||
description = "The game will always be on the top of the screen"
|
||||
)
|
||||
default boolean gameAlwaysOnTop()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,6 +206,14 @@ public class ClientUI extends JFrame
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.getKey().equals("gameAlwaysOnTop"))
|
||||
{
|
||||
if (this.isAlwaysOnTopSupported())
|
||||
{
|
||||
this.setAlwaysOnTop(Boolean.valueOf(event.getNewValue()));
|
||||
}
|
||||
}
|
||||
|
||||
if (!event.getKey().equals("gameSize"))
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user