Stick type gadget (direction key) More...
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 |
Stick type gadget (direction key)
Yukar.Engine.StickGadget.StickGadget | ( | VirtualPad | inController | ) |
|
virtual |
Reimplemented from Yukar.Engine.ButtonGadget.
SharpKmyMath.Vector2 Yukar.Engine.StickGadget.getAxis | ( | ) |
|
virtual |
|
virtual |
Reimplemented from Yukar.Engine.ButtonGadget.
|
virtual |
Reimplemented from Yukar.Engine.ButtonGadget.
|
virtual |
Reimplemented from Yukar.Engine.ButtonGadget.
bool Yukar.Engine.StickGadget.IsForceTouchDown = false |
bool Yukar.Engine.StickGadget.IsFourWay = false |
|
getset |