How to get UV Map from TopUI.tex? In other words how to map different portion of texture and apply in pTextureStock->Ob
#8


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...



Messages In This Thread
[No subject] - by Andrein95 - 05-01-2023, 10:18 PM
[No subject] - by nicolasg - 05-01-2023, 10:44 PM
[No subject] - by Veni - 05-02-2023, 05:24 AM
[No subject] - by Andrein95 - 05-02-2023, 08:21 AM
[No subject] - by Andrein95 - 05-02-2023, 08:39 AM
[No subject] - by Andrein95 - 05-02-2023, 09:56 AM
[No subject] - by dethunter12 - 05-02-2023, 07:28 PM
[No subject] - by nicolasg - 05-02-2023, 08:10 PM
[No subject] - by Andrein95 - 05-02-2023, 08:24 PM
[No subject] - by dethunter12 - 05-02-2023, 08:28 PM
[No subject] - by Andrein95 - 05-02-2023, 08:46 PM
[No subject] - by nicolasg - 05-02-2023, 09:20 PM
[No subject] - by Veni - 05-03-2023, 04:11 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)