Drag[en]gine Script Module DragonScript 1.23
|
Open profile URL if clicked. More...
Public Member Functions | |
ClickedOpenProfileUrl | new (MMPanelModUserAccount panel) |
void | onAction () |
Action to perform. | |
![]() | |
int | getButton () |
Mouse button to track. | |
int | getClickedCount () |
Count of multi-clicks detected so far. | |
int | getMultiClickCount () |
Count of multi clicks before fire action. | |
float | getMultiClickTimeout () |
Maximum time in seconds between clicks to count as multi-click. | |
Point | getPosition () |
Mouse position at button press time or null if not tracked. | |
int | getRange () |
Range in pixels the mouse is allowed to move to fire the action. | |
ClickedActionListener | new () |
Create mouse listener tracking left mouse button and range of 5 pixels. | |
ClickedActionListener | new (int trackButton, int range) |
Create mouse listener. | |
void | onButtonPress (MouseEvent event) |
Mouse button pressed. | |
void | onButtonRelease (MouseEvent event) |
Mouse button release. | |
void | onMouseMove (MouseEvent event) |
Mouse moved. | |
void | resetMultiClickDetection () |
Reset multi click detection. | |
void | setMultiClickCount (int count) |
Set count of multi clicks before fire action. | |
void | setMultiClickTimeout (float time) |
Set maximum time in seconds between clicks to count as multi-click. | |
Public Attributes | |
MMPanelModUserAccount | pPanel |
Additional Inherited Members | |
![]() | |
void | setPosition (Point position) |
Set mouse position at button press time or null if not tracked. | |
Open profile URL if clicked.
ClickedOpenProfileUrl Dragengine.Gui.ModManagement.MMPanelModUserAccount.ClickedOpenProfileUrl.new | ( | MMPanelModUserAccount | panel | ) |
void Dragengine.Gui.ModManagement.MMPanelModUserAccount.ClickedOpenProfileUrl.onAction | ( | ) |
Action to perform.
If you need to know the mouse location at the time of the click use Widget::getLocalMouseLocation() on the desired widget. You can not use #getPosition() for this since this position is relative to whatever widget caused the mouse events to be send and it is cleared before calling onAction.
Reimplemented from Dragengine.Gui.ClickedActionListener.
MMPanelModUserAccount Dragengine.Gui.ModManagement.MMPanelModUserAccount.ClickedOpenProfileUrl.pPanel |