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

Method PreUpdate

src/SB/Game/zUI.cpp:122–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120} // namespace
121
122void zUIMgr::PreUpdate(zScene* s, F32 dt)
123{
124 if (s->baseCount[eBaseTypeUI])
125 {
126 _zUI* ui = (_zUI*)s->baseList[eBaseTypeUI];
127
128 for (U32 i = 0; i < s->baseCount[eBaseTypeUI]; i++)
129 {
130 ui->uiButton = 0;
131 ui++;
132 }
133 }
134
135 if (s->baseCount[eBaseTypeUI])
136 {
137 _zUI* ui = (_zUI*)s->baseList[eBaseTypeUI];
138
139 for (U32 i = 0; i < s->baseCount[eBaseTypeUI]; i++)
140 {
141 zUI_PreUpdate(ui, s, dt);
142 ui++;
143 }
144 }
145}
146
147void zUIMgr::Update(zScene* s, F32 dt)
148{

Callers 1

zSceneUpdateFunction · 0.80

Calls 1

zUI_PreUpdateFunction · 0.70

Tested by

no test coverage detected