| 96 | |
| 97 | template <class TParamWidget> |
| 98 | TParamWidget* createParamCentered(math::Vec pos, engine::Module* module, int paramId) { |
| 99 | TParamWidget* o = createParam<TParamWidget>(pos, module, paramId); |
| 100 | o->box.pos = o->box.pos.minus(o->box.size.div(2)); |
| 101 | return o; |
| 102 | } |
| 103 | |
| 104 | |
| 105 | template <class TPortWidget> |