Author Topic: More Capabilities Involving Scroll Wheel  (Read 551 times)

So far we have mouse scrollwheel compatibility for scrolling through weapon slots and zooming, but I think that it would be useful for other thinks like weapon settings.  For instance, there's the swiss army gun, which carries a variety of tools and weapons.  Everything is triggered by commands, a really inneficient method compared to the possibilities of scroll wheel.  For instance, if we were allowed to set these properties in script, we could use left click to go into the SAG mode changer, which would allow you to cycle through everything by scrolling.  Then, use right click to exit scroll mode.

Other useful applications could include adjusting a vehicle's height similar to height control, changing gears in vehicles, adjusting weapon fire rates, damage, muzzle velocity, explosion radius, explosion damage and more.

The best application I could see is through having events that have libraries from which you can choose an action.  The most similar parallel is a list of varlinks, except that it would display a menu, and you would scroll through options.

For instance, there would be events anywhere on the server that have specific targets, and an area to open this menu.  Suppose I define the menu options, "Heal", "Kill" and "Respawn" on various bricks around the server.

#onMinigameResetPlayerdefineMenuVariablePlayer§¹§²§³
Event
No
Enabled/
Disabled
InputTarget*OutputParameter 1**Parameter 2***Parameter 3****

*Self, Player, Client, NAMED BRICK, Minigame
**MENU ITEM
***Unrestricted, BL_ID Allow, BL_ID Deny, Admin, Build Trust, Full Trust, Owner Only, Distance
****(Information Extension regarding Parameter 3)

You would make three of these lines, defining Heal, Kill and Respawn.

When you define them, it should add them to a list.  There could also be color adjustment options for menu items.  After this, you would open a menu directed towards targets in which the menu items are stored.

These could be other event line examples:

OnActivate >> Self >> MenuOpen
OnMenuOpened >> Self >> playSound ""
OnMenuClosed >> Client >> CenterPrint "" ""
OnMenuItemSelected >> Self >> ifMenuOption ""
OnMenuSelectionTrue >> Self >> MenuClose
OnMenuSelectionFalse >> Client >> CenterPrint ""
OnMenuItemAdd >> Self >> playSound ""
OnMenuItemSub >> Client >> ChatMsg ""
OnActivate >> Self >> MenuClear
OnMenuClear >> Minigame >> ChatMsgAll ""
« Last Edit: December 08, 2013, 12:18:58 PM by SWAT One »

So you're saying you want a script hook for mousewheel scrolling?
AFAIK that's not going to happen for the same reason you can't just bind a random key to do something. I don't believe there's a callback either, so it's something that badspot would have to add.

So you're saying you want a script hook for mousewheel scrolling?
AFAIK that's not going to happen for the same reason you can't just bind a random key to do something. I don't believe there's a callback either, so it's something that badspot would have to add.
Okay.

So you're saying you want a script hook for mousewheel scrolling?
AFAIK that's not going to happen for the same reason you can't just bind a random key to do something. I don't believe there's a callback either, so it's something that badspot would have to add.
you could check if the event dialog was open, use basic math (Scrolls+cursorPos+parent object pos) to determine which button you have your mouse over, and get the selected id, increment it/decrement it, and handle overflow + underflow

probably an inefficient way... but I don't see it really happening any other way

That would be fantastic if you could, and display menu items on either CenterPrint or BottomPrint.

client side mod should be able to handle this, right?

also i was working on a menu library for use with mods
it made a list of items in centerprint, then you could scroll through it with brick shift up and down keys, and select with plant or something

never got it to work right
https://github.com/Tungul/GameMode_Microlite20/blob/master/lib/centerprint_scroller.cs

yeah, plant brick selects, shift brick up by plate scrolls line by line, shift brick by brick scrolls page by page

pretty cool idea, never got it working.
« Last Edit: December 08, 2013, 04:41:45 PM by Lugnut »

I think that scroll wheel would probably be easiest.  Personally, I would like to see the events the most.  That way, you can store all the server rules or help files on one list.

Maybe another parameter that allows you to define list name, that way, you only see certain options, and this allows you to create sub-menus, rather than seeing the whole server's options at once.

Also, maybe parameters like the VCE range parameter for appropriate events.

scroll wheels cannot be handled in stock blockland, so i tried to make a solution that works without a client mod

that doesn't mean the list mod couldn\t be made with possible client mods in mind


if i can iron out the time i will make your silly mod