public void Draw(GLEx g, LTouch e) { int x = e.X() / tileWidth; int y = e.Y() / tileHeight; Draw(g, 0, 0, x, y, width - defWidth, height - defHeight, false); }
public override void TouchDown(LTouch touch) { if (desktop != null) { LComponent[] cs = desktop.GetContentPane().GetComponents(); for (int i = 0; i < cs.Length; i++) { if (cs[i] is LButton) { LButton btn = ((LButton)cs[i]); if (btn != null && btn.IsVisible()) { if (btn.Intersects(touch.X(), touch.Y())) { btn.DoClick(); } } } else if (cs[i] is LPaper) { LPaper paper = ((LPaper)cs[i]); if (paper != null && paper.IsVisible()) { if (paper.Intersects(touch.X(), touch.Y())) { paper.DoClick(); } } } } } Click(); }
public override void TouchDown(LTouch e) { if (!init) { return; } if (failgame) { return; } if (wingame || progress.GetValue() == 0) { return; } if (nexte != null && nexts != null) { if (helpRole != null) { if (!role.IsVisible() && helpRole.IsVisible()) { if (failgame) { return; } if (OnClick(helpRole)) { if (stage != null) { stage.SetVisible(false); } helpRole.SetVisible(false); role.SetImage(GetImage(13)); role.SetVisible(true); mes.SetMessageLength(20); mes.SetMessage(HELP_MES); mes.SetVisible(true); return; } } } } CallEvent(new TouchRunnable()); return; }
public override void TouchMove(LTouch e) { foreach (Drawable drawable in drawablesToDraw) { if (drawable._enabled) { if (drawable != null) { if (drawable.GetDrawableState() == Painting.DrawableState.Hidden) { continue; } drawable.Move(e); } } } Move(e); }
public override void TouchDown(LTouch e) { }
public abstract void Drag(LTouch e);
public abstract void Move(LTouch e);
public override void TouchUp(LTouch touch) { }
public void OnTouch(LTouch e) { this.OnTouch(e.X(), e.Y()); }
public void Drag(LTouch e) { }
public void Up(LTouch e) { }
public void Down(LTouch e) { }
public override void TouchDown(LTouch touch) { }
public override void TouchUp(LTouch e) { }
public void OnPosition(LTouch e) { this.OnPosition(e.GetX(), e.GetY()); }
public override void TouchDrag(LTouch e) { }
public abstract void Pressed(LTouch e);
public override void TouchMove(LTouch e) { }
public abstract void Released(LTouch e);
public override void TouchDrag(LTouch touch) { }
public override void TouchDrag(LTouch arg0) { }