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

Function activate

src/SB/Game/zTalkBox.cpp:959–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957 }
958
959 static void activate(ztalkbox& t)
960 {
961 deactivate();
962
963 shared.active = &t;
964
965 if (t.dialog_box->flag.active)
966 {
967 t.dialog_box->deactivate();
968 }
969
970 if (t.prompt_box != NULL && t.flag.visible)
971 {
972 t.prompt_box->activate();
973 }
974
975 start_audio_effect(t);
976
977 t.dialog_box->flag.visible = 1;
978 }
979 static bool is_wait_jot(const xtextbox::jot& j)
980 {
981 return j.tag && j.tag->parse_tag == parse_tag_wait;

Callers 1

start_talkMethod · 0.85

Calls 4

deactivateFunction · 0.85
start_audio_effectFunction · 0.85
deactivateMethod · 0.45
activateMethod · 0.45

Tested by

no test coverage detected