Skip to content

Commit 6a2df8e

Browse files
committed
Cleaned up skin comments
1 parent bceebb6 commit 6a2df8e

File tree

14 files changed

+43
-34
lines changed

14 files changed

+43
-34
lines changed

Diff for: @Resources/scripts/Rotate.lua

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
-- @author alatsombath / Github: alatsombath
22

33
function Initialize()
4-
-- Get the config variable for multiple visualizers
4+
-- Get the config variable so it won't apply the changes to every rainmeter skin loaded
55
config = SKIN:GetVariable("Config")
6-
6+
77
-- Get nearestAxis variable and set matrix to be a string
88
nearestAxis, matrix = SKIN:ParseFormula(SKIN:GetVariable("NearestAxis")), ""
9-
10-
-- Get matrix string by sending a bang to the lua file
11-
SKIN:Bang("!WriteKeyValue", "Matrix", "OnUpdateAction", '[!CommandMeasure ScriptInitialize """matrix = "[Matrix]"""" "#ROOTCONFIG#\\Settings\\init"]', "#@#include\\MeasureRotate.inc")
12-
9+
1310
-- Set options for each config
1411
local barHeight = SKIN:ParseFormula(SKIN:GetVariable("BarHeight"))
1512
local barWidth, barGap = SKIN:ParseFormula(SKIN:GetVariable("BarWidth")) * SKIN:ParseFormula(SKIN:GetVariable("ScaleVisualizer")), SKIN:ParseFormula(SKIN:GetVariable("BarGap")) * SKIN:ParseFormula(SKIN:GetVariable("ScaleVisualizer"))
1613
local offset = barWidth + barGap
1714
local angle = SKIN:ParseFormula(SKIN:GetVariable("Angle"))
1815
local meterName, lowerLimit, upperLimit = {}, 1, SKIN:ParseFormula(SKIN:GetVariable("BarCount"))
19-
16+
2017
-- Add group to MeterBars and then update them
2118
for i = lowerLimit, upperLimit do
2219
meterName[i] = "MeterBar" .. i-1
2320
SKIN:Bang("!SetOption", meterName[i], "Group", "GroupBars", config)
2421
SKIN:Bang("!UpdateMeter", meterName[i], config)
2522
end
26-
23+
2724
-- Change Positioning based on NearestAxis
2825
if nearestAxis ~= 0 then
2926
SKIN:Bang("!SetOptionGroup", "GroupBars", "W", barHeight, config)
@@ -38,7 +35,7 @@ function Initialize()
3835
SKIN:Bang("!SetOption", meterName[i], "X", offset * (i - lowerLimit), config)
3936
end
4037
end
41-
38+
4239
if angle > 0 then
4340
SKIN:Bang("!SetOptionGroup", "GroupProgressBar", "Hidden", 1, config)
4441
end
@@ -54,13 +51,13 @@ function Initialize()
5451
SKIN:Bang("!UpdateMeterGroup", "GroupBars", config)
5552
SKIN:Bang("!SetOptionGroup", "GroupBars", "TransformationMatrix", "", config)
5653
end
57-
54+
5855
-- Update the group
5956
SKIN:Bang("!UpdateMeterGroup", "GroupBars", config)
60-
57+
6158
-- Remove the OnUpdateAction from MeasureRotate.inc to remove log spam
6259
SKIN:Bang("!WriteKeyValue", "Matrix", "OnUpdateAction", "", "#@#include\\MeasureRotate.inc")
63-
60+
6461
-- Deactivate init skin
6562
SKIN:Bang("!DeactivateConfig")
6663
end

Diff for: Background/background.ini

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
[Rainmeter]
22
Update=-1
33

4+
; = IMPORTANT =
5+
; = For configuring the rainmeter skin, right-click the visualizer and click on "Open settings".
6+
; = You can also open the variables.ini file located in:
7+
; = "My Documents\Rainmeter\Skins\Monstercat Visualizer\@Resources"
8+
49
; Small context menu when you right-click the skin
510
ContextTitle=" Open settings"
611
ContextAction=[!ActivateConfig "#ROOTCONFIG#\Settings" "general.ini"]
@@ -14,6 +19,7 @@ License=MIT License
1419
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
1520

1621
[Variables]
22+
; Includes the variables used for the skin.
1723
@include=#@#variables.ini
1824

1925
[Background]
@@ -22,4 +28,4 @@ X=0
2228
Y=0
2329
W=#WORKAREAWIDTH#
2430
H=#WORKAREAHEIGHT#
25-
SolidColor=0,0,0,50
31+
SolidColor=0,0,0,50

Diff for: Settings/about.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ License=MIT License
99
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
1010

1111
[Variables]
12-
; Includes the variables/styles used for the skin.
12+
; Includes the variables used for the skin.
1313
@include=#@#variables.ini
1414

1515
[MeterArtwork]

Diff for: Settings/general.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ License=MIT License
99
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
1010

1111
[Variables]
12-
; Includes the variables/styles used for the skin.
12+
; Includes the variables used for the skin.
1313
@include=#@#variables.ini
1414

1515
[MeasureEnableProgressBarCheck]
@@ -329,7 +329,7 @@ FontFace=Segoe UI Light
329329
FontSize=10
330330
FontColor=255,255,255
331331
AntiAlias=1
332-
Text=%1°
332+
Text=%1
333333
StringAlign=Right
334334
[MeterSliderAngle]
335335
Meter=Bar

Diff for: Settings/mediaplayer.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ License=MIT License
99
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
1010

1111
[Variables]
12-
; Includes the variables/styles used for the skin.
12+
; Includes the variables used for the skin.
1313
@include=#@#variables.ini
1414

1515
[MeterBG]

Diff for: Settings/misc/Intro.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ License=MIT License
88
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
99

1010
[Variables]
11-
; Includes the variables/styles used for the skin.
11+
; Includes the variables used for the skin.
1212
@include=#@#variables.ini
1313

1414
[MeterBG]

Diff for: Settings/misc/devicelist/GetAudioDevices.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ License=MIT License
1616
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
1717

1818
[Variables]
19-
; Includes the variables/styles used for the skin.
19+
; Includes the variables used for the skin.
2020
@include=#@#variables.ini
2121

2222
[-]

Diff for: Settings/misc/init/InitializeSkin.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ License=MIT License
1111
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
1212

1313
[Variables]
14-
; Includes the variables/styles used for the skin.
14+
; Includes the variables used for the skin.
1515
@include=#@#variables.ini
1616

1717
[ScriptInitialize]

Diff for: Settings/styling.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ License=MIT License
99
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
1010

1111
[Variables]
12-
; Includes the variables/styles used for the skin.
12+
; Includes the variables used for the skin.
1313
@include=#@#variables.ini
1414

1515
[MeterBG]

Diff for: Settings/visualization.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ License=MIT License
99
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
1010

1111
[Variables]
12-
; Includes the variables/styles used for the skin.
12+
; Includes the variables used for the skin.
1313
@include=#@#variables.ini
1414

1515
[MeterBG]

Diff for: Song Information/Cover/Cover.ini

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ License=MIT License
2020
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
2121

2222
[Variables]
23-
; Includes the variables/styles used for the skin.
23+
; Includes the variables used for the skin.
2424
@include=#@#variables.ini
25-
; Include MeasureGenre and Chameleon for dynamic colors.
25+
26+
; Include media player and styling measures.
2627
@include2=#@#include\Measure#MPMode#.inc
2728
@include3=#@#include\MeasureStyling.inc
2829

29-
; Meter - cover with music controls
30+
; Meter Cover - shows cover and song controls on hover
3031
[MeterCoverBG]
3132
Meter=Image
3233
X=(7*#ScaleSongInformation#)

Diff for: Song Information/Left.ini

+5-4
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ License=MIT License
2121
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
2222

2323
[Variables]
24-
; Includes the variables/styles used for the skin.
24+
; Includes the variables used for the skin.
2525
@include=#@#variables.ini
26-
; Include MeasureGenre and Chameleon for dynamic colors.
26+
27+
; Include media player and styling measures.
2728
@include2=#@#include\Measure#MPMode#.inc
2829
@include3=#@#include\MeasureStyling.inc
2930

30-
; Meter - artist and track
31-
31+
; Meter Artist & Track - show artists name and track name
3232
[MeterArtist]
3333
Meter=String
3434
MeasureName=MeasureArtist
@@ -43,6 +43,7 @@ ClipString=2
4343
FontEffectColor=#BorderColor#
4444
Text="%1"
4545
Group=SongMeta
46+
4647
[MeterTrack]
4748
Meter=STRING
4849
MeasureName=MeasureTrack

Diff for: Song Information/Right.ini

+5-4
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ License=MIT License
2121
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
2222

2323
[Variables]
24-
; Includes the variables/styles used for the skin.
24+
; Includes the variables used for the skin.
2525
@include=#@#variables.ini
26-
; Include MeasureGenre and Chameleon for dynamic colors.
26+
27+
; Include media player and styling measures.
2728
@include2=#@#include\Measure#MPMode#.inc
2829
@include3=#@#include\MeasureStyling.inc
2930

30-
; Meter - artist and track
31-
31+
; Meter Artist & Track - show artists name and track name
3232
[MeterArtist]
3333
Meter=String
3434
MeasureName=MeasureArtist
@@ -44,6 +44,7 @@ StringAlign=Right
4444
FontEffectColor=#BorderColor#
4545
Text="%1"
4646
Group=SongMeta
47+
4748
[MeterTrack]
4849
Meter=STRING
4950
MeasureName=MeasureTrack

Diff for: visualizer.ini

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ License=MIT License
2525
Information=An realtime audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
2626

2727
[Variables]
28-
; Includes the variables/styles used for the skin.
28+
; Includes the variables used for the skin.
2929
@include=#@#variables.ini
3030

3131
; Include media player and styling measures.
3232
@include2=#@#include\Measure#MPMode#.inc
3333
@include3=#@#include\MeasureStyling.inc
3434

35+
; Measure AudioLevel - gets the current audio spectrum and outputs it to the band measures
3536
[MeasureAudio]
3637
Measure=Plugin
3738
Plugin=AudioLevel
@@ -62,6 +63,7 @@ Value2=MeasureAudioSmoothed{%%}
6263
Option3=TransformationMatrix
6364
Value3=[*Matrix*]
6465
UpdateDivider=-1
66+
6567
; Script Refresher - refreshes the code to apply the changes from the factory
6668
[ScriptRefresher]
6769
Measure=Script
@@ -81,6 +83,7 @@ Refreshed=0
8183
; Include the BandMeasures with smoothed data
8284
@include7=#@#include\MeasureBandsSmoothed.inc
8385

86+
; Meter ProgressBar - shows the progress bar below the visualizer
8487
[MeterProgressBar]
8588
Meter=Bar
8689
MeasureName=MeasureProgress

0 commit comments

Comments
 (0)