Backported HEROWIN, DIALOGVIEW, COUNTERWIN game mode flags from 4.x

Updated UI hotkeys example mod.
This commit is contained in:
NovaRain
2019-09-13 08:09:07 +08:00
parent 9693c0d439
commit a6a8e2e42f
8 changed files with 92 additions and 20 deletions
Binary file not shown.
@@ -32,6 +32,7 @@ procedure start begin
if (event) then begin
mode := get_game_mode;
if (mode bwand COUNTERWIN) then return; // new mode from sfall 4.2/3.8.20
if (keyDX == DIK_I and (mode bwand INVENTORY)) then begin
tap_key(DIK_ESCAPE);
end else if (keyDX == DIK_S and (mode bwand SKILLDEX)) then begin
@@ -43,7 +44,7 @@ procedure start begin
tap_key(DIK_CAPITAL);
tap_key(DIK_A);
tap_key(DIK_CAPITAL);
end else if (mode bwand BARTER) then begin
end else if (mode == (BARTER + DIALOG)) then begin
tap_key(DIK_M);
end
end