From: Freddy Date: Tue, 31 Dec 2019 19:14:36 +0000 (+0100) Subject: TextBox: set nItems to 0 at start X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=52e525d9d0929e0f4d54b9fab288a50fb790322f;p=xonotic%2Fxonotic-data.pk3dir.git TextBox: set nItems to 0 at start --- diff --git a/qcsrc/menu/xonotic/textbox.qh b/qcsrc/menu/xonotic/textbox.qh index e8afda016..323a9bb2b 100644 --- a/qcsrc/menu/xonotic/textbox.qh +++ b/qcsrc/menu/xonotic/textbox.qh @@ -14,6 +14,7 @@ CLASS(XonoticTextBox, XonoticListBox) ATTRIB(XonoticTextBox, itemAbsSize, vector, '0 0 0'); METHOD(XonoticTextBox, setText, void(entity, string)); METHOD(XonoticTextBox, getTextBoxContent, string(entity, int)); + ATTRIB(XonoticTextBox, nItems, int, 0); ATTRIB(XonoticTextBox, stringList, int, -1); ATTRIB(XonoticTextBox, selectionDoesntMatter, bool, true); ENDCLASS(XonoticTextBox)