05-02-2023, 08:10 PM
11 hours ago, Andrein95 said:
/index.php?/profile/20534-veni/&do=hovercard" data-mentionid="20534" href="/index.php?/profile/20534-veni/" rel="">@Veni , /index.php?/profile/14423-nicolasg/&do=hovercard" data-mentionid="14423" href="/index.php?/profile/14423-nicolasg/" rel="">@nicolasg
Rectangle.SetUV(106, 42, 237, 54, TexWidth, TexHeight);
Fill.SetUV(286, 220, 289, 227, TexWidth, TexHeight);
Rectangle.Left = vPopupPos(1) - mpwidth / 2;
Rectangle.Right = Rectangle.Left + mpwidth;
Rectangle.Bottom = vPopupPos(2) -31 ; //less bottom
Rectangle.Top = rcHUD2.Bottom - 10;
Fill.Left = rcHUD2.Left + 6;
Fill.Right = Rectangle.Right - 3;
Fill.Right = Rectangle.Left + ((Fill.Right - Fill.Left) * fMPRatio);
Fill.Top = Rectangle.Top + 3;
Fill.Bottom = Rectangle.Top + 5;
Drawing Rectangle: pDraw->AddTexture(Rectangle.Left, Rectangle.Top, Rectangle.Right, Rectangle.Bottom, UIRECTVRectangle.U0, UIRECTVRectangle.V0, UIRECTVRectangle.U1, UIRECTVRectangle.V1, 0xFFFFFFFF, fPopupZ);
Drawing Fill: pDraw->AddTexture(Fill.Left, Fill.Top, Fill.Right, Fill.Bottom, UIRECTVFill.U0, UIRECTVFill.V0, UIRECTVFill.U1, UIRECTVFill.V1, 0xFFFFFFFF, fPopupZ);
Everything works perfectly, but I do not understand where to put fill color, is taken automatically from .tex with some hidden information?
I don't know what you mean by fill color, I've never worked with solid colors instead of textures, but in customtitle ui you have a solid color rectangle, orange I think, you can use it as a guide...

