| 180 | //------------------------------------------------------------------------------ |
| 181 | |
| 182 | void GuiToolboxButtonCtrl::renderButton(GFXTexHandle &texture, Point2I &offset, const RectI& updateRect) |
| 183 | { |
| 184 | if (texture) |
| 185 | { |
| 186 | Point2I finalOffset = offset; |
| 187 | |
| 188 | finalOffset.x += ( ( getWidth() / 2 ) - ( texture.getWidth() / 2 ) ); |
| 189 | finalOffset.y += ( ( getHeight() / 2 ) - ( texture.getHeight() / 2 ) ); |
| 190 | |
| 191 | GFX->getDrawUtil()->clearBitmapModulation(); |
| 192 | GFX->getDrawUtil()->drawBitmap(texture, finalOffset); |
| 193 | renderChildControls( offset, updateRect); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | DEF_ASSET_BINDS(GuiToolboxButtonCtrl, NormalBitmap); |
| 198 | DEF_ASSET_BINDS(GuiToolboxButtonCtrl, LoweredBitmap); |
nothing calls this directly
no test coverage detected