Module autohudhide

A system which automatically hides hud items if there are no changes.

Functions

activate () Activates the system, if it has not been deactivated in the configuration by settings autohudhide_activate to false.
activate_internal () Activates the system, without checking the configuration.
get_info (player) Gets the info for the given player.
remove_info (player) Removes the info for the given player.
run () Runs the update on all players.
run_on_player (player) Runs the update on the given player.
update_healthbar (player, info) Updates the status of the healthbar for the given player.
update_hotbar (player, info) Updates the status of the hotbar for the given player.

Tables

infos The infos of players used for determining when to hide elements.

Fields

activate_automatically If the system should be activated automatically.
active If the system is currently active/has been activated.
healthbar_autohide If the healthbar should be automatically hidde.
healthbar_delay The delay after which the healthbar is hidden.
hotbar_autohide If the hotbar should be automatically hidden.
hotbar_delay The delay after which the hotbar is hidden.
interval The interval in which the system is running.


Functions

activate ()
Activates the system, if it has not been deactivated in the configuration by settings autohudhide_activate to false.
activate_internal ()
Activates the system, without checking the configuration.
get_info (player)
Gets the info for the given player. If there is none, one will be created.

Parameters:

  • player The player for which to get the info.

Returns:

    The info object for the given player.
remove_info (player)
Removes the info for the given player.

Parameters:

  • player The player for whom to remove the info.
run ()
Runs the update on all players.
run_on_player (player)
Runs the update on the given player.

Parameters:

  • player The player on which to run.
update_healthbar (player, info)
Updates the status of the healthbar for the given player.

Parameters:

  • player The player which to update.
  • info The info for the player.
update_hotbar (player, info)
Updates the status of the hotbar for the given player.

Parameters:

  • player The player which to update.
  • info The info for the player.

Tables

infos
The infos of players used for determining when to hide elements.

Fields

activate_automatically
If the system should be activated automatically.
active
If the system is currently active/has been activated.
healthbar_autohide
If the healthbar should be automatically hidde.
healthbar_delay
The delay after which the healthbar is hidden.
hotbar_autohide
If the hotbar should be automatically hidden.
hotbar_delay
The delay after which the hotbar is hidden.
interval
The interval in which the system is running.
generated by LDoc 1.4.2