Hi everyone ! I'm Sam, a community newcomer
I just created an account because I have to ask you guys for some help, how can I hide my fps counter skin when it mesures 0 FPS and show it again when it is over 1
At first it sound kinda easy to do but I'm really struggling due to the fact that I'm a total noob, I'm pretty sure it's doable for someone who knows shit
I'm just pasting my skin here under
sam0s wrote: ↑October 30th, 2020, 1:15 am
Hi everyone ! I'm Sam, a community newcomer
I just created an account because I have to ask you guys for some help, how can I hide my fps counter skin when it mesures 0 FPS and show it again when it is over 1
At first it sound kinda easy to do but I'm really struggling due to the fact that I'm a total noob, I'm pretty sure it's doable for someone who knows shit
I'm just pasting my skin here under
This will test if the frame rate is above zero and show the when it is or hide the meter when it equals zero.
Remove your [dontwork] section.
You also have 2 'PostFix=' lines in [Subtitle2] meter section, so remove one of them, since the second one will be ignored.
sam0s wrote: ↑October 30th, 2020, 1:15 am
how can I hide my fps counter skin when it mesures 0 FPS and show it again when it is over 1
Based on the above original request, I'd say better would be to hide the whole skin, not just a meter, as eclectic-tech proposed. At least this is my thought, based on the above request. If interested, this is how eclectic-tech's IfTrueAction / IfFalseAction options should be modified in order to do what I described above (hide or show the whole skin):
Additionally if you prefer, !Show / !Hide bangs could be used instead of !ShowFade / !HideFade. The last set shows / hides the skin with a fade effect, while the !Show / !Hide bangs shows / hides the skin directly, with no such fade effect.
sam0s wrote: ↑November 4th, 2020, 3:57 pm
Yes ! I guess it's a cleaner code like this, also thanks for the fading effect tip
No, it's not necessarly cleaner, it just does other things than eclectic-tech's code. His code hides / shows some meters of the skin, while my code hides / shows the whole skin. Additionally yes, the !Show / !Hide / !Toggle bangs have a fade effect version, !ShowFade / !HideFade / !ToggleFade (which me personally always prefer in front of the not-fading bangs).
I'm glad if you got it working as expected.