X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fitem%2Fdialog.c;h=383578781544e96b900cca383fc702c377945de8;hb=e0ac5f9f14e169a1e19d0e36b85cab061a74ed93;hp=ed73be09501a6a81db14751e73d824b5cd1a618e;hpb=8ec332c7d3cffdc6b39c3ada385fa41995630589;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/item/dialog.c b/qcsrc/menu/item/dialog.c index ed73be095..383578781 100644 --- a/qcsrc/menu/item/dialog.c +++ b/qcsrc/menu/item/dialog.c @@ -4,7 +4,7 @@ // - closable is 0 // - rootDialog is 0 // - title is "" -// - marginTop is +// - marginTop is // - intendedHeight ends up to be the tab's actual height, or at least close // - titleFontSize is 0 // - marginTop cancels out as much of titleHeight as needed (that is, it should be actualMarginTop - titleHeight) @@ -58,6 +58,8 @@ CLASS(Dialog) EXTENDS(InputContainer) ATTRIB(Dialog, zoomedOutTitleBarPosition, float, 0) ATTRIB(Dialog, zoomedOutTitleBar, float, 0) + ATTRIB(Dialog, requiresConnection, float, 0) // set to TRUE if the dialog requires a connection to be opened + ATTRIB(Dialog, backgroundImage, string, string_null) ATTRIB(Dialog, borderLines, float, 1) ATTRIB(Dialog, closeButtonImage, string, string_null) @@ -133,7 +135,7 @@ void Dialog_configureDialog(entity me) me.frame.alpha = me.alpha; me.addItem(me, me.frame, '0 0 0', '1 1 0', 1); - if not(me.titleFontSize) + if (!me.titleFontSize) me.titleHeight = 0; // no title bar absWidth = me.intendedWidth * conwidth;