| 65 | } |
| 66 | |
| 67 | bool GuiBitmapCtrl::setBitmapName( void *object, const char *index, const char *data ) |
| 68 | { |
| 69 | // Prior to this, you couldn't do bitmap.bitmap = "foo.jpg" and have it work. |
| 70 | // With protected console types you can now call the setBitmap function and |
| 71 | // make it load the image. |
| 72 | static_cast<GuiBitmapCtrl *>( object )->setBitmap( data ); |
| 73 | |
| 74 | // Return false because the setBitmap method will assign 'mBitmapName' to the |
| 75 | // argument we are specifying in the call. |
| 76 | return false; |
| 77 | } |
| 78 | |
| 79 | void GuiBitmapCtrl::initPersistFields() |
| 80 | { |