MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Item_Multi_Paint

Function Item_Multi_Paint

code/ui/ui_shared.cpp:7493–7515  ·  view source on GitHub ↗

================= Item_Multi_Paint ================= */

Source from the content-addressed store, hash-verified

7491=================
7492*/
7493void Item_Multi_Paint(itemDef_t *item)
7494{
7495 vec4_t color;
7496 const char *text = "";
7497
7498 text = Item_Multi_Setting(item);
7499 if (*text == '@') // string reference
7500 {
7501 text = SE_GetString( &text[1] );
7502 }
7503
7504 Item_TextColor(item, &color);
7505 if (item->text)
7506 {
7507 Item_Text_Paint(item);
7508 DC->drawText(item->textRect.x + item->textRect.w + 8, item->textRect.y, item->textscale, color, text, 0, item->textStyle, item->font);
7509 }
7510 else
7511 {
7512//JLF added xoffset
7513 DC->drawText(item->textRect.x +item->xoffset, item->textRect.y, item->textscale, color, text, 0, item->textStyle, item->font);
7514 }
7515}
7516
7517int Item_TextScroll_MaxScroll ( itemDef_t *item )
7518{

Callers 1

Item_PaintFunction · 0.70

Calls 4

Item_Multi_SettingFunction · 0.70
Item_TextColorFunction · 0.70
Item_Text_PaintFunction · 0.70
SE_GetStringFunction · 0.50

Tested by

no test coverage detected