Added a new attrType value to get_window_attribute

Added PAUSEWIN (Ctrl+P) to LoadGameHook game modes.
Fixed crash in interface_art_draw (when drawing beyond window bounds).
Fixed assert fail when calling sfall_func7+
Edits to documents.
This commit is contained in:
NovaRain
2024-06-02 09:12:56 +08:00
parent 181560265f
commit e2ad532607
6 changed files with 27 additions and 4 deletions
+2
View File
@@ -23,6 +23,7 @@
#define HEROWIN (0x40000)
#define DIALOGVIEW (0x80000)
#define COUNTERWIN (0x100000) // counter window for moving multiple items or setting a timer
#define PAUSEWIN (0x200000) // Ctrl+P pause window
#define SPECIAL (0x80000000)
// Valid arguments to register_hook_proc
@@ -320,6 +321,7 @@
#define get_interface_y(winType) sfall_func2("get_window_attribute", winType, 2)
#define get_interface_width(winType) sfall_func2("get_window_attribute", winType, 3)
#define get_interface_height(winType) sfall_func2("get_window_attribute", winType, 4)
#define get_interface_id(winType) sfall_func2("get_window_attribute", winType, 5)
#define get_inven_ap_cost sfall_func0("get_inven_ap_cost")
#define get_map_enter_position sfall_func0("get_map_enter_position")
#define get_metarule_table sfall_func0("get_metarule_table")