MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / update

Method update

src/SB/Core/x/xHudText.cpp:87–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void xhud::text_widget::update(F32 dt)
88{
89 updater(dt);
90
91 tb.set_text(text);
92 tb.bounds.x = rc.loc.x;
93 tb.bounds.y = rc.loc.y;
94 tb.bounds.w = rc.size.x;
95 tb.bounds.h = rc.size.y;
96 tb.font.clip = tb.bounds;
97
98 tb.font.color.r = (rc.r * 255.0f) + 0.5f;
99 tb.font.color.g = (rc.g * 255.0f) + 0.5f;
100 tb.font.color.b = (rc.b * 255.0f) + 0.5f;
101 tb.font.color.a = (rc.a * 255.0f) + 0.5f;
102}
103
104void xhud::text_widget::render()
105{

Callers

nothing calls this directly

Calls 2

updaterFunction · 0.50
set_textMethod · 0.45

Tested by

no test coverage detected