Skip to content

Commit

Permalink
Extrae constante
Browse files Browse the repository at this point in the history
  • Loading branch information
autosquash committed Oct 17, 2023
1 parent 2ace52f commit 6531092
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/vista/botones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ namespace colores {
} // namespace botones_despachar
} // namespace colores

namespace medidas {
const auto POSICION_BOTON_EMPEZAR = sf::Vector2f(500, 450);
}

///////////////////////////////////////////
// BotonesGenerales
//////////////////////////////////////////
Expand Down Expand Up @@ -171,7 +175,9 @@ namespace {
}

BotonConTexto _crear_boton_empezar(const sf::Font &font) {
return BotonConTexto(boton_data_empezar, sf::Vector2f(500, 450), font);
return BotonConTexto(
boton_data_empezar, medidas::POSICION_BOTON_EMPEZAR, font
);
}
} // namespace

Expand Down

0 comments on commit 6531092

Please sign in to comment.