11-16-2018, 12:17 PM
(This post was last modified: 11-17-2018, 01:40 PM by kyle2143. Edited 2 times in total.
Edit Reason: fix gif location
)
Well, a month ago or something I tried to mess with the character creator and it was a nightmare. I thought it would be more user friendly to use html dropdowns instead of a popup; hopefully this should make it less painless.
Video Demo: https://streamable.com/iojvq
Technical Notes:
- Each time a table has a value changed, it sends off a Topic call to byond with the choice selected so that it can generate the sprite. I'm not sure if this could be a problem because by scrolling through a ton fast you'd be sending a lot of calls.
- I have the javascript sleep for .5 seconds before it updates the image file. This is to give the Topic call and Byond enough time to update the sprite and send it back to to the byond browser cache.
https://github.com/goonstation/goonstation-2016/pull/90
EDIT: Stole debounce function to fix the numerous topic calls issue like wire suggested. Commit below:
https://github.com/goonstation/goonstati...36bc7b654b
Video Demo: https://streamable.com/iojvq
Technical Notes:
- Each time a table has a value changed, it sends off a Topic call to byond with the choice selected so that it can generate the sprite. I'm not sure if this could be a problem because by scrolling through a ton fast you'd be sending a lot of calls.
- I have the javascript sleep for .5 seconds before it updates the image file. This is to give the Topic call and Byond enough time to update the sprite and send it back to to the byond browser cache.
https://github.com/goonstation/goonstation-2016/pull/90
EDIT: Stole debounce function to fix the numerous topic calls issue like wire suggested. Commit below:
https://github.com/goonstation/goonstati...36bc7b654b