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

Method set_text

src/SB/Game/zTalkBox.cpp:1298–1333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296 }
1297}
1298void ztalkbox::set_text(const char* s)
1299{
1300 ztextbox& d = *dialog_box;
1301
1302 if (s)
1303 {
1304 d.set_text(s);
1305 }
1306 else
1307 {
1308 d.clear_text();
1309 }
1310
1311 d.refresh();
1312
1313 if (shared.active != this)
1314 {
1315 return;
1316 }
1317
1318 if (shared.state)
1319 {
1320 shared.state->stop();
1321 shared.state = NULL;
1322 }
1323
1324 ((xtextbox::layout*)&shared.lt)->refresh(d.tb, false);
1325
1326 if (layout_contains_streams())
1327 {
1328 lock_stream();
1329 }
1330
1331 shared.state = shared.states[1];
1332 shared.state->start();
1333}
1334void ztalkbox::set_text(U32 id)
1335{
1336 if (id == 0)

Callers 3

refresh_promptsFunction · 0.45
cb_dispatchFunction · 0.45
start_talkMethod · 0.45

Calls 8

layout_contains_streamsFunction · 0.85
lock_streamFunction · 0.85
set_textFunction · 0.70
xSTFindAssetFunction · 0.50
clear_textMethod · 0.45
refreshMethod · 0.45
stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected