]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
TextBox: set nItems to 0 at start
authorFreddy <schro.sb@gmail.com>
Tue, 31 Dec 2019 19:14:36 +0000 (20:14 +0100)
committerFreddy <schro.sb@gmail.com>
Tue, 31 Dec 2019 19:22:06 +0000 (20:22 +0100)
qcsrc/menu/xonotic/textbox.qh

index e8afda016ae3999cbf8c388d1d5188e465e0116e..323a9bb2b443e6da582f329ce84014371bceb90e 100644 (file)
@@ -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)