It is currently November 15th, 2019, 11:32 am

Question on DynamicVariables=1

Help with creating, editing & fixing problems with skins
Yincognito
Posts: 682
Joined: February 27th, 2015, 2:38 pm

Re: Question on DynamicVariables=1

Yincognito » February 4th, 2019, 7:45 am

Thanks, Brian - all clear now.
User avatar
jsmorley
Developer
Posts: 19710
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Question on DynamicVariables=1

jsmorley » February 4th, 2019, 1:57 pm

Brian wrote:
February 4th, 2019, 6:06 am
In "production" skins, what I like to do is instead of using a "dummy" option to force a one-time dynamic reading of options, is to use the DynamicVariables option itself.
[!SetOption SomeSection DynamicVariables "0"]

This way you can still understand "why" you placed that there at a later time when the skin isn't so fresh in your mind. Or if you happen to distribute the skin, other users can attempt to understand what you are doing. [!SetOption Something Dummy ""] isn't going to make a lot of sense to most users, and might even throw you for a loop 2 years later when updating your skin.

-Brian
That's a good idea.