Arreglo visual al menú de Configurar todo
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
		
							
								
								
									
										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++) { | ||||
|     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); | ||||
|     wgetnstr(centralBOX, input, 10); | ||||
|     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)){ | ||||
|         entrada.push_back(input); | ||||
|       } 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)); | ||||
|         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)); | ||||
|         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]$"))){ | ||||
|         entrada.push_back(input); | ||||
|       } 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)); | ||||
|         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)); | ||||
|         i--; | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user