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

Method Setup

src/SB/Game/zUI.cpp:160–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void zUIMgr::Setup(zScene* s)
161{
162 const U32 count = s->baseCount[eBaseTypeUI];
163 const U32 arraySize = count * sizeof(_zUI*);
164
165 m_preUpdateStart = 0;
166 m_preUpdateEnd = count - 1;
167 m_preUpdateMax = count;
168 m_preUpdate = (_zUI**)xMemAllocSize(arraySize);
169
170 m_updateStart = 0;
171 m_updateEnd = count - 1;
172 m_updateMax = count;
173 m_update = (_zUI**)xMemAllocSize(arraySize);
174
175 // non-matching: incorrect registers
176
177 _zUI* ui = (_zUI*)s->baseList[eBaseTypeUI];
178
179 for (U32 i = 0; i < s->baseCount[eBaseTypeUI]; i++)
180 {
181 Add(ui);
182 ui++;
183 }
184}
185
186void zUIMgr::Touch(_zUI* ui)
187{

Callers 1

zSceneSetupFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected