## Warps-List gui

Gui Module - Warp List - Adds a warp list gui which allows players to add and remove warp points

### Dependencies

expcore.gui
expcore.datastore
utils.global
utils.event
expcore.roles
utils.color_presets
config.gui.warps
modules.control.warps
expcore.common

### Elements

add_new_warp | Will add a new warp to the list, checks if the player is too close to an existing one
warp_icon_button | Warp icon button, this will trigger a warp when the player is able to
warp_icon_editing | The button that is visible when the warp is in edit state
warp_label | Warp label, visible if the player is not in edit state
warp_status | Warp status, visible if the player is not in edit state This will show if the warp is connected or not
warp_textfield | Warp textfield, visible if the player is in edit state
confirm_edit_button | Confirms the edit to name or icon of the warp
cancel_edit_button | Cancels the editing changes of the selected warp name or icon
remove_warp_button | Removes a warp from the list, including the physical area and map tag
edit_warp_button | Opens edit mode for the warp
add_warp_elements | Set of three elements which make up each row of the warp table
warp_timer | This timer controls when a player is able to warp, eg every 60 seconds
warp_list_container | Main warp list container for the left flow
toggle_warp_list | Button on the top flow used to toggle the warp list container

### Functions

update_all_warp_elements(player, timer, warp_id) | Update the warp buttons for a player

### Dependencies

# expcore.gui
# expcore.datastore
# utils.global
# utils.event
# expcore.roles
# utils.color_presets
# config.gui.warps
# modules.control.warps
# expcore.common

### Elements

# add_new_warp

  Will add a new warp to the list, checks if the player is too close to an existing one

# warp_icon_button

  Warp icon button, this will trigger a warp when the player is able to

# warp_icon_editing

  The button that is visible when the warp is in edit state

# warp_label

  Warp label, visible if the player is not in edit state

# warp_status

  Warp status, visible if the player is not in edit state This will show if the warp is connected or not

# warp_textfield

  Warp textfield, visible if the player is in edit state

# confirm_edit_button

  Confirms the edit to name or icon of the warp

# cancel_edit_button

  Cancels the editing changes of the selected warp name or icon

# remove_warp_button

  Removes a warp from the list, including the physical area and map tag

# edit_warp_button

  Opens edit mode for the warp

# add_warp_elements

  Set of three elements which make up each row of the warp table

# warp_timer

  This timer controls when a player is able to warp, eg every 60 seconds

# warp_list_container

  Main warp list container for the left flow

# toggle_warp_list

  Button on the top flow used to toggle the warp list container

### Functions

# update_all_warp_elements(player, timer, warp_id)

  Update the warp buttons for a player

  Parameters:
  - player
  - timer
  - warp_id : Get the warp table