Logo
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Properties | List of all members
Yukar.Engine.ButtonGadget Class Reference

button gadget Type that responds by pressing More...

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

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]
 

Detailed Description

button gadget Type that responds by pressing

Member Enumeration Documentation

◆ State

Display state

Enumerator
None 
ShowMove 
Show 
DisableMove 
Disable 
HideMove 
Hide 

Constructor & Destructor Documentation

◆ ButtonGadget()

Yukar.Engine.ButtonGadget.ButtonGadget ( VirtualPad  inController)

Member Function Documentation

◆ disable()

void Yukar.Engine.ButtonGadget.disable ( float  inTime)

◆ draw()

virtual void Yukar.Engine.ButtonGadget.draw ( )
virtual

◆ GetAnimShow()

AnimData Yukar.Engine.ButtonGadget.GetAnimShow ( )

◆ hide()

void Yukar.Engine.ButtonGadget.hide ( float  inTime)

◆ isDisable()

bool Yukar.Engine.ButtonGadget.isDisable ( State  inState = State.None)

◆ isHide()

bool Yukar.Engine.ButtonGadget.isHide ( State  inState = State.None)

◆ isRange()

virtual bool Yukar.Engine.ButtonGadget.isRange ( SharpKmyMath.Vector2  inPos)
virtual

◆ isShow()

bool Yukar.Engine.ButtonGadget.isShow ( State  inState = State.None)

◆ isTouch()

virtual bool Yukar.Engine.ButtonGadget.isTouch ( )
virtual

Reimplemented in Yukar.Engine.StickGadget.

◆ setDisableAnim()

void Yukar.Engine.ButtonGadget.setDisableAnim ( AnimData  inData)

◆ setHideAnim()

void Yukar.Engine.ButtonGadget.setHideAnim ( AnimData  inData)

◆ setHitMargin()

virtual void Yukar.Engine.ButtonGadget.setHitMargin ( SharpKmyMath.Vector2  inMargin)
virtual

◆ setHitRange()

virtual void Yukar.Engine.ButtonGadget.setHitRange ( SharpKmyMath.Vector4  inRange)
virtual

◆ setShowAnim()

void Yukar.Engine.ButtonGadget.setShowAnim ( AnimData  inData)

◆ show()

void Yukar.Engine.ButtonGadget.show ( float  inTime)

◆ update()

virtual void Yukar.Engine.ButtonGadget.update ( )
virtual

Member Data Documentation

◆ mAnimDisable

AnimData Yukar.Engine.ButtonGadget.mAnimDisable = new AnimData()
protected

◆ mAnimHide

AnimData Yukar.Engine.ButtonGadget.mAnimHide = new AnimData()
protected

◆ mAnimNow

AnimData Yukar.Engine.ButtonGadget.mAnimNow = new AnimData()
protected

◆ mAnimShow

AnimData Yukar.Engine.ButtonGadget.mAnimShow = new AnimData()
protected

◆ mColor

SharpKmyMath.Vector4 Yukar.Engine.ButtonGadget.mColor = None
protected

◆ mController

VirtualPad Yukar.Engine.ButtonGadget.mController = null
protected

◆ mHitMargin

SharpKmyMath.Vector2 Yukar.Engine.ButtonGadget.mHitMargin = new SharpKmyMath.Vector2(0, 0)
protected

◆ mHitRange

SharpKmyMath.Vector4 Yukar.Engine.ButtonGadget.mHitRange = None
protected

◆ mMoveDst

AnimData Yukar.Engine.ButtonGadget.mMoveDst = new AnimData()
protected

◆ mMoveSrc

AnimData Yukar.Engine.ButtonGadget.mMoveSrc = new AnimData()
protected

◆ mParts

GadgetImage.Parts Yukar.Engine.ButtonGadget.mParts = GadgetImage.Parts.None
protected

◆ mState

State Yukar.Engine.ButtonGadget.mState = State.None
protected

◆ mTouchPoint

Touch.Point Yukar.Engine.ButtonGadget.mTouchPoint = null
protected

◆ None

readonly SharpKmyMath.Vector4 Yukar.Engine.ButtonGadget.None = new SharpKmyMath.Vector4(-1000, -1000, -1000, -1000)
static

Property Documentation

◆ Color

SharpKmyMath.Vector4 Yukar.Engine.ButtonGadget.Color
getset

◆ Parts

GadgetImage.Parts Yukar.Engine.ButtonGadget.Parts
getset

◆ Pos

SharpKmyMath.Vector3 Yukar.Engine.ButtonGadget.Pos
get