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.
Question about LavishGUI
Moderators: Lavish Software Team, Moderators
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
Not necessarily foreground and background, but you can make keybinds that do something different on press and release, so for example...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.)
Code: Select all
bind -press mybind "scroll lock" UIElement["ClickBoxer"]:Show
bind -release mybind "scroll lock" UIElement["ClickBoxer"]:Hide
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
