Module helper

Text node or icon node can be nil

Functions

centrate_text_with_icon([text_node][, icon_node], margin) Center two nodes.
centrate_icon_with_text([icon_node[, text_node[, margin=0]]]) Center two nodes.


Functions

centrate_text_with_icon([text_node][, icon_node], margin)
Center two nodes. Nodes will be center around 0 x position text_node will be first (at left side)

Parameters:

  • text_node text Gui text node (optional)
  • icon_node box Gui box node (optional)
  • margin number Offset between nodes
centrate_icon_with_text([icon_node[, text_node[, margin=0]]])
Center two nodes. Nodes will be center around 0 x position icon_node will be first (at left side)

Parameters:

  • icon_node box Gui box node (optional)
  • text_node text Gui text node (optional)
  • margin number Offset between nodes (default 0)
generated by LDoc 1.4.6 Last updated 2020-02-07 01:09:38