public void Draw(GLEx g) { if (!visible) { return; } batch.Begin(); batch.HalfAlpha(); up.Draw(batch); left.Draw(batch); right.Draw(batch); down.Draw(batch); triangle.Draw(batch); square.Draw(batch); circle.Draw(batch); cancel.Draw(batch); batch.ResetColor(); batch.End(); }
/// <summary> /// 绘制模拟按钮(LGraphics模式) /// </summary> /// /// <param name="g"></param> public void Draw(GLEx g) { if (!visible) { return; } g.BeginBatch(); g.SetBatchAlpha(0.5f); up.Draw(g); left.Draw(g); right.Draw(g); down.Draw(g); triangle.Draw(g); square.Draw(g); circle.Draw(g); cancel.Draw(g); g.EndBatch(); }