xwidghet / stepmania

Advanced rhythm game for Windows, Linux and OS X. Designed for both home and arcade use.
http://www.stepmania.com/
19 stars 10 forks source link

Scroll bar and mouse click move/select for wheelitems #48

Closed nico-abram closed 7 years ago

nico-abram commented 7 years ago

It's done through lua, I added a couple c++ functions that "select/start/pick the currently selected wheelitem". They're not wheel functions, they're the screen's. So i had to add one for the NetRoom screen, the NetSelectMusic and the SelectMusic screens. I added a mouse click input that checks if it's on the wheel item(because of the way Til Death's wheel is i can know this using just the X coordinate) and then checks if it's in the middle one or how far from it. If it's the middle one it calls the above mentioned c++ function and otherwise moves the wheel the appropiate quantity in the correct direction.

I also made a chatbox scrollbar that tells you how big the chat actually is and where you are.