[Rainmeter]
Update=400

@Include=#@#Globals\MeasureCPU.inc
@Include2=#@#Globals\Formats.inc
@Include3=#@#Globals\MeasureTemp.inc

[Metadata]
Name=CPU Usage Histograms: Twelve Core
Author=Tuxwonder + Secopree + WTMike24
Information=This meter measures your CPU usage for each individual CPU core. This specific skin measures for a twelve core system, but puts the extra cores on top of the existing six in order to save screen space.
License=
Version=1.0.0

[Variables]
threshold=25
;The threshold is the percent at which a power bar is turned on

;---FRAME--------------------------------------------------------------

[MeterHUD]
Meter=Image
ImageName=#@#Images\Weapons\CPU_hud12_stacked.png

;---CPU_HISTOS--------------------------------------------------------------------

[MeasureCPU5]
Measure=CPU
Processor=5

[MeasureCPU6]
Measure=CPU
Processor=6

[MeasureCPU7]
Measure=CPU
Processor=7

[MeasureCPU8]
Measure=CPU
Processor=8

[MeasureCPU9]
Measure=CPU
Processor=9

[MeasureCPU10]
Measure=CPU
Processor=10

[MeasureCPU11]
Measure=CPU
Processor=11

[MeasureCPU12]
Measure=CPU
Processor=12

[CPUBar1]
Meter=Histogram
MeasureName=MeasureCPU1
X=37
Y=61
MeterStyle=MeterFormat_Histogram

[CPUBar2]
Meter=Histogram
MeasureName=MeasureCPU2
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram

[CPUBar3]
Meter=Histogram
MeasureName=MeasureCPU3
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram

[CPUBar4]
Meter=Histogram
MeasureName=MeasureCPU4
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram

[CPUBar5]
Meter=Histogram
MeasureName=MeasureCPU5
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram

[CPUBar6]
Meter=Histogram
MeasureName=MeasureCPU6
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram

[CPUBar7]
Meter=Histogram
MeasureName=MeasureCPU7
X=37
Y=19
MeterStyle=MeterFormat_Histogram

[CPUBar8]
Meter=Histogram
MeasureName=MeasureCPU8
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram

[CPUBar9]
Meter=Histogram
MeasureName=MeasureCPU9
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram

[CPUBar10]
Meter=Histogram
MeasureName=MeasureCPU10
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram

[CPUBar11]
Meter=Histogram
MeasureName=MeasureCPU11
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram

[CPUBar12]
Meter=Histogram
MeasureName=MeasureCPU12
X=98r
Y=0r
MeterStyle=MeterFormat_Histogram


[CPU_Icon]
Meter=Image
ImageName=#@#Images\Weapons\CPU_icon4.png
X=-14
Y=41

;------------------------------------------------

[Test1]
Measure=Calc
Formula=MeasureCPU1 < #threshold# ? 0 : 1

[Test2]
Measure=Calc
Formula=MeasureCPU2 < #threshold# ? 0 : 1

[Test3]
Measure=Calc
Formula=MeasureCPU3 < #threshold# ? 0 : 1

[Test4]
Measure=Calc
Formula=MeasureCPU4 < #threshold# ? 0 : 1

[Test5]
Measure=Calc
Formula=MeasureCPU5 < #threshold# ? 0 : 1

[Test6]
Measure=Calc
Formula=MeasureCPU6 < #threshold# ? 0 : 1

[Test7]
Measure=Calc
Formula=MeasureCPU7 < #threshold# ? 0 : 1

[Test8]
Measure=Calc
Formula=MeasureCPU8 < #threshold# ? 0 : 1

[Test9]
Measure=Calc
Formula=MeasureCPU9 < #threshold# ? 0 : 1

[Test10]
Measure=Calc
Formula=MeasureCPU10 < #threshold# ? 0 : 1

[Test11]
Measure=Calc
Formula=MeasureCPU11 < #threshold# ? 0 : 1

[Test12]
Measure=Calc
Formula=MeasureCPU12 < #threshold# ? 0 : 1

[TestIcon]
Measure=Calc
Formula=Test1 + Test2 + Test3 + Test4 + Test5 + Test6 + Test7 + Test8 + Test9 + Test10 + Test11 + Test12
IfCondition=TestIcon=0
IfTrueAction=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon0.png]
IfCondition2=TestIcon=1
IfTrueAction2=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon0.png]
IfCondition3=TestIcon=2
IfTrueAction3=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon1.png]
IfCondition4=TestIcon=3
IfTrueAction4=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon1.png]
IfCondition5=TestIcon=4
IfTrueAction5=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon2.png]
IfCondition6=TestIcon=5
IfTrueAction6=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon2.png]
IfCondition7=TestIcon=6
IfTrueAction7=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon3.png]
IfCondition8=TestIcon=7
IfTrueAction8=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon3.png]
IfCondition9=TestIcon=8
IfTrueAction9=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon4.png]
IfCondition10=TestIcon=9
IfTrueAction10=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon4.png]
IfCondition11=TestIcon=10
IfTrueAction11=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon5.png]
IfCondition12=TestIcon=11
IfTrueAction12=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon5.png]
IfCondition13=TestIcon=12
IfTrueAction13=[!SetOption CPU_Icon ImageName #@#Images\Weapons\CPU_icon6.png]