button gadget Type that responds by pressing More...
Classes | |
struct | AnimData |
Change information when pressed More... | |
Public Types | |
enum | State { None , ShowMove , Show , DisableMove , Disable , HideMove , Hide } |
Display state More... | |
Public Member Functions | |
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 () |
Static Public Attributes | |
static readonly SharpKmyMath.Vector4 | None = new SharpKmyMath.Vector4(-1000, -1000, -1000, -1000) |
Protected Attributes | |
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 |
Properties | |
GadgetImage.Parts | Parts [get, set] |
SharpKmyMath.Vector3 | Pos [get] |
SharpKmyMath.Vector4 | Color [get, set] |
button gadget Type that responds by pressing
Yukar.Engine.ButtonGadget.ButtonGadget | ( | VirtualPad | inController | ) |
void Yukar.Engine.ButtonGadget.disable | ( | float | inTime | ) |
|
virtual |
Reimplemented in Yukar.Engine.StickGadget, and Yukar.Engine.SliderGadget.
AnimData Yukar.Engine.ButtonGadget.GetAnimShow | ( | ) |
void Yukar.Engine.ButtonGadget.hide | ( | float | inTime | ) |
bool Yukar.Engine.ButtonGadget.isDisable | ( | State | inState = State.None | ) |
bool Yukar.Engine.ButtonGadget.isHide | ( | State | inState = State.None | ) |
|
virtual |
Reimplemented in Yukar.Engine.StickGadget, and Yukar.Engine.SliderGadget.
bool Yukar.Engine.ButtonGadget.isShow | ( | State | inState = State.None | ) |
|
virtual |
Reimplemented in Yukar.Engine.StickGadget.
void Yukar.Engine.ButtonGadget.setDisableAnim | ( | AnimData | inData | ) |
void Yukar.Engine.ButtonGadget.setHideAnim | ( | AnimData | inData | ) |
|
virtual |
|
virtual |
void Yukar.Engine.ButtonGadget.setShowAnim | ( | AnimData | inData | ) |
void Yukar.Engine.ButtonGadget.show | ( | float | inTime | ) |
|
virtual |
Reimplemented in Yukar.Engine.StickGadget, and Yukar.Engine.SliderGadget.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
getset |
|
getset |
|
get |