| 214 | } // namespace |
| 215 | |
| 216 | void ztextbox::load(const asset_type& a) |
| 217 | { |
| 218 | xBaseInit(this, (xBaseAsset*)&a); |
| 219 | |
| 220 | baseType = eBaseTypeTextBox; |
| 221 | asset = (asset_type*)&a; |
| 222 | eventFunc = cb_dispatch; |
| 223 | |
| 224 | if (linkCount) |
| 225 | { |
| 226 | link = (xLinkAsset*)(&a + 1); |
| 227 | } |
| 228 | |
| 229 | tb.context = this; |
| 230 | prev = NULL; |
| 231 | next = NULL; |
| 232 | |
| 233 | memset(&flag, 0, sizeof(flag)); |
| 234 | |
| 235 | bgtex = NULL; |
| 236 | |
| 237 | if (a.backdrop.texture) |
| 238 | { |
| 239 | RwTexture* tex = (RwTexture*)xSTFindAsset(a.backdrop.texture, NULL); |
| 240 | bgtex = RwTextureGetRaster(tex); |
| 241 | } |
| 242 | |
| 243 | reset(); |
| 244 | } |
| 245 | |
| 246 | void ztextbox::update(xScene&, F32) |
| 247 | { |
nothing calls this directly
no test coverage detected