Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

[MIRROR] Tgui input list #509

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

[MIRROR] Tgui input list #509

wants to merge 2 commits into from

Conversation

AeonSS13
Copy link

Original PR: tgstation/tgstation#56065

About The Pull Request

Ported over from https://gitlab.com/cmdevs/colonial-warfare/-/merge_requests/613 which provides an input box to select an option from a list.
Has a search bar to allow filtering for results and an onKeyDown event to replicate default behaviour from the default list input boxes that BYOND provides (where you are able to type the first letter of an element in the list and it'll jump to the first element that matches and then the next and so on)
Right now, it is only applied to the holopad and "Drop Bomb" verb for administrators.

Credits to bobbahbrown for the Loader element from AlertModal.js which allows for a timed input (was needed on the CM codebase for timed inputs) and for the majority of the DM code.

Why It's Good For The Game

Updated input from the regular default byond one which looks like this:
image
to this:
image

More images:
image
image
image

Changelog

馃啈
add: Added new input list TGUI UI for whenever the need to select something from a list is needed. These have been applied to the Drop Bomb verb for admins and the holopad communicator.
/:cl:

Watermelon914 and others added 2 commits January 10, 2021 18:16
Ported over from https://gitlab.com/cmdevs/colonial-warfare/-/merge_requests/613 which provides an input box to select an option from a list.
Has a search bar to allow filtering for results and an onKeyDown event to replicate default behaviour from the default list input boxes that BYOND provides (where you are able to type the first letter of an element in the list and it'll jump to the first element that matches and then the next and so on)
Right now, it is only applied to the holopad and "Drop Bomb" verb for administrators.

Credits to bobbahbrown for the Loader element from AlertModal.js which allows for a timed input (was needed on the CM codebase for timed inputs) and for the majority of the DM code.

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
Conflicts:
	tgui/public/tgui-common.chunk.js
	tgui/public/tgui-panel.bundle.js
	tgui/public/tgui.bundle.css
	tgui/public/tgui.bundle.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants