Blockland Forums > Suggestions & Requests
More Capabilities Involving Scroll Wheel
(1/2) > >>
SWAT One:
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
NoEnabled/
DisabledInputTarget*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 ""
Treynolds416:
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.
SWAT One:

--- Quote from: Treynolds416 on December 08, 2013, 11:43:21 AM ---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.

--- End quote ---
Okay.
MARBLE MAN:

--- Quote from: Treynolds416 on December 08, 2013, 11:43:21 AM ---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.

--- End quote ---
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
SWAT One:
That would be fantastic if you could, and display menu items on either CenterPrint or BottomPrint.
Navigation
Message Index
Next page

Go to full version