Logo
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
Yukar.Engine.StickGadget Class Reference

Stick type gadget (direction key) More...

Inheritance diagram for Yukar.Engine.StickGadget:
Yukar.Engine.ButtonGadget

Public Types

enum  Button {
  None = 0 , RIGHT , RIGHT_UP , UP ,
  LEFT_UP , LEFT , LEFT_DOWN , DOWN ,
  RIGHT_DOWN
}
 For obtaining information on stick-type gadgets More...
 
- Public Types inherited from Yukar.Engine.ButtonGadget
enum  State {
  None , ShowMove , Show , DisableMove ,
  Disable , HideMove , Hide
}
 Display state More...
 

Public Member Functions

 StickGadget (VirtualPad inController)
 
override void update ()
 
override void draw ()
 
override bool isRange (SharpKmyMath.Vector2 inPos)
 
override bool isTouch ()
 
virtual Button getTouchButton ()
 
SharpKmyMath.Vector2 getAxis ()
 
- Public Member Functions inherited from Yukar.Engine.ButtonGadget
AnimData GetAnimShow ()
 
 ButtonGadget (VirtualPad inController)
 
void setShowAnim (AnimData inData)
 
void setDisableAnim (AnimData inData)
 
void setHideAnim (AnimData inData)
 
virtual void setHitRange (SharpKmyMath.Vector4 inRange)
 
virtual void setHitMargin (SharpKmyMath.Vector2 inMargin)
 
bool isShow (State inState=State.None)
 
bool isHide (State inState=State.None)
 
bool isDisable (State inState=State.None)
 
void show (float inTime)
 
void disable (float inTime)
 
void hide (float inTime)
 
virtual void update ()
 
virtual void draw ()
 
virtual bool isRange (SharpKmyMath.Vector2 inPos)
 
virtual bool isTouch ()
 

Public Attributes

bool IsFourWay = false
 
bool IsForceTouchDown = false
 

Properties

GadgetImage.Parts PartsCenter [get, set]
 
- Properties inherited from Yukar.Engine.ButtonGadget
GadgetImage.Parts Parts [get, set]
 
SharpKmyMath.Vector3 Pos [get]
 
SharpKmyMath.Vector4 Color [get, set]
 

Additional Inherited Members

- Static Public Attributes inherited from Yukar.Engine.ButtonGadget
static readonly SharpKmyMath.Vector4 None = new SharpKmyMath.Vector4(-1000, -1000, -1000, -1000)
 
- Protected Attributes inherited from Yukar.Engine.ButtonGadget
VirtualPad mController = null
 
GadgetImage.Parts mParts = GadgetImage.Parts.None
 
AnimData mAnimNow = new AnimData()
 
AnimData mAnimShow = new AnimData()
 
AnimData mAnimHide = new AnimData()
 
AnimData mAnimDisable = new AnimData()
 
SharpKmyMath.Vector4 mHitRange = None
 
SharpKmyMath.Vector2 mHitMargin = new SharpKmyMath.Vector2(0, 0)
 
SharpKmyMath.Vector4 mColor = None
 
AnimData mMoveSrc = new AnimData()
 
AnimData mMoveDst = new AnimData()
 
Touch.Point mTouchPoint = null
 
State mState = State.None
 

Detailed Description

Stick type gadget (direction key)

Member Enumeration Documentation

◆ Button

For obtaining information on stick-type gadgets

Enumerator
None 
RIGHT 
RIGHT_UP 
UP 
LEFT_UP 
LEFT 
LEFT_DOWN 
DOWN 
RIGHT_DOWN 

Constructor & Destructor Documentation

◆ StickGadget()

Yukar.Engine.StickGadget.StickGadget ( VirtualPad  inController)

Member Function Documentation

◆ draw()

override void Yukar.Engine.StickGadget.draw ( )
virtual

Reimplemented from Yukar.Engine.ButtonGadget.

◆ getAxis()

SharpKmyMath.Vector2 Yukar.Engine.StickGadget.getAxis ( )

◆ getTouchButton()

virtual Button Yukar.Engine.StickGadget.getTouchButton ( )
virtual

◆ isRange()

override bool Yukar.Engine.StickGadget.isRange ( SharpKmyMath.Vector2  inPos)
virtual

Reimplemented from Yukar.Engine.ButtonGadget.

◆ isTouch()

override bool Yukar.Engine.StickGadget.isTouch ( )
virtual

Reimplemented from Yukar.Engine.ButtonGadget.

◆ update()

override void Yukar.Engine.StickGadget.update ( )
virtual

Reimplemented from Yukar.Engine.ButtonGadget.

Member Data Documentation

◆ IsForceTouchDown

bool Yukar.Engine.StickGadget.IsForceTouchDown = false

◆ IsFourWay

bool Yukar.Engine.StickGadget.IsFourWay = false

Property Documentation

◆ PartsCenter

GadgetImage.Parts Yukar.Engine.StickGadget.PartsCenter
getset