Support for hexa text input (internal)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1522 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -279,7 +279,7 @@ void Button_Grid_menu(void)
|
||||
{
|
||||
case 3 :
|
||||
Num2str(chosen_X,str,2);
|
||||
Readline(39,26,str,2,1);
|
||||
Readline(39,26,str,2,INPUT_TYPE_INTEGER);
|
||||
chosen_X=atoi(str);
|
||||
// On corrige les dimensions
|
||||
if ((!chosen_X) || (chosen_X>80))
|
||||
@@ -301,7 +301,7 @@ void Button_Grid_menu(void)
|
||||
break;
|
||||
case 4 :
|
||||
Num2str(chosen_Y,str,2);
|
||||
Readline(39,47,str,2,1);
|
||||
Readline(39,47,str,2,INPUT_TYPE_INTEGER);
|
||||
chosen_Y=atoi(str);
|
||||
// On corrige les dimensions
|
||||
if ((!chosen_Y) || (chosen_Y>80))
|
||||
@@ -323,7 +323,7 @@ void Button_Grid_menu(void)
|
||||
break;
|
||||
case 5 :
|
||||
Num2str(dx_selected,str,2);
|
||||
Readline(97,26,str,2,1);
|
||||
Readline(97,26,str,2,INPUT_TYPE_INTEGER);
|
||||
dx_selected=atoi(str);
|
||||
// On corrige les dimensions
|
||||
if (dx_selected>79)
|
||||
@@ -338,7 +338,7 @@ void Button_Grid_menu(void)
|
||||
break;
|
||||
case 6 :
|
||||
Num2str(dy_selected,str,2);
|
||||
Readline(97,47,str,2,1);
|
||||
Readline(97,47,str,2,INPUT_TYPE_INTEGER);
|
||||
dy_selected=atoi(str);
|
||||
// On corrige les dimensions
|
||||
if (dy_selected>79)
|
||||
@@ -479,7 +479,7 @@ void Button_Smooth_menu(void)
|
||||
Num2str(chosen_matrix[x][y],str,2);
|
||||
Readline(matrix_input[x][y]->Pos_X+2,
|
||||
matrix_input[x][y]->Pos_Y+2,
|
||||
str,2,1);
|
||||
str,2,INPUT_TYPE_INTEGER);
|
||||
chosen_matrix[x][y]=atoi(str);
|
||||
Display_cursor();
|
||||
}
|
||||
@@ -639,7 +639,7 @@ void Button_Colorize_menu(void)
|
||||
{
|
||||
case 1: // Zone de saisie de l'opacité
|
||||
Num2str(chosen_opacity,str,3);
|
||||
Readline(89,23,str,3,1);
|
||||
Readline(89,23,str,3,INPUT_TYPE_INTEGER);
|
||||
chosen_opacity=atoi(str);
|
||||
// On corrige le pourcentage
|
||||
if (chosen_opacity>100)
|
||||
@@ -732,7 +732,7 @@ void Button_Tiling_menu(void)
|
||||
if (clicked_button==3) // Zone de saisie du décalage X
|
||||
{
|
||||
Num2str(chosen_offset_x,str,4);
|
||||
Readline(93,23,str,4,1);
|
||||
Readline(93,23,str,4,INPUT_TYPE_INTEGER);
|
||||
chosen_offset_x=atoi(str);
|
||||
// On corrige le décalage en X
|
||||
if (chosen_offset_x>=Brush_width)
|
||||
@@ -747,7 +747,7 @@ void Button_Tiling_menu(void)
|
||||
if (clicked_button==4) // Zone de saisie du décalage Y
|
||||
{
|
||||
Num2str(chosen_offset_y,str,4);
|
||||
Readline(93,37,str,4,1);
|
||||
Readline(93,37,str,4,INPUT_TYPE_INTEGER);
|
||||
chosen_offset_y=atoi(str);
|
||||
// On corrige le décalage en Y
|
||||
if (chosen_offset_y>=Brush_height)
|
||||
|
||||
Reference in New Issue
Block a user