2 #include "../item/label.qh" 8 me.configureXonoticListBox(me);
14 if (me.stringList >= 0)
16 buf_del(me.stringList);
23 if (me.stringList >= 0)
25 buf_del(me.stringList);
42 bufstr_set(buf, line, t);
53 if (me.stringList >= 0)
55 return bufstr_get(me.stringList, i);
64 me.itemAbsSize =
'0 0 0';
67 me.itemAbsSize.y = absSize.y * me.itemHeight;
68 me.itemAbsSize.x = absSize.x * (1 - me.controlWidth);
69 me.realFontSize.y = me.fontSize / me.itemAbsSize.y;
70 me.realFontSize.x = me.fontSize / me.itemAbsSize.x;
72 for (
int i = 0; i < me.nItems; ++i)
76 temp = me.getTextBoxLine(me, i);
80 temp =
strcat(temp,
"\n", me.getTextBoxLine(me, i));
88 string s = me.getTextBoxLine(me, i);
89 draw_Text(
vec2(0, 0), s, me.realFontSize, me.colorL, me.alpha,
true);
string getWrappedLine_remaining
string XonoticTextBox_getTextBoxLine(entity me, int i)
void XonoticTextBox_setText(entity me, string text)
void XonoticTextBox_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
entity makeXonoticTextBox()
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void XonoticTextBox_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
#define tokenizebyseparator
string getWrappedLine(float w, vector theFontSize, textLengthUpToWidth_widthFunction_t tw)
void XonoticTextBox_destroy(entity me)