summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2402286)
raw | patch | inline | side by side (parent: 2402286)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 4 Aug 2017 09:50:20 +0000 (12:50 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 4 Aug 2017 10:12:33 +0000 (13:12 +0300) |
src/game/g_language.pas | patch | blob | history | |
src/game/g_menu.pas | patch | blob | history |
index 19d86398fe5ce251669de2db5fc6f36364465b81..61b46a3de377bd4babb4ae8329b386b428b5247c 100644 (file)
--- a/src/game/g_language.pas
+++ b/src/game/g_language.pas
'Ïåðâûé èãðîê'),
('MENU PLAYER 2', 'Player 2',
'Âòîðîé èãðîê'),
- ('MENU PLAYER 1 KBD', 'Player 1 keyboard',
+ ('MENU PLAYER 1 KBD', 'Player 1 Keys',
'Ïåðâûé èãðîê, êëàâèàòóðà'),
- ('MENU PLAYER 2 KBD', 'Player 2 keyboard',
+ ('MENU PLAYER 2 KBD', 'Player 2 Keys',
'Âòîðîé èãðîê, êëàâèàòóðà'),
('MENU PLAYER 1 ALT', 'Player 1 GAMEPAD',
'Ïåðâûé èãðîê, GAMEPAD'),
diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas
index 309764e3b36568716a31a96b76f855c82b8f8849..89b1a55acfd384e0fcf6e533c072090633e4ea01 100644 (file)
--- a/src/game/g_menu.pas
+++ b/src/game/g_menu.pas
with menu, gGameControls.P1Control do
begin
for i := 0 to 9 do
- KeyWeapon[i] := TGUIKeyRead(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key;
+ begin
+ KeyWeapon[i] := TGUIKeyRead2(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key0;
+ KeyWeapon2[i] := TGUIKeyRead2(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key1;
+ end;
end;
menu := TGUIMenu(g_GUI_GetWindow('OptionsControlsP2Menu').GetControl('mOptionsControlsP2Menu'));
with menu, gGameControls.P2Control do
begin
for i := 0 to 9 do
- KeyWeapon[i] := TGUIKeyRead(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key;
+ begin
+ KeyWeapon[i] := TGUIKeyRead2(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key0;
+ KeyWeapon2[i] := TGUIKeyRead2(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key1;
+ end;
end;
if e_JoysticksAvailable > 0 then
TGUIKeyRead2(GetControl(_lc[I_MENU_CONTROL_STRAFE])).Key1 := KeyStrafe2;
end;
+ menu := TGUIMenu(g_GUI_GetWindow('OptionsControlsP1MenuWeapons').GetControl('mOptionsControlsP1MenuWeapons'));
+ with menu, gGameControls.P1Control do
+ begin
+ for i := 0 to 9 do
+ begin
+ TGUIKeyRead2(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key0 := KeyWeapon[i];
+ TGUIKeyRead2(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key1 := KeyWeapon2[i];
+ end;
+ end;
+
menu := TGUIMenu(g_GUI_GetWindow('OptionsControlsP2Menu').GetControl('mOptionsControlsP2Menu'));
with menu, gGameControls.P2Control do
begin
TGUIKeyRead2(GetControl(_lc[I_MENU_CONTROL_STRAFE])).Key1 := KeyStrafe2;
end;
+ menu := TGUIMenu(g_GUI_GetWindow('OptionsControlsP2MenuWeapons').GetControl('mOptionsControlsP2MenuWeapons'));
+ with menu, gGameControls.P2Control do
+ begin
+ for i := 0 to 9 do
+ begin
+ TGUIKeyRead2(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key0 := KeyWeapon[i];
+ TGUIKeyRead2(GetControl(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)])).Key1 := KeyWeapon2[i];
+ end;
+ end;
+
if e_JoysticksAvailable > 0 then
begin
menu := TGUIMenu(g_GUI_GetWindow('OptionsControlsJoystickMenu').GetControl('mOptionsControlsJoystickMenu'));
begin
Name := 'mOptionsControlsP1MenuWeapons';
for i := 0 to 9 do
- AddKeyRead(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)]).Name :=
+ AddKeyRead2(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)]).Name :=
_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)];
end;
Menu.DefControl := 'mOptionsControlsP1MenuWeapons';
begin
Name := 'mOptionsControlsP2MenuWeapons';
for i := 0 to 9 do
- AddKeyRead(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)]).Name :=
+ AddKeyRead2(_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)]).Name :=
_lc[TStrings_Locale(Cardinal(I_GAME_WEAPON0) + i)];
end;
Menu.DefControl := 'mOptionsControlsP2MenuWeapons';