| 172 | |
| 173 | template <class TParamWidget> |
| 174 | TParamWidget* createLightParamCentered(math::Vec pos, engine::Module* module, int paramId, int firstLightId) { |
| 175 | TParamWidget* o = createLightParam<TParamWidget>(pos, module, paramId, firstLightId); |
| 176 | o->box.pos = o->box.pos.minus(o->box.size.div(2)); |
| 177 | return o; |
| 178 | } |
| 179 | |
| 180 | |
| 181 | template <class TMenu = ui::Menu> |