Example #1
0
        public static RVIShape CreateRect(RVIRectangle rect, int color32)
        {
            RVIVector2 v1 = new RVIVector2(rect.x, rect.y);
            RVIVector2 v2 = new RVIVector2(rect.x + rect.w, rect.y);
            RVIVector2 v3 = new RVIVector2(rect.x + rect.w, rect.y + rect.h);
            RVIVector2 v4 = new RVIVector2(rect.x, rect.y + rect.h);

            RVIShape result = new RVIShape();

            result.VertexList.Add(v1);
            result.VertexList.Add(v2);
            result.VertexList.Add(v3);
            result.VertexList.Add(v4);
            result.VertexList.Add(v1);
            result.VertexList.Add(v4);
            result.VertexList.Add(v3);
            result.VertexList.Add(v2);

            result.Color32 = color32;

            return(result);
        }
Example #2
0
        public void Rect(byte[] data)
        {
            RVIRectangle rect = RVIPackets.Server_Rect.ReadRect(data);

            this._interface.DrawRect(new RVIVector2(rect.x, rect.y), rect.w, rect.h);
        }
Example #3
0
 public RVITextInput(RVIRectangle rect, string name, string content)
 {
     this.Rect    = rect;
     this.Content = content;
 }