public UIForm Set(int x, int y, int w, int h, string text = "") { if (WhiteTex == null) { WhiteTex = new Texture2D("data/ui/whitetex.png", LoadMethod.Single, true); WhiteTex2D = new Tex.Tex2D("data/ui/whitetex.png", false); } X = x; Y = y; W = w; H = h; Text = text; Changed?.Invoke(); if (!designed) { designed = true; DesignUI(); } AfterSet?.Invoke(); // FormFB = new FrameBuffer.FrameBufferColor(W, H); Resize(); return(this); }
public UIForm Set(int x, int y, int w, int h, string text = "") { X = x; Y = y; W = w; H = h; Text = text; Changed?.Invoke( ); if (!designed) { designed = true; DesignUI( ); } return(this); }