Arreglo visual al menú de Configurar todo
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
parent
0d50d70ad1
commit
819f45f32a
10
src/ui.cpp
10
src/ui.cpp
@ -81,7 +81,7 @@ vector<string> ui::showCentralInputBox(vector<string> *textos, const int8_t *num
|
|||||||
|
|
||||||
for (int i = 0; i < elems->size(); i++) {
|
for (int i = 0; i < elems->size(); i++) {
|
||||||
cleaner = elems->at(i) + " ";
|
cleaner = elems->at(i) + " ";
|
||||||
mvwprintw(centralBOX, i + 1 + textos->size(), 1, elems->at(i).c_str());
|
mvwprintw(centralBOX, i * 2 + 1 + textos->size(), 1, elems->at(i).c_str());
|
||||||
wrefresh(centralBOX);
|
wrefresh(centralBOX);
|
||||||
wgetnstr(centralBOX, input, 10);
|
wgetnstr(centralBOX, input, 10);
|
||||||
if (elems->at(i) == txt::g_confHilosInput){
|
if (elems->at(i) == txt::g_confHilosInput){
|
||||||
@ -89,9 +89,9 @@ vector<string> ui::showCentralInputBox(vector<string> *textos, const int8_t *num
|
|||||||
if(regex_match(input, integer_expr)){
|
if(regex_match(input, integer_expr)){
|
||||||
entrada.push_back(input);
|
entrada.push_back(input);
|
||||||
} else {
|
} else {
|
||||||
mvwprintw(centralBOX, i + 1 + textos->size(), 1, cleaner.c_str());
|
mvwprintw(centralBOX, i * 2 + 1 + textos->size(), 1, cleaner.c_str());
|
||||||
wattron(centralBOX, COLOR_PAIR(*color_error));
|
wattron(centralBOX, COLOR_PAIR(*color_error));
|
||||||
mvwprintw(centralBOX, i + textos->size(), 1, txt::g_confHilosError.c_str());
|
mvwprintw(centralBOX, i * 2 + textos->size(), 1, txt::g_confHilosError.c_str());
|
||||||
wattroff(centralBOX, COLOR_PAIR(*color_error));
|
wattroff(centralBOX, COLOR_PAIR(*color_error));
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
@ -99,9 +99,9 @@ vector<string> ui::showCentralInputBox(vector<string> *textos, const int8_t *num
|
|||||||
if(regex_match(input,regex("^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$"))){
|
if(regex_match(input,regex("^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$"))){
|
||||||
entrada.push_back(input);
|
entrada.push_back(input);
|
||||||
} else {
|
} else {
|
||||||
mvwprintw(centralBOX, i + 1 + textos->size(), 1, cleaner.c_str());
|
mvwprintw(centralBOX, i * 2 + 1 + textos->size(), 1, cleaner.c_str());
|
||||||
wattron(centralBOX, COLOR_PAIR(*color_error));
|
wattron(centralBOX, COLOR_PAIR(*color_error));
|
||||||
mvwprintw(centralBOX, i + textos->size(), 1, txt::g_confTiempoError.c_str());
|
mvwprintw(centralBOX, i * 2 + textos->size(), 1, txt::g_confTiempoError.c_str());
|
||||||
wattroff(centralBOX, COLOR_PAIR(*color_error));
|
wattroff(centralBOX, COLOR_PAIR(*color_error));
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user