Backported "create_win" script function and InterfaceDontMoveOnTop option from the developt branch.

Updated version number.
This commit is contained in:
NovaRain
2018-10-02 12:15:48 +08:00
parent e672db53c7
commit d117296990
10 changed files with 59 additions and 5 deletions
+4 -1
View File
@@ -1,5 +1,5 @@
;sfall configuration settings
;v3.8.11
;v3.8.12
[Main]
;Change to 1 if you want to use command line args to tell sfall to use another ini file.
@@ -615,6 +615,9 @@ NumbersInDialogue=0
;Set to 1 to use Fallout's normal text font instead of DOS-like font on the world map
WorldMapFontPatch=0
;Set to 1 to prevent the inventory/loot/automap interfaces from being placed on top of other script-created windows
InterfaceDontMoveOnTop=0
;Set to 1 to display sfall built-in credits at the bottom of credits.txt contents instead of at the top
CreditsAtBottom=0
+2
View File
@@ -189,6 +189,8 @@
#define party_member_list_all party_member_list(1)
#define create_win(winName, x, y, w, h) sfall_func5("create_win", winName, x, y, w, h)
#define create_win_flag(winName, x, y, w, h, flag) sfall_func6("create_win", winName, x, y, w, h, flag)
#define critter_inven_obj2(obj, type) sfall_func2("critter_inven_obj2", obj, type)
#define exec_map_update_scripts sfall_func0("exec_map_update_scripts")
#define floor2(value) sfall_func1("floor2", value)
@@ -388,6 +388,11 @@ Some utility/math functions are available:
> int sfall_func1("get_current_inven_size", object)
- returns the current inventory size of the container or the critter
> void sfall_func5("create_win", string winName, int x, int y, int width, int height)
> void sfall_func6("create_win", string winName, int x, int y, int width, int height, int flags)
- works just like vanilla CreateWin function, but creates a window with MoveOnTop flag if flags argument is not specified, and allows to set additional flags for the created window
- MoveOnTop flag allows the created window to be placed on top of the game interface
------------------------
------ MORE INFO -------
------------------------