From: Ketmar Dark Date: Sun, 17 Apr 2016 05:42:17 +0000 (+0300) Subject: "yes/no" menu answers are localized now X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=4b8454ce2c4481d8778f30ec289d824366df78c6;p=d2df-sdl.git "yes/no" menu answers are localized now --- diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index 23e9629..46d6dad 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -73,8 +73,8 @@ begin Name := '__temp_yes_no_menu:'+WinName; YesNo := true; AddText(Text, MaxLen); - with AddButton(nil, 'Yes') do begin ProcEx := @YesButtonCB; UserData := @ActionProc; end; - with AddButton(nil, 'No') do begin ProcEx := @NoButtonCB; UserData := @ActionProc; end; + with AddButton(nil, _lc[I_MENU_YES]) do begin ProcEx := @YesButtonCB; UserData := @ActionProc; end; + with AddButton(nil, _lc[I_MENU_NO]) do begin ProcEx := @NoButtonCB; UserData := @ActionProc; end; end; DefControl := '__temp_yes_no_menu:'+WinName; SetActive(nil);