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
discard_warp Removes a warp from the list, including the physical area and map tag
edit_warp Opens edit mode for the warp
add_warp_base Set of three elements which make up each row of the warp table
confirm_edit Confirms the edit to name or icon of the warp
cancel_edit Cancels the editing changes of the selected warp name or icon
warp_editing Editing state for a warp, contains a text field and the two edit buttons
warp_label Default state for a warp, contains only a label with the warp name
warp_icon_button Default state for the warp icon, when pressed teleports the player
warp_icon_editing Editing state for the warp icon, chose elem used to chosse icon
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
warp_list_toggle Button on the top flow used to toggle the warp list container

Functions

update_wrap_buttons(player, timer, in_range) 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

# discard_warp

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

# edit_warp

Opens edit mode for the warp

# add_warp_base

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

# confirm_edit

Confirms the edit to name or icon of the warp

# cancel_edit

Cancels the editing changes of the selected warp name or icon

# warp_editing

Editing state for a warp, contains a text field and the two edit buttons

# warp_label

Default state for a warp, contains only a label with the warp name

# warp_icon_button

Default state for the warp icon, when pressed teleports the player

# warp_icon_editing

Editing state for the warp icon, chose elem used to chosse icon

# 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

# warp_list_toggle

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

Functions

# update_wrap_buttons(player, timer, in_range)

Update the warp buttons for a player

Parameters:
  • player
  • timer
  • in_range : Get the warp table