]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Do not spawn the close button on menu dialogs if HEIGHT_DIALOGBORDER is 0 (skin file...
authorterencehill <piuntn@gmail.com>
Mon, 11 Apr 2011 15:28:32 +0000 (17:28 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 11 Apr 2011 15:28:32 +0000 (17:28 +0200)
It's still possible to close a dialog by pressing the ESC key.

qcsrc/menu/item/dialog.c

index 800a12681e4eb3d8b95ba4c0206baf1691cf5f3a..da6a4013cecd772051b12c76aac0f0a74a681a1c 100644 (file)
@@ -152,7 +152,7 @@ void Dialog_configureDialog(entity me)
 
        me.fill(me);
 
-       if(me.closable)
+       if(me.closable && me.borderLines > 0)
        {
                closebutton = me.closeButton = spawnButton();
                closebutton.configureButton(closebutton, "", 0, me.closeButtonImage);