Question about LavishGUI

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
Garmuk
GamingTools Subscriber
Posts: 2
Joined: Mon May 05, 2008 7:04 pm

Question about LavishGUI

Post by Garmuk » Tue Apr 14, 2009 1:42 pm

I've been using clickboxer and I'm trying to figure out if there is a way to modify the OnLeftClick portion to work with a combination of a left click and a keystroke. Something like OnCtrlLeftClick (Ctrl + left click). I'm also trying to figure out if it's possible to have a UI element come to the foreground by holding a key down and then go back to the background when the key is released. (Hold shift, clickboxer comes to the foreground and can be interacted with. Release shift and clickboxer goes back to the background.)

I looked around the wiki but I couldn't find any answers that made sense to me.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Tue Apr 14, 2009 4:08 pm

I've been using clickboxer and I'm trying to figure out if there is a way to modify the OnLeftClick portion to work with a combination of a left click and a keystroke. Something like OnCtrlLeftClick (Ctrl + left click).

Code: Select all

if ${Input.Button[Ctrl].Pressed}
  dosomething
I'm also trying to figure out if it's possible to have a UI element come to the foreground by holding a key down and then go back to the background when the key is released. (Hold shift, clickboxer comes to the foreground and can be interacted with. Release shift and clickboxer goes back to the background.)
Not necessarily foreground and background, but you can make keybinds that do something different on press and release, so for example...

Code: Select all

bind -press mybind "scroll lock" UIElement["ClickBoxer"]:Show
bind -release mybind "scroll lock" UIElement["ClickBoxer"]:Hide
... and thus would show the window while holding down scroll lock. If you bind directly to shift, ctrl, or alt it might have some adverse side effects.

From what you're saying about back/fore, it sounds like you want it transparent and non-interactive in the background, which can technically be done but requires a bit of trickery (to get non-interactive). That's not a feature built into LavishGUI, you would have to know where to look and what exactly you're looking for to find it. And you'd have to write a script in LavishScript to handle the shift part properly.

I'm not real certain how technical you want to get ;)

Garmuk
GamingTools Subscriber
Posts: 2
Joined: Mon May 05, 2008 7:04 pm

Post by Garmuk » Wed Apr 15, 2009 8:04 am

Thanks! I wish I could go more technical than that but it's already starting to look like a monkey was banging on my keyboard.

Post Reply