Pathfinder  v3.0
The definitive Hacknet programmable modding system
Pathfinder.GUI.BaseInteraction< T > Class Template Referenceabstract
+ Inheritance diagram for Pathfinder.GUI.BaseInteraction< T >:

Public Member Functions

abstract bool HandleInteraction ()
 
bool Contains (Point p)
 

Static Public Member Functions

static bool Contains (T x, T y, T width, T height, Point p)
 

Public Attributes

virtual bool IsActive => !GuiData.blockingInput && Contains(GuiData.getMousePoint())
 
virtual bool IsReleased => IsActive && (GuiData.mouseLeftUp() || GuiData.mouse.LeftButton == ButtonState.Released)
 
virtual bool IsHeldDown
 

Protected Member Functions

 BaseInteraction (T x, T y, T width, T height)
 

Properties

virtual bool JustReleased [get, protected set]
 
virtual bool WasHeld [get, protected set]
 
X [get, set]
 
Y [get, set]
 
Width [get, set]
 
Height [get, set]
 
Vector2< T > Position [get, set]
 
Vector2< T > Size [get, set]
 
Vector4< T > Rectangle [get, set]
 

Constructor & Destructor Documentation

◆ BaseInteraction()

Pathfinder.GUI.BaseInteraction< T >.BaseInteraction ( x,
y,
width,
height 
)
protected

Member Function Documentation

◆ Contains() [1/2]

bool Pathfinder.GUI.BaseInteraction< T >.Contains ( Point  p)

◆ Contains() [2/2]

static bool Pathfinder.GUI.BaseInteraction< T >.Contains ( x,
y,
width,
height,
Point  p 
)
static

◆ HandleInteraction()

abstract bool Pathfinder.GUI.BaseInteraction< T >.HandleInteraction ( )
pure virtual

Member Data Documentation

◆ IsActive

virtual bool Pathfinder.GUI.BaseInteraction< T >.IsActive => !GuiData.blockingInput && Contains(GuiData.getMousePoint())

◆ IsHeldDown

virtual bool Pathfinder.GUI.BaseInteraction< T >.IsHeldDown
Initial value:
=> IsActive && (GuiData.isMouseLeftDown()
&& !Gui.Button.DisableIfAnotherIsActive) && !IsReleased

◆ IsReleased

virtual bool Pathfinder.GUI.BaseInteraction< T >.IsReleased => IsActive && (GuiData.mouseLeftUp() || GuiData.mouse.LeftButton == ButtonState.Released)

Property Documentation

◆ Height

T Pathfinder.GUI.BaseInteraction< T >.Height
getset

◆ JustReleased

virtual bool Pathfinder.GUI.BaseInteraction< T >.JustReleased
getprotected set

◆ Position

Vector2<T> Pathfinder.GUI.BaseInteraction< T >.Position
getset

◆ Rectangle

◆ Size

◆ WasHeld

virtual bool Pathfinder.GUI.BaseInteraction< T >.WasHeld
getprotected set

◆ Width

T Pathfinder.GUI.BaseInteraction< T >.Width
getset

◆ X

◆ Y


The documentation for this class was generated from the following file: