Module gm-numerical

Helper to expose a tweakable numerical value in the GM menu.

Functions

makeNumericalOperations(name, getValue, textValue, setValue[, opPrefix=name]) Make a menu entry list containing operations on the given value.


Functions

makeNumericalOperations(name, getValue, textValue, setValue[, opPrefix=name])
Make a menu entry list containing operations on the given value.

Parameters:

  • name string The name of the value
  • getValue A function() returning the current value as a number.
  • textValue A function() returning the current value as a string formatted for display, or nil to use getValue.
  • setValue A function(value) to set the value.
  • opPrefix The prefix to place before the name of operations to be performed on the value. (default name)

Returns:

    A menu entry list suitable for action-gm.
generated by LDoc 1.5.0