File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ -- Ideally this file would not be needed, here we put any methods/consts that
2+ -- need to be manually overloaded outside of base classes/types.
13--- @meta _
24
35--- @class df
46df = {}
57
8+ -- Core methods
9+
610--- @param message string
711function dfhack .print (message ) end
812
@@ -13,3 +17,22 @@ function dfhack.printerr(message) end
1317--- @param level ? integer
1418--- @param verbose ? boolean
1519function dfhack .error (message , level , verbose ) end
20+
21+ -- Pen methods
22+
23+ -- Creates a new `dfhack.pen` object.
24+ --- @param base dfhack.pen | dfhack.color
25+ --- @param pen_or_fg ? dfhack.pen | dfhack.color
26+ --- @param bg ? dfhack.color
27+ --- @param bold ? boolean
28+ --- @return dfhack.pen
29+ function dfhack .pen .make (base , pen_or_fg , bg , bold ) end
30+
31+ -- Returns `base` or `pen_or_fg` directly if they are already a valid
32+ -- `dfhack.pen` object.
33+ --- @param base dfhack.pen | dfhack.color
34+ --- @param pen_or_fg ? dfhack.pen | dfhack.color
35+ --- @param bg ? dfhack.color
36+ --- @param bold ? boolean
37+ --- @return dfhack.pen
38+ function dfhack .pen .parse (base , pen_or_fg , bg , bold ) end
You can’t perform that action at this time.
0 commit comments