Editor: slightly less hardcoded teleport map

This commit is contained in:
2022-11-13 20:56:20 +01:00
parent c5283000c7
commit 6ac2726a94
5 changed files with 52 additions and 10 deletions
+5
View File
@@ -765,6 +765,11 @@ void placeTool(SDLPP::Scene &scene) {
global_vars.mouse.edit_box.getY(), false, true);
new_obj->setTextureKeepSRC(global_vars.translucent_mod_texture);
new_obj->setData(global_vars.current_tool->getData());
if(new_obj->getId() == TELEPORT_MODIFIER_ID) {
// TODO input
new_obj->setTeleportLevel("test2.marmap");
obj.setModifier(global_vars.current_tool->getId(), "test2.marmap");
}
new_obj->getCollisions()[0]->setId(EDITOR_TERRAIN_ID);
// TODO createModifierBlock
dynamic_cast<MarioBlock *>(new_obj.get())->setTerrain(false);