Commit f4036066 authored by Marwolf's avatar Marwolf

Merge branch 'onlinelist-button' into '2.0.0'

Onlinelist Button On Cabbage Settings Tab (#2136)

Closes #2136

See merge request open-rsc/Game!2220
parents 1ae36830 b2a61913
......@@ -7993,6 +7993,17 @@ public final class mudclient implements Runnable {
this.getSurface().drawString("Block duel requests: @red@<off>", 3 + baseX, y, 0xFFFFFF, 1);
}
//Display Online List
if (!this.insideTutorial) {
y += 25;
int textColor = 0xFFFFFF;
if (this.mouseX > x && this.mouseX < x + boxWidth && this.mouseY > y - 12
&& this.mouseY < y + 4) {
textColor = 0xFFFF00;
}
this.getSurface().drawString("Display online list", (baseX + 3), y, textColor, 1);
}
// skip tutorial or exit the black hole menu option
int logoutColor;
if (this.insideTutorial) {
......@@ -8629,6 +8640,13 @@ public final class mudclient implements Runnable {
this.settingsBlockTrade, this.settingsBlockDuel);
}
//Handle online list click
yFromTopDistance += 25;
if (this.mouseX > var6 && this.mouseX < var6 + var5
&& yFromTopDistance - 12 < this.mouseY && this.mouseY < yFromTopDistance + 4 && this.mouseButtonClick == 1) {
this.sendCommandString("onlinelist");
}
// skip tutorial button or exit blackhole button
if (this.insideTutorial) {
yFromTopDistance = 255;
......
......@@ -7993,6 +7993,17 @@ public final class mudclient implements Runnable {
this.getSurface().drawString("Block duel requests: @red@<off>", 3 + baseX, y, 0xFFFFFF, 1);
}
//Display Online List
if (!this.insideTutorial) {
y += 25;
int textColor = 0xFFFFFF;
if (this.mouseX > x && this.mouseX < x + boxWidth && this.mouseY > y - 12
&& this.mouseY < y + 4) {
textColor = 0xFFFF00;
}
this.getSurface().drawString("Display online list", (baseX + 3), y, textColor, 1);
}
// skip tutorial or exit the black hole menu option
int logoutColor;
if (this.insideTutorial) {
......@@ -8629,6 +8640,13 @@ public final class mudclient implements Runnable {
this.settingsBlockTrade, this.settingsBlockDuel);
}
//Handle online list click
yFromTopDistance += 25;
if (this.mouseX > var6 && this.mouseX < var6 + var5
&& yFromTopDistance - 12 < this.mouseY && this.mouseY < yFromTopDistance + 4 && this.mouseButtonClick == 1) {
this.sendCommandString("onlinelist");
}
// skip tutorial button or exit blackhole button
if (this.insideTutorial) {
yFromTopDistance = 255;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment