editar propietats del enemic
This commit is contained in:
@@ -44,6 +44,11 @@ void EditorStatusBar::setSelectionInfo(const std::string& info) {
|
||||
selection_info_ = info;
|
||||
}
|
||||
|
||||
// Establece el detalle adicional
|
||||
void EditorStatusBar::setSelectionDetail(const std::string& detail) {
|
||||
selection_detail_ = detail;
|
||||
}
|
||||
|
||||
// Dibuja los elementos en la surface
|
||||
void EditorStatusBar::fillTexture() {
|
||||
auto previous_renderer = Screen::get()->getRendererSurface();
|
||||
@@ -65,13 +70,18 @@ void EditorStatusBar::fillTexture() {
|
||||
text->writeColored(LEFT_X, LINE2_Y, toLower("tile:"), LABEL_COLOR);
|
||||
text->writeColored(LEFT_X + 30, LINE2_Y, TILE_X_STR + "," + TILE_Y_STR, VALUE_COLOR);
|
||||
|
||||
// Info de selección o indicador de modo editor
|
||||
// Línea 2 (continuación): info de selección o indicador de modo editor
|
||||
if (!selection_info_.empty()) {
|
||||
text->writeColored(LEFT_X + 80, LINE2_Y, toLower(selection_info_), stringToColor("bright_yellow"));
|
||||
text->writeColored(LEFT_X + 60, LINE2_Y, toLower(selection_info_), stringToColor("bright_yellow"));
|
||||
} else {
|
||||
text->writeColored(176, LINE2_Y, toLower("editor"), stringToColor("bright_green"));
|
||||
}
|
||||
|
||||
// Línea 3: detalle de la selección (propiedades del enemigo)
|
||||
if (!selection_detail_.empty()) {
|
||||
text->writeColored(LEFT_X, LINE3_Y, toLower(selection_detail_), stringToColor("bright_white"));
|
||||
}
|
||||
|
||||
Screen::get()->setRendererSurface(previous_renderer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user