subventions_gui¶
Source: base/tealdef/game_mechanics/subventions/subventions_gui.d.tl
Notes
Window content for a single subsidy.
SubventionsGui¶
record global base/tealdef/game_mechanics/subventions/subventions_gui.d.tl:3
global record SubventionsGui
Load: local subventions_gui = ug_require "/game_mechanics/subventions/subventions_gui.tl"
Notes
Builder of the subsidy window.
Functions
makeSubventionWindowContent(tagPrefix : string, nonEntity : string, gameCtx : GameContext, isMapEditor : boolean, isSandboxMode : boolean, setActionFnAndProxy : {function(actionFn? : (function() : TreeNodeId), key2? : string), any}, closeFnAndProxy : {function(), any}, extraParam : any) : ViewManager.MakeEntityWindowResult base/tealdef/game_mechanics/subventions/subventions_gui.d.tl:4
Call as subventions_gui.makeSubventionWindowContent
Notes
Builds the window content for one subsidy. The non-entity window calls it for keys that start with subsidy_.
| Parameter | Type | Description |
|---|---|---|
tagPrefix |
string |
Prefix of the GUI tag; the content gets tagPrefix .. "subsidy". |
nonEntity |
string |
Key of the non-entity window. |
gameCtx |
GameContext |
Game context. |
isMapEditor |
boolean |
True in the map editor. |
isSandboxMode |
boolean |
True in sandbox mode. |
setActionFnAndProxy |
{function(actionFn? : (function() : TreeNodeId), key2? : string), any} |
Function that sets the window's action button, and its compare proxy. |
closeFnAndProxy |
{function(), any} |
Function that closes the window, and its compare proxy. |
extraParam |
any |
The ISubvention to show. |
Returns ViewManager.MakeEntityWindowResult: Recipe, its parameters and the subsidy title as fallback window title.