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
+3
View File
@@ -17,6 +17,9 @@
#define INTFACEUSE (0x8000)
#define INTFACELOOT (0x10000)
#define BARTER (0x20000)
#define HEROWIN (0x40000)
#define DIALOGVIEW (0x80000)
#define COUNTERWIN (0x100000) // counter window for moving multiple items or setting a timer
//Valid arguments to register_hook
#define HOOK_TOHIT (0)