It is currently November 21st, 2018, 3:01 pm

Black/White font toggle

Help with creating, editing & fixing problems with skins
J0wNs
Posts: 32
Joined: June 16th, 2018, 9:27 pm

Re: Black/White font toggle

J0wNs » July 14th, 2018, 9:27 am

Here it is:

Code: Select all

[Variables]
Color=0


[MeasureColor]
Measure=Calc
Formula=#Color#
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction= [!SetOptionGroup MyGroup FontColor "255,255,255" "Test"][!SetOptionGroup MyGroup FontColor "255,255,255" "Amnio\System\CPU"][!SetOptionGroup MyGroup FontColor "255,255,255" "monstercat-visualizer\Song Information"][!UpdateMeterGroup "MyGroup" "Test"][!UpdateMeterGroup "MyGroup" "Amnio\System\CPU"][!UpdateMeterGroup "MyGroup" "monstercat-visualizer\Song Information"] [!Redraw "Test"][!Redraw "Amnio\System\CPU"]
[!Redraw "monstercat-visualizer\Song Information"]
IfFalseAction= [!SetOptionGroup MyGroup FontColor "0,0,0" "Test"][!SetOptionGroup MyGroup FontColor "0,0,0" "Amnio\System\CPU"][!SetOptionGroup MyGroup FontColor "0,0,0" "monstercat-visualizer\Song Information"][!UpdateMeterGroup "MyGroup" "Test"][!UpdateMeterGroup "MyGroup" "Amnio\System\CPU"][!UpdateMeterGroup "MyGroup" "monstercat-visualizer\Song Information"] [!Redraw "Test"][!Redraw "Amnio\System\CPU"]
[!Redraw "monstercat-visualizer\Song Information"]
DynamicVariables=1

[MeterColor]
Group=MyGroup
Meter=String
SolidColor=0,0,0,100
Text=Click to change color
LeftMouseUpAction=[!SetVariable Color "(1-#Color#)"][!UpdateMeasure "MeasureColor"]
DynamicVariables=1
The First Config is "Test" because I've created a custom .ini skin to see if it worked, but it still doesn't.
User avatar
FreeRaider
Posts: 754
Joined: November 20th, 2012, 11:58 pm

Re: Black/White font toggle

FreeRaider » July 14th, 2018, 9:45 am

J0wNs wrote:Picture for reference: https://i.imgur.com/UXWCbCS.jpg
[OFF TOPIC] nice skin [/OFF TOPIC]
User avatar
balala
Rainmeter Sage
Posts: 7029
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Black/White font toggle

balala » July 14th, 2018, 9:57 am

The last !Redraw bang of the IfTrueAction and the last two of the IfFalseAction are written into new lines. Please put them at the end of the proper options.
J0wNs
Posts: 32
Joined: June 16th, 2018, 9:27 pm

Re: Black/White font toggle

J0wNs » July 14th, 2018, 10:13 am

balala wrote:The last !Redraw bang of the IfTrueAction and the last two of the IfFalseAction are written into new lines. Please put them at the end of the proper options.
It works now, thanks for the huge help!
User avatar
balala
Rainmeter Sage
Posts: 7029
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Black/White font toggle

balala » July 14th, 2018, 11:27 am

I'm glad in this case. :thumbup: