eliminat soport de borde en les habitacions
This commit is contained in:
@@ -291,8 +291,6 @@ auto MapEditor::revert() -> std::string {
|
||||
|
||||
// Refrescar visuales de la habitación
|
||||
room_->setBgColor(room_data_.bg_color);
|
||||
Screen::get()->setBorderColor(room_data_.border_color);
|
||||
|
||||
// Restaurar el tilemap completo
|
||||
for (int i = 0; i < static_cast<int>(room_data_.tile_map.size()); ++i) {
|
||||
room_->setTile(i, room_data_.tile_map[i]);
|
||||
@@ -960,7 +958,7 @@ void MapEditor::updateStatusBarInfo() { // NOLINT(readability-function-cognitiv
|
||||
conv = "right";
|
||||
}
|
||||
|
||||
line2 = "bg:" + std::to_string(room_data_.bg_color) + " brd:" + std::to_string(room_data_.border_color) + " conv:" + conv;
|
||||
line2 = "bg:" + std::to_string(room_data_.bg_color) + " conv:" + conv;
|
||||
line3 = "u:" + conn(room_data_.upper_room) + " d:" + conn(room_data_.lower_room) +
|
||||
" l:" + conn(room_data_.left_room) + " r:" + conn(room_data_.right_room) +
|
||||
" itm:" + std::to_string(room_data_.item_color1) + "/" + std::to_string(room_data_.item_color2);
|
||||
@@ -1003,7 +1001,7 @@ auto MapEditor::getSetCompletions() const -> std::vector<std::string> {
|
||||
return {"TILE", "COUNTER"};
|
||||
}
|
||||
// Room
|
||||
return {"BGCOLOR", "BORDER", "ITEMCOLOR1", "ITEMCOLOR2", "CONVEYOR", "TILESET", "UP", "DOWN", "LEFT", "RIGHT"};
|
||||
return {"BGCOLOR", "ITEMCOLOR1", "ITEMCOLOR2", "CONVEYOR", "TILESET", "UP", "DOWN", "LEFT", "RIGHT"};
|
||||
}
|
||||
|
||||
// Modifica una propiedad del enemigo seleccionado
|
||||
@@ -1200,14 +1198,6 @@ auto MapEditor::setRoomProperty(const std::string& property, const std::string&
|
||||
return "bgcolor: " + std::to_string(color);
|
||||
}
|
||||
|
||||
if (property == "BORDER") {
|
||||
auto color = static_cast<Uint8>(safeStoi(val, 0));
|
||||
room_data_.border_color = color;
|
||||
Screen::get()->setBorderColor(color);
|
||||
autosave();
|
||||
return "border: " + std::to_string(color);
|
||||
}
|
||||
|
||||
if (property == "ITEMCOLOR1") {
|
||||
auto color = static_cast<Uint8>(safeStoi(val, 0));
|
||||
room_data_.item_color1 = color;
|
||||
@@ -1330,7 +1320,7 @@ auto MapEditor::setRoomProperty(const std::string& property, const std::string&
|
||||
return toLower(property) + ": " + connection;
|
||||
}
|
||||
|
||||
return "Unknown property: " + property + " (use: bgcolor, border, itemcolor1, itemcolor2, conveyor, tileset, up, down, left, right)";
|
||||
return "Unknown property: " + property + " (use: bgcolor, itemcolor1, itemcolor2, conveyor, tileset, up, down, left, right)";
|
||||
}
|
||||
|
||||
// Crea una nueva habitación
|
||||
@@ -1383,7 +1373,6 @@ auto MapEditor::createNewRoom(const std::string& direction) -> std::string { //
|
||||
Room::Data new_room;
|
||||
new_room.number = std::string(name_buf).substr(0, std::string(name_buf).find('.'));
|
||||
new_room.bg_color = 0;
|
||||
new_room.border_color = 6;
|
||||
new_room.tile_set_file = "standard.gif";
|
||||
new_room.item_color1 = 11;
|
||||
new_room.item_color2 = 12;
|
||||
|
||||
@@ -44,7 +44,6 @@ auto RoomSaver::buildYAML(const fkyaml::node& original_yaml, const Room::Data& r
|
||||
out << "room:\n";
|
||||
|
||||
out << " bgColor: " << static_cast<int>(room_data.bg_color) << "\n";
|
||||
out << " border: " << static_cast<int>(room_data.border_color) << "\n";
|
||||
out << " tileSetFile: " << room_data.tile_set_file << "\n";
|
||||
|
||||
// Conexiones
|
||||
|
||||
Reference in New Issue
Block a user