I have absolutely no problem with the "trophy" going to balala (or anyone else whose solution works, for that matter), since he deserves it - as I said, the decision on what to use is entirely yours. My only problem was with implying that my code doesn't work when it actually does, at least for the bits of code you provided in this thread (which is precisely what you initially asked, after all).ZXCVBOT wrote: ↑October 7th, 2023, 11:48 am The code re-provided by Yincognito does work now, but not the same as the code provided by balala - reasons below:
The re-provided code of Yincognito does change the Mode (Variable) to 0 and 1, and Mode (Measure) to Light and Dark; But it applies only to the EngineLogo and its SolidColor ([#Background[&Mode]]). Not affecting the connected meters to the same Mode (Variable).
(I can make them change and adapt to the newly provided way, but, balala provides a much easier way to do so). I do believe, that adding !UpdateMeter <all meters> would make the job easier and your code workable.
The code provided by both works, but this time the goes to balala.
As for the rest of your code, if you find it difficult to spend 30 seconds to mass replace #Mode# with [Mode] and [#Mode] with [&Mode] from Notepad++' Search > Replace menus (and this can be done in all opened files, by the way), then I don't know what to say. Sure, if you don't want to or find it uncomfortable, that's again, your decision, nobody else can do it for you.
Regarding updating, I already mentioned earlier that updating any measure / meter where you use the mode variable / measure would be required (but only if you want the change to produce immediate effects, before the general skin update kicks in), so it's not like this detail was left out. Plus, unless I'm missing something, balala's code doesn't update any other section than EngineLogo either, so it would have precisely the same issue and require precisely the same approach if immediate effects are desired anyway, no matter how much dynamic variable lines you have in your skin. Redrawing the skin alone accomplishes exactly nothing by itself, if related stuff is not updated. You can easily test this by adding a measure like:
Code: Select all
[NotUpdated]
Measure=String
String=#Mode#
UpdateDivider=-1
DynamicVariables=1