44--- @class gui_module
55--- @field addCombatReport function
66--- @field addCombatReportAuto function
7- --- @field makeAnnouncement function
8- --- @field showAnnouncement function
9- --- @field showZoomAnnouncement function
10- --- @field showPopupAnnouncement function
11- --- @field showAutoAnnouncement function
12- --- @field autoDFAnnouncement function
13- --- @field getDwarfmodeViewDims function
14- --- @field pauseRecenter function
15- --- @field revealInDwarfmodeMap function
16- --- @field getMousePos function
17- --- @field getFocusStrings function
18- --- @field getCurFocus function
19- --- @field getWidget function
20- --- @field getWidgetChildren function
217dfhack .gui = {}
228
23- --- @param skipdismissed boolean | nil
9+ --- @param type df.announcement_type
10+ --- @param flags df.announcement_flags
11+ --- @param pos df.coord
12+ --- @param message string
13+ --- @param color integer
14+ --- @param bright boolean | nil
15+ --- @return integer
16+ function dfhack .gui .makeAnnouncement (type , flags , pos , message , color , bright ) end
17+
18+ --- @param message string
19+ --- @param color integer
20+ --- @param bright boolean | nil
21+ --- @return nil
22+ function dfhack .gui .showAnnouncement (message , color , bright ) end
23+
24+ --- @param type df.announcement_type
25+ --- @param pos df.coord
26+ --- @param message string
27+ --- @param color integer
28+ --- @param bright boolean | nil
29+ --- @return nil
30+ function dfhack .gui .showZoomAnnouncement (type , pos , message , color , bright ) end
31+
32+ --- @param message string
33+ --- @param color integer
34+ --- @param bright boolean | nil
35+ --- @return nil
36+ function dfhack .gui .showPopupAnnouncement (message , color , bright ) end
37+
38+ --- @param type df.announcement_type
39+ --- @param pos df.coord
40+ --- @param message string
41+ --- @param color integer
42+ --- @param bright boolean | nil
43+ --- @param unit_a df.unit
44+ --- @param unit_d df.unit
45+ --- @return nil
46+ function dfhack .gui .showAutoAnnouncement (type , pos , message , color , bright , unit_a , unit_d ) end
47+
48+ --- @param info df.announcement_infost
49+ --- @param message string
50+ --- @return boolean
51+ function dfhack .gui .autoDFAnnouncement (info , message ) end
52+
53+ --- @return df.Gui :: DwarfmodeDims
54+ function dfhack .gui .getDwarfmodeViewDims () end
55+
56+ --- @param x number
57+ --- @param y number
58+ --- @param z number
59+ --- @param pause boolean | nil
60+ --- @return boolean
61+ function dfhack .gui .pauseRecenter (x , y , z , pause ) end
62+
63+ --- @param x number
64+ --- @param y number
65+ --- @param z number
66+ --- @param center boolean | nil
67+ --- @param highlight boolean | nil
68+ --- @return boolean
69+ function dfhack .gui .revealInDwarfmodeMap (x , y , z , center , highlight ) end
70+
71+ --- @param allow_out_of_bounds boolean | nil
72+ --- @return df.coord
73+ function dfhack .gui .getMousePos (allow_out_of_bounds ) end
74+
75+ --- @param top df.viewscreen
76+ --- @return df.DFVector<std :: string>
77+ function dfhack .gui .getFocusStrings (top ) end
78+
79+ --- @param container df.widget_container
80+ --- @param name string
81+ --- @return df.widget
82+ function dfhack .gui .getWidget (container , name ) end
83+
84+ --- @param skip_dismissed boolean | nil
2485--- @return df.viewscreen
25- function dfhack .gui .getCurViewscreen (skipdismissed ) end
86+ function dfhack .gui .getCurViewscreen (skip_dismissed ) end
2687
27- --- @param skipdismissed boolean | nil
88+ --- @param skip_dismissed boolean | nil
2889--- @param screen df.viewscreen
2990--- @return df.viewscreen
30- function dfhack .gui .getDFViewscreen (skipdismissed , screen ) end
91+ function dfhack .gui .getDFViewscreen (skip_dismissed , screen ) end
3192
3293--- @param quiet boolean | nil
3394--- @return df.job
@@ -53,9 +114,10 @@ function dfhack.gui.getSelectedBuilding(quiet) end
53114--- @return df.building_civzonest
54115function dfhack .gui .getSelectedCivZone (quiet ) end
55116
117+ --- @param out df.color_ostream
56118--- @param quiet boolean | nil
57119--- @return df.building_stockpilest
58- function dfhack .gui .getSelectedStockpile (quiet ) end
120+ function dfhack .gui .getSelectedStockpile (out , quiet ) end
59121
60122--- @param quiet boolean | nil
61123--- @return df.plant
@@ -102,18 +164,18 @@ function dfhack.gui.writeToGamelog(message) end
102164function dfhack .gui .resetDwarfmodeView (pause ) end
103165
104166--- @return boolean
105- function dfhack .gui .refreshSidebar (... ) end
167+ function dfhack .gui .refreshSidebar () end
106168
107169--- @return boolean
108- function dfhack .gui .inRenameBuilding (... ) end
170+ function dfhack .gui .inRenameBuilding () end
109171
110172--- @param x number
111173--- @param y number
112174--- @return integer
113175function dfhack .gui .getDepthAt (x , y ) end
114176
115- --- @param focusstring string
177+ --- @param focus_string string
116178--- @param top df.viewscreen
117179--- @return boolean
118- function dfhack .gui .matchFocusString (focusstring , top ) end
180+ function dfhack .gui .matchFocusString (focus_string , top ) end
119181
0 commit comments