| 152 | |
| 153 | template <class TModuleLightWidget> |
| 154 | TModuleLightWidget* createLightCentered(math::Vec pos, engine::Module* module, int firstLightId) { |
| 155 | TModuleLightWidget* o = createLight<TModuleLightWidget>(pos, module, firstLightId); |
| 156 | o->box.pos = o->box.pos.minus(o->box.size.div(2)); |
| 157 | return o; |
| 158 | } |
| 159 | |
| 160 | |
| 161 | /** Creates a param with a light and calls setFirstLightId() on it. |