changed savegame

This commit is contained in:
Ondřej Novák 2025-02-09 20:14:12 +01:00
parent ea1ef2cb84
commit e1967ded4f
14 changed files with 370 additions and 119 deletions

View file

@ -1547,6 +1547,27 @@ THAGGLERESULT smlouvat_dlg(int cena,int puvod,int pocet,int posledni, int money,
return res;
}
char ask_save_dialog(char *name_buffer, size_t name_size) {
const char *str_label = texty[98];
if (str_label == 0) str_label ="Ulo\x91it hru jako";
set_font(H_FBOLD,RGB555(31,31,31));
add_window(170,130,300,100,H_WINTXTR,3,20,20);
define(-1,10,15,1,1,0,label,str_label);
define(10,10,30,270,13,0,input_line,name_size-1);property(def_border(5,BAR_COLOR),NULL,NULL,0);set_default(name_buffer);
define(20,20,20,60,20,2,button,texty[239]);property(def_border(5,BAR_COLOR),NULL,NULL,BAR_COLOR);on_control_change(terminate_gui);
define(30,90,20,60,20,2,button,texty[80]);property(def_border(5,BAR_COLOR),NULL,NULL,BAR_COLOR);on_control_change(terminate_gui);
redraw_window();
goto_control(10);
escape();
get_value(0,10,name_buffer);
char ret = o_aktual->id==30;
close_current();
return ret;
}
#if 0
//----------------- JRC LOGO ----------------------------------