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 const float maxWidth = 1 - me.keepspaceLeft - me.keepspaceRight;
51 strcpy(me.m_descriptionWrapped,
wrapGuideText(me.m_description, maxWidth, me.realFontSize));
54 me.setSelected(me, 0);
59 strcpy(me.m_description, desc);
60 me.wrapDescription(me);
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.wrapDescription(me);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
string getWrappedLine(float maxWidth, vector theFontSize, textLengthUpToWidth_widthFunction_t tw)
string getWrappedLine_remaining
void XonoticGuideDescription_wrapDescription(entity me)
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."))