Commit Graph

30 Commits

Author SHA1 Message Date
Fabian Dill 9341332379
WebHost: allow newlines in data-tooltip (#921)
* WebHost: allow newlines in data-tooltip

* WebHost: Tooltips: strip surrounding whitespace

* WebHost: unify tooltips behaviour

* WebHost: unify labels around tooltips

* WebHost: changing tooltips width to max-width to allow small tooltips to not have empty space.

* Minor modifications to tooltips

- Reduce tooltip target to (?) spans
- Set fixed width of 260px on tooltips
- Add space between : and (?) on player-settings
- Removed cursor:pointer on tooltips
- Fix labels for checkboxes on generate.html

Co-authored-by: Chris Wilson <chris@legendserver.info>
2022-08-20 18:58:46 -04:00
Fabian Dill e7ea827f02
Options: introduce SpecialRange (#630)
* Options: introduce SpecialRange

* Include SpecialRange data in player-settings and weighted-settings JSON files

* Add support for SpecialRange to player-settings pages

* Add support for SpecialRange options to weighted-settings. Also fixed a bug which would cause the page to crash if an unknown setting was detected.

Co-authored-by: Chris Wilson <chris@legendserver.info>
2022-06-12 17:33:14 -04:00
Chris Wilson 535c35310d [WebHost] Fix a bug causing player-settings to fail to update the hash on JSON updates 2022-04-04 16:48:59 -07:00
Chris Wilson 8fbe6a4511 [WebHost] Only calculate settingHash once in player-settings 2022-04-04 16:48:59 -07:00
Chris Wilson 238e2d0280 [WebHost] player-settings: Cross-port the name validation from weighted-settings to help ensure people enter a name on their settings file 2022-01-19 00:54:14 -05:00
Chris Wilson e878d7d439 [WebHost] player-settings: Default invalid player names to "Player{player}" instead of "noname" 2022-01-19 00:38:17 -05:00
Fabian Dill fe7f109127 WebHost: fix CWE-79/CWE-116 2021-11-03 09:33:47 +01:00
Chris Wilson ef8af7d618 Move config files and player-settings js files to /generated/configs and /generated/player-settings and update the pages that use them 2021-10-11 21:37:08 -04:00
Chris Wilson 25b9fc8b6a Better wording for player-settings reset banner 2021-09-17 21:24:52 -04:00
Chris Wilson 090678776e Add version hashing to player-settings pages 2021-09-17 21:23:31 -04:00
Chris Wilson abc0220cfa Include the game name in the generated JSON files used to populate player-settings pages 2021-09-16 17:15:25 -04:00
Chris Wilson 4c0f0a16c9 Updates to WebHost
- Support displayname option for Options module
- Improvements to landing page
- Added multi-language capable FAQ page
- Removed weighted-settings page
- Removed references to weighted-settings page
2021-08-22 20:01:58 -04:00
Chris Wilson e1e25d0eae Add range options to player-settings pages 2021-07-25 19:04:08 -04:00
Chris Wilson f15bb9dbd7 Fix player-settings not defaulting the select options to their proper values. Also fix tab title. 2021-07-25 18:07:03 -04:00
Chris Wilson 610871c61b Template gameName into player-settings as a data attribute to avoid potential security risks. 2021-07-25 15:49:51 -04:00
Chris Wilson 153fa16bcf Redirect user to 404 page for non-existing player-settings pages 2021-07-24 23:20:46 -04:00
Chris Wilson 71642f494f Automatically generate and save player settings for every game 2021-07-24 23:09:34 -04:00
Chris Wilson da6c44a1cf Working on player-settings update 2020-12-03 18:27:32 -05:00
Chris Wilson ccdc8cefe4 Many small adjustments
- Adjust header width for scrollbar presence
- Added new header assets for grass and dirt
- Adjusted styles for hosted and tracker
- Expand header to implement templating system
- Much more I have forgotten
2020-12-03 01:55:48 -05:00
Chris Wilson bd3b419de0 Updates all styles save for the tooltip and tracker, which are forthcoming. I just really wanted to commit all these changes. 2020-11-30 21:15:47 -05:00
Chris Wilson c714131b37 Fix the player settings page generating yaml files with string keys containing integers 2020-10-18 00:51:50 -04:00
Chris Wilson 008f38400d Update Player Settings page to include new yaml options. Event sprite options are forthcoming. 2020-10-16 19:33:42 -04:00
Chris Wilson 26b75ca9df Add German tutorial by Fischfilet and fix [Object object] bug in Player Settings page 2020-09-25 23:57:16 -04:00
Chris Wilson 3acf764097 Fix a bug in player-settings causing new sprite entries to display the input at a zero, while the true value is 50. Also fix playerSettings.yaml to not default to disabling in-game music. 2020-09-05 19:10:48 -04:00
Chris Wilson 6632a59b64 Implement sprite options in Player Settings 2020-09-05 18:51:46 -04:00
Chris Wilson 0236097809 Add alternate font toggle to WebUI 2020-08-31 02:02:54 -04:00
Chris Wilson b5ee2edca5 Player Settings fully operational, but missing sprite options 2020-08-27 21:31:18 -04:00
Chris Wilson 3b159632b5 Add tooltips to Player Settings page. 2020-08-26 23:57:24 -04:00
Chris Wilson ad895f045c Nuked the schema file and create my own. Works much better. 2020-08-25 20:51:11 -04:00
Chris Wilson 4126d48d0d Change a couple filenames and move some files around. 2020-08-23 18:24:09 -04:00
Renamed from WebHostLib/static/assets/game-settings.js (Browse further)