| 139 | |
| 140 | public: |
| 141 | MenuWidget(MenuObject& obj, rect_t bounds) : Widget(bounds){ |
| 142 | this->obj = &obj; |
| 143 | |
| 144 | label = Lemon::Graphics::TextObject(fixedBounds.pos + (vector2i_t){0, fixedBounds.size.y / 2}, this->obj->name); |
| 145 | label.SetColour({255, 255, 255, 255}); |
| 146 | } |
| 147 | |
| 148 | void Paint(surface_t* surface){ |
| 149 | if(Lemon::Graphics::PointInRect(fixedBounds, menuWindow->lastMousePos)){ |
nothing calls this directly
no test coverage detected