data.modules.util
Methods6
function Util.extend(proto_array) -> nil
function Util.disable_control(control) -> nil
function Util.extend_style(style) -> nil
function Util.extend_style_by_name(name, style) -> nil
function Util.duplicate(data_type: string, orig_name: string, new_name: string, mining_result: nil | string | boolean[opt]) -> any
Quickly duplicate an existing prototype into a new one.
Parameters
data_typestringThe type of the object to duplicate
orig_namestringThe name of the object to duplicate
new_namestringThe new name to use.
mining_resultnil | string | boolean[opt]If true set miningresult to newname, if truthy set mining_result to value
Returns
- any
function Util.create_data_globals(files: nil | table) -> nil
load the data portion of stdlib into globals, by default it loads everything into an ALLCAPS name. Alternatively you can pass a dictionary of [global names] -> [require path].
Parameters
filesnil | table[opt] @usage require('kry_stdlib/stdlib/data/data).util.createdataglobals()
Returns
- nil
Fields2
Util.__class: string = "Util"
Util.__index : unknown