public void TextFieldTry() { Textfield tf = new Textfield(); var cr = new Common.Region(); cr.Add(tf.DisplayRectangle); tf.Draw(GetSDXContext.GetDrawer(), cr); }
public override void Draw(Vector2 OFFSET) { for (int i = 0; i < Frames.Count; i++) { Frames[i].Draw(new Vector2(OFFSET.X + i * 17 + 80, OFFSET.Y + layerIndex * 27 + 55)); } nameField.Draw(OFFSET); base.Draw(OFFSET); }
public override void Draw(Vector2 OFFSET, Color COLOR) { base.Draw(OFFSET, COLOR); canvasY.Draw(OFFSET); canvasX.Draw(OFFSET); cancelBtn.Draw(OFFSET); OKBtn.Draw(OFFSET); ProjName.Draw(OFFSET); Globals.primitives.DrawTxt("width:", new Vector2(10, 65) + pos, Globals.fontSize, Color.Gray); Globals.primitives.DrawTxt("height:", new Vector2(125, 65) + pos, Globals.fontSize, Color.Gray); Globals.primitives.DrawTxt("name:", new Vector2(10, 35) + pos, Globals.fontSize, Color.Gray); }
public override void Draw(Vector2 OFFSET, Color COLOR) { base.Draw(OFFSET, COLOR); beginWindowContent(); testBtn.Draw(OFFSET); testField.Draw(OFFSET); //testLabel.Draw(OFFSET); Globals.primitives.DrawTxt($"x: {Globals.screenWidth}", new Vector2(10 + pos.X, 100 + pos.Y), Globals.fontSize, Color.Gray); Globals.primitives.DrawTxt($"y: {Globals.screenHeight}", new Vector2(10 + pos.X, 120 + pos.Y), Globals.fontSize, Color.Gray); //testslider.Draw(OFFSET); endWindowContent(); }
public override void Draw(Vector2 OFFSET, Color COLOR) { base.Draw(OFFSET, COLOR); beginWindowContent(); playBtn.Draw(OFFSET); backBtn.Draw(OFFSET); Globals.primitives.DrawTxt("fps:", new Vector2(10, 58) + pos, Globals.fontSize, Color.Gray); Globals.primitives.DrawTxt("start frame:", new Vector2(116, 28) + pos, Globals.fontSize, Color.Gray); Globals.primitives.DrawTxt("end frame:", new Vector2(116, 58) + pos, Globals.fontSize, Color.Gray); fpsTxt.Draw(OFFSET); startFrameTxt.Draw(OFFSET); endFrameTxt.Draw(OFFSET); endWindowContent(); }