Jump to content
juleshuxley

What do the colors in splendid config viewer mean?

Recommended Posts

I see red, green and blue items, some of them at indentation levels.
I can use getText in a script to retrieve red items.
getText when used on a green item just returns an empty string.
Blue items can always be retrieved, but getArray has to be used.

What do the colors and indentation mean? And how do I retrieve a green item? I'm guessing it's to do with inheritance but I'd appreciate an encompassing answer. And the best way to get a green item.

Currently trying to get reloadTime for a weapon and all I get is an empty string:
 

getText(configfile >> "CfgWeapons" >> "CUP_optic_LeupoldMk4_20x40_LRT" >> "reloadTime"); // ""

 

Share this post


Link to post
Share on other sites

Why do you want to reload an optic?

If any (by inheritance, but it's useless), reload time is a number, so use getNumber instead of getText.

  • Like 1

Share this post


Link to post
Share on other sites

The colours correspond to whether the config parameter is a string, number or array

So presumably you use getNumber to retrieve the green ones

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×