mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
handing for altcanvas in alerts
This commit is contained in:
parent
1eb7483d35
commit
838acc57ff
2 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ object Helpers {
|
||||||
|
|
||||||
|
|
||||||
// Adjust for parent component location if it exists
|
// Adjust for parent component location if it exists
|
||||||
if (parentComponent != null) {
|
if (parentComponent != null && GameShell.canvas.isShowing) {
|
||||||
val parentLocation = parentComponent.locationOnScreen
|
val parentLocation = parentComponent.locationOnScreen
|
||||||
val x = parentLocation.x
|
val x = parentLocation.x
|
||||||
val y = GameShell.canvas.locationOnScreen.y
|
val y = GameShell.canvas.locationOnScreen.y
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@ class plugin : Plugin() {
|
||||||
if (frame != null) {
|
if (frame != null) {
|
||||||
// Create the AltCanvas and add it to the main frame
|
// Create the AltCanvas and add it to the main frame
|
||||||
altCanvas = createAltCanvas(canvas)
|
altCanvas = createAltCanvas(canvas)
|
||||||
|
canvas.isVisible = false
|
||||||
// Use BorderLayout for better layout control
|
// Use BorderLayout for better layout control
|
||||||
frame.layout = BorderLayout()
|
frame.layout = BorderLayout()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue