6 draw_Text(me.keepspaceLeft *
eX,
argv(i), me.realFontSize,
'1 1 1', 1,
true);
13 bool keep_indenting =
false;
15 for (
int i = 0; i < n; ++i)
19 bool dotpoint =
false, indent =
false;
27 else if (keep_indenting)
38 line =
strcat(line,
"\n", s);
40 wrapped =
strcat(wrapped, line);
43 keep_indenting = (indent && i + 1 < n &&
argv(i+1) !=
"");
45 return strcat(wrapped,
"\n\n");
50 if (me.m_description && me.m_description != desc)
52 me.m_description =
strzone(desc);
54 strfree(me.m_descriptionWrapped);
56 const float maxWidth = 1 - me.keepspaceLeft - me.keepspaceRight;
60 me.setSelected(me, 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;
71 me.keepspaceLeft = me.keepspaceRight = me.realFontSize.x;
72 me.setDescription(me, me.m_description);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
string getWrappedLine(float maxWidth, vector theFontSize, textLengthUpToWidth_widthFunction_t tw)
string getWrappedLine_remaining
string wrapGuideText(string desc, float maxWidth, vector theFontSize)
wraps text and creates dot point lists from lines starting with "* "
void XonoticGuideDescription_setDescription(entity me, string desc)
void XonoticGuideDescription_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
void XonoticGuideDescription_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
#define tokenizebyseparator
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))