| 227 | } |
| 228 | |
| 229 | void Button::DrawButtonBorders(surface_t* surface, bool white){ |
| 230 | vector2i_t btnPos = fixedBounds.pos; |
| 231 | rect_t bounds = fixedBounds; |
| 232 | |
| 233 | if(white){ |
| 234 | Graphics::DrawRect(bounds.pos.x+1, btnPos.y, bounds.size.x - 2, 1, 250, 250, 250, surface); |
| 235 | Graphics::DrawRect(btnPos.x+1, btnPos.y + bounds.size.y - 1, bounds.size.x - 2, 1, 250, 250, 250, surface); |
| 236 | Graphics::DrawRect(btnPos.x, btnPos.y + 1, 1, bounds.size.y - 2, 250, 250, 250, surface); |
| 237 | Graphics::DrawRect(btnPos.x + bounds.size.x - 1, btnPos.y + 1, 1, bounds.size.y-2, 250, 250, 250, surface); |
| 238 | } else { |
| 239 | Graphics::DrawRect(btnPos.x+1, btnPos.y, bounds.size.x - 2, 1, 96, 96, 96, surface); |
| 240 | Graphics::DrawRect(btnPos.x+1, btnPos.y + bounds.size.y - 1, bounds.size.x - 2, 1, 96, 96, 96, surface); |
| 241 | Graphics::DrawRect(btnPos.x, btnPos.y + 1, 1, bounds.size.y - 2, 96, 96, 96, surface); |
| 242 | Graphics::DrawRect(btnPos.x + bounds.size.x - 1, btnPos.y + 1, 1, bounds.size.y-2, 96, 96, 96, surface); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | void Button::DrawButtonLabel(surface_t* surface, bool white){ |
| 247 | rgba_colour_t colour; |
nothing calls this directly
no test coverage detected