Sometimes it needs to change Meter setting, but if i change setting of meter by meter it'll be pain in the a..
I have use @IncludeMeters but it wont work with #CURRENTFILE# Image wont show, left click wont do any thing
Code: Select all
[Variables]
;Content
TextC=F
TextCT=
TextCB=
;show/hide
Shapehide=0
TextChide=0
TextCTBhide=0
IMGhide=1
;other
ShapeColor=158,158,158,200
TextColor=255,255,244
TextFont=UVN Thang Gieng
;test style: normal, Italic
TextStyle=Italic
TextS=1
FontW=550
ShapeD=20
ShapeS=1.5
LMUA=["#@#\Links\Daiwa#CURRENTFILE#.lnk"]
ImgName=#@#\Images\Daiwa\#CURRENTFILE#.png
=========
ShapeD2=(#ShapeD#*1.732)
ShapeS2=(#ShapeS#*0.95)
ShapeColor2=255,255,255,0
StrokeColor=66,241,244,255
StrokeW=(#ShapeD#*0.15)
IMGW=(#ShapeD2#*1.3*#ShapeS#)
TextSize=(#TextS#*#ShapeD#*#ShapeS#)
XX=(#ShapeD#*#ShapeS#*2)
YY=(#ShapeD#*#ShapeS#*2)
[MeterShape1]
Meter=Shape
X=(#XX#-(#ShapeD2#*#ShapeS#/2))
Y=(#YY#-#ShapeD#*#ShapeS#)
Shape=Path MyPath| Extend MySharedModifiers| StrokeWidth 0
MyPath=(#ShapeD2#*#ShapeS#/2),0 | LineTo (#ShapeD2#*#ShapeS#),(#ShapeD#*#ShapeS#/2) | LineTo (#ShapeD2#*#ShapeS#),(#ShapeD#*#ShapeS#*1.5) | LineTo (#ShapeD2#*#ShapeS#/2),(#ShapeD#*#ShapeS#*2)| LineTo 0,(#ShapeD#*#ShapeS#*1.5)| LineTo 0,(#ShapeD#*#ShapeS#*0.5)
| ClosePath 1
MySharedModifiers=Fill Color #ShapeColor#
MouseOverAction=[!SetOption MeterShape0 HIDDEN "0"][!UpdateMeter MeterShape0][!Redraw]
MouseLeaveAction=[!SetOption MeterShape0 HIDDEN "1"][!UpdateMeter MeterShape0][!Redraw]
LeftMouseUpAction=#LMUA#
Hidden=#Shapehide#
[MeasureCond]
Measure=Calc
Formula=(#IMGhide#*1)
IfCondition=MeasureCond=0
IfTrueAction=[!SetOption Image Container "MeterShape1"]
IfFalseAction=[!SetOption Image Container "1"]
[Image]
Meter=Image
X =(-#IMGW#/2+#ShapeD2#*#ShapeS#/2)
Y =(-#IMGW#/2+#ShapeD#*#ShapeS#)
W = #IMGW#
ImageAlpha=255
ImageName=#ImgName#
Hidden=#IMGhide#
Container=1
[MeterShape0]
Meter=Shape
X=(#XX#-(#ShapeD2#/2))
Y=(#YY#-#ShapeD#/2)
Shape=Rectangle 0,0,#ShapeD2#,#ShapeD#| Extend MySharedModifiers
Shape2=Rectangle 0,0,#ShapeD2#,#ShapeD#| Extend MySharedModifiers| Rotate 60
Shape3=Rectangle 0,0,#ShapeD2#,#ShapeD#| Extend MySharedModifiers| Rotate 120
MySharedModifiers=Fill Color #ShapeColor2# | StrokeWidth #StrokeW# | Stroke Color #StrokeColor#
Shape4=Combine Shape | Union Shape2| Union Shape3| Scale #ShapeS2#,#ShapeS2#
Hidden=1
[Text Center]
Meter=String
X=(#XX#)
Y=#YY#
Text=#TextC#
FontFace=#TextFont#
FontColor=#textcolor#
FontSize=#TextSize#
FontWeight=#FontW#
StringStyle=#TextStyle#
StringAlign=CenterCenter
AntiAlias=1
Hidden=#TextChide#
[Text Top]
Meter=String
X=(#XX#-#TextSize#/10)
Y=(#YY#+#TextSize#/3)
Text=#TextCT#
FontFace=#TextFont#
FontColor=#textcolor#
FontSize=#TextSize#
FontWeight=#FontW#
StringStyle=#TextStyle#
StringAlign=CenterBottom
AntiAlias=1
Hidden=#TextCTBhide#
[Text Bottom]
Meter=String
X=(#XX#-#TextSize#/20)
Y=(#YY#)
Text=#TextCB#
FontFace=#TextFont#
FontColor=#textcolor#
FontSize=#TextSize#
FontWeight=#FontW#
StringStyle=#TextStyle#
StringAlign=CenterTop
AntiAlias=1
Hidden=#TextCTBhide#
Ex: Skin file have Variables like this, and all the Meter will be load from @Resources\Template.ini
Skin file:
Code: Select all
[Variables]
;Content
TextC=F
TextCT=
TextCB=
;show/hide
Shapehide=0
TextChide=0
TextCTBhide=0
IMGhide=1
;other
ShapeColor=158,158,158,200
TextColor=255,255,244
TextFont=UVN Thang Gieng
;test style: normal, Italic
TextStyle=Italic
TextS=1
FontW=550
ShapeD=20
ShapeS=1.5
LMUA=["#@#\Links\Daiwa#CURRENTFILE#.lnk"]
ImgName=#@#\Images\Daiwa\#CURRENTFILE#.png
=========
ShapeD2=(#ShapeD#*1.732)
ShapeS2=(#ShapeS#*0.95)
ShapeColor2=255,255,255,0
StrokeColor=66,241,244,255
StrokeW=(#ShapeD#*0.15)
IMGW=(#ShapeD2#*1.3*#ShapeS#)
TextSize=(#TextS#*#ShapeD#*#ShapeS#)
XX=(#ShapeD#*#ShapeS#*2)
YY=(#ShapeD#*#ShapeS#*2)
;;;Meter load from @Resources\Template.ini ;;;;;
Code: Select all
[MeterShape1]
Meter=Shape
X=(#XX#-(#ShapeD2#*#ShapeS#/2))
Y=(#YY#-#ShapeD#*#ShapeS#)
Shape=Path MyPath| Extend MySharedModifiers| StrokeWidth 0
MyPath=(#ShapeD2#*#ShapeS#/2),0 | LineTo (#ShapeD2#*#ShapeS#),(#ShapeD#*#ShapeS#/2) | LineTo (#ShapeD2#*#ShapeS#),(#ShapeD#*#ShapeS#*1.5) | LineTo (#ShapeD2#*#ShapeS#/2),(#ShapeD#*#ShapeS#*2)| LineTo 0,(#ShapeD#*#ShapeS#*1.5)| LineTo 0,(#ShapeD#*#ShapeS#*0.5)
| ClosePath 1
MySharedModifiers=Fill Color #ShapeColor#
MouseOverAction=[!SetOption MeterShape0 HIDDEN "0"][!UpdateMeter MeterShape0][!Redraw]
MouseLeaveAction=[!SetOption MeterShape0 HIDDEN "1"][!UpdateMeter MeterShape0][!Redraw]
LeftMouseUpAction=#LMUA#
Hidden=#Shapehide#
[MeasureCond]
Measure=Calc
Formula=(#IMGhide#*1)
IfCondition=MeasureCond=0
IfTrueAction=[!SetOption Image Container "MeterShape1"]
IfFalseAction=[!SetOption Image Container "1"]
[Image]
Meter=Image
X =(-#IMGW#/2+#ShapeD2#*#ShapeS#/2)
Y =(-#IMGW#/2+#ShapeD#*#ShapeS#)
W = #IMGW#
ImageAlpha=255
ImageName=#ImgName#
Hidden=#IMGhide#
Container=1
[MeterShape0]
Meter=Shape
X=(#XX#-(#ShapeD2#/2))
Y=(#YY#-#ShapeD#/2)
Shape=Rectangle 0,0,#ShapeD2#,#ShapeD#| Extend MySharedModifiers
Shape2=Rectangle 0,0,#ShapeD2#,#ShapeD#| Extend MySharedModifiers| Rotate 60
Shape3=Rectangle 0,0,#ShapeD2#,#ShapeD#| Extend MySharedModifiers| Rotate 120
MySharedModifiers=Fill Color #ShapeColor2# | StrokeWidth #StrokeW# | Stroke Color #StrokeColor#
Shape4=Combine Shape | Union Shape2| Union Shape3| Scale #ShapeS2#,#ShapeS2#
Hidden=1
[Text Center]
Meter=String
X=(#XX#)
Y=#YY#
Text=#TextC#
FontFace=#TextFont#
FontColor=#textcolor#
FontSize=#TextSize#
FontWeight=#FontW#
StringStyle=#TextStyle#
StringAlign=CenterCenter
AntiAlias=1
Hidden=#TextChide#
[Text Top]
Meter=String
X=(#XX#-#TextSize#/10)
Y=(#YY#+#TextSize#/3)
Text=#TextCT#
FontFace=#TextFont#
FontColor=#textcolor#
FontSize=#TextSize#
FontWeight=#FontW#
StringStyle=#TextStyle#
StringAlign=CenterBottom
AntiAlias=1
Hidden=#TextCTBhide#
[Text Bottom]
Meter=String
X=(#XX#-#TextSize#/20)
Y=(#YY#)
Text=#TextCB#
FontFace=#TextFont#
FontColor=#textcolor#
FontSize=#TextSize#
FontWeight=#FontW#
StringStyle=#TextStyle#
StringAlign=CenterTop
AntiAlias=1
Hidden=#TextCTBhide#