C# Class WindowDetect, UnderworldExporter

Window detect.
Inheritance: UWEBase
Afficher le fichier Open project: hankmorgan/UnderworldExporter Class Usage Examples

Méthodes publiques

Свойство Type Description
ContextUIEnabled bool
ContextUIUse bool
CursorInMainWindow bool
CursorPosition Rect
FullScreen bool
InMap bool
JustClicked bool
MouseHeldDown bool
UIPositionsFullScreen Vector3[]
UIPositionsWindowed Vector3[]
UIsToStore UnityEngine.RectTransform[]
WaitingForInput bool
WindowWaitCount float

Protected Properties

Свойство Type Description
cursorSizeX int
cursorSizeY int

Méthodes publiques

Méthode Description
Start ( ) : void
setPositions ( ) : void

Sets the positions of the ui elements based on the current fullscreen mode.

updateUIPositions ( ) : void

Updates the fullscreen ui positions after the player has finished dragging.

Méthodes protégées

Méthode Description
OnHover ( bool isOver ) : void

Detect if the mouse cursor is in the main window view

OnPress ( bool isDown, int ptrID ) : void

Detects if the mouse is held down (used in weapon charging)

ThrowObjectInHand ( ) : void

Throws the object in hand along a vector in the 3d view.

Method Details

OnHover() protected méthode

Detect if the mouse cursor is in the main window view
protected OnHover ( bool isOver ) : void
isOver bool If set to true is over.
Résultat void

OnPress() protected méthode

Detects if the mouse is held down (used in weapon charging)
protected OnPress ( bool isDown, int ptrID ) : void
isDown bool If set to true is down.
ptrID int Ptr I.
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

ThrowObjectInHand() protected méthode

Throws the object in hand along a vector in the 3d view.
protected ThrowObjectInHand ( ) : void
Résultat void

setPositions() public méthode

Sets the positions of the ui elements based on the current fullscreen mode.
public setPositions ( ) : void
Résultat void

updateUIPositions() public méthode

Updates the fullscreen ui positions after the player has finished dragging.
public updateUIPositions ( ) : void
Résultat void

Property Details

ContextUIEnabled public_oe static_oe property

Is the UI set to be context sensitive
public static bool ContextUIEnabled
Résultat bool

ContextUIUse public_oe static_oe property

public static bool ContextUIUse
Résultat bool

CursorInMainWindow public_oe static_oe property

Is the cursor in the main window.
public static bool CursorInMainWindow
Résultat bool

CursorPosition public_oe property

The cursor position.
public Rect CursorPosition
Résultat Rect

FullScreen public_oe property

Is the game in fulscreen mode
public bool FullScreen
Résultat bool

InMap public_oe static_oe property

Is the player looking at the automap
public static bool InMap
Résultat bool

JustClicked public_oe property

Has the window just been clicked
public bool JustClicked
Résultat bool

MouseHeldDown public_oe property

Is the mouse held down
public bool MouseHeldDown
Résultat bool

UIPositionsFullScreen public_oe property

The positions of the UI elements when in fullscreen mode.
public Vector3[] UIPositionsFullScreen
Résultat Vector3[]

UIPositionsWindowed public_oe property

The positions of the UI element when in windowed mode
public Vector3[] UIPositionsWindowed
Résultat Vector3[]

UIsToStore public_oe property

The ui elements that have their position stored.
public RectTransform[],UnityEngine UIsToStore
Résultat UnityEngine.RectTransform[]

WaitingForInput public_oe static_oe property

Is the game waiting for player typed input. Eg when picking up quantities.
public static bool WaitingForInput
Résultat bool

WindowWaitCount public_oe property

How long to wait until the player can click the window again.
public float WindowWaitCount
Résultat float

cursorSizeX protected_oe property

The cursor width
protected int cursorSizeX
Résultat int

cursorSizeY protected_oe property

The cursor height.
protected int cursorSizeY
Résultat int