This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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](https://user-images.githubusercontent.com/37270891/104107530-bd647380-52b4-11eb-86c7-4bc37ce13ae8.png)
![image](https://user-images.githubusercontent.com/37270891/104107845-9eb3ac00-52b7-11eb-99fa-3463af5e7d8a.png)
to this:
More images:
![image](https://user-images.githubusercontent.com/37270891/104107855-b723c680-52b7-11eb-9dbf-1767d0475d50.png)
![image](https://user-images.githubusercontent.com/37270891/104107861-c276f200-52b7-11eb-88d5-d1e0d2bb1e12.png)
![image](https://user-images.githubusercontent.com/37270891/104107868-cd318700-52b7-11eb-80ac-ac211346f4a1.png)
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: