Pro tip for Gauges

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Pro tip for Gauges

Post by Dommy »

I just discovered it now and want to share my knowledge to you :mrgreen:

If you want your gauge to start showing its light exactly at the beginning, you must reduce ratio with this method:

Code: Select all

declare GaugeCutOff = 4 / Gauge.Size.X;
Gauge.Ratio = TargetRatio * (1 - GaugeCutOff) + GaugeCutOff;
:thumbsup:
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Pro tip for Gauges

Post by reaby »

thanks, good tip!
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: Pro tip for Gauges

Post by Dommy »

One more hint: if you're using gauge with drawbg="0" and drawblockbg="0", you might notice small glow when TargetRatio is 0. To prevent this just hide gauge when TargetRatio <= 0.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 1 guest