handing for altcanvas in alerts

This commit is contained in:
downthecrop 2024-10-24 23:21:55 -07:00
parent 1eb7483d35
commit 838acc57ff
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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()