Thread Rating:
  • 6 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] Improve character customization menus in the Preferences screen
#1
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.

[Image: Uvn06Me.gif]

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
Reply
#2
looks very good, judging from the video. looks like i could scroll randomly through the hair options for dumb overlapping hair roulette. also, that image doesnt exist, the ezgif thing
Reply
#3
This is some good stuff!
Reply
#4
God, I wish we had more scroll wheel tech in play. Imagine being able to scroll through a right click menu on a pile of items, to toggle the the settings on a gun or tool, or to fast switch through the items in an open bag or toolbox
Reply
#5
oh my god PLEASE
Reply
#6
I would ratelimit topic requests (on the client side) if I were you.
Reply
#7
(01-12-2019, 08:39 AM)qwertyquerty Wrote: I would ratelimit topic requests  (on the client side) if I were you.

It does do that. The video I showed I just left that out for that cool effect of super fast swapping between hairs.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)