| 115 | |
| 116 | template <class TPortWidget> |
| 117 | TPortWidget* createInputCentered(math::Vec pos, engine::Module* module, int inputId) { |
| 118 | TPortWidget* o = createInput<TPortWidget>(pos, module, inputId); |
| 119 | o->box.pos = o->box.pos.minus(o->box.size.div(2)); |
| 120 | return o; |
| 121 | } |
| 122 | |
| 123 | |
| 124 | template <class TPortWidget> |