The money panel (fl_currencies): lists how much of every currency an entity holds, with
buttons to give or drop the money of the local player, or to take money from another entity
such as a container. It is created with Currencies:create_panel.
Summary
Methods
Init()client
Sets the default title of the panel.
Paint(w, h)client
Draws the card of the panel.
PaintOver(w, h)client
Draws the translated title in a tag above the panel.
rebuild()client
Recreates a line for every visible currency, with give and drop buttons for the local player's own money or a take button for the money of another entity.
set_entity(entity)client
Sets the entity whose money the panel shows.
SizeToContents()client
Resizes the panel to fit the currency lines created by the last rebuild.
Methods
Sets the default title of the panel.
Draws the card of the panel.
Parameters
- w Number
- h Number
Draws the translated title in a tag above the panel.
Parameters
- w Number
- h Number
Recreates a line for every visible currency, with give and drop buttons for the local player's own money or a take button for the money of another entity.
Sets the entity whose money the panel shows. Call rebuild afterward to update it.
Parameters
- entity Entity
Resizes the panel to fit the currency lines created by the last rebuild.