It is currently May 2nd, 2024, 12:44 am

Help wiht Sao theme

Get help with creating, editing & fixing problems with skins
Sinon
Posts: 5
Joined: October 29th, 2012, 2:42 am

Help wiht Sao theme

Post by Sinon »

In this skin. I want to use the SF Old republic text for Owner
First I was wondering if anything may be wrong with coding itself

And if that's not the case, then is there a similar font that would work

Code: Select all

[Rainmeter]
Author=Sinon
Update=1900

[Metadata]
Name=Power
Description=Battery Theme Size 2
Version=1.0.0

[MeasureBattery]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=PERCENT
[measurecpu]
Measure=cpu
invertmeasure=1
[measureuser]
measure=%username%

[Stat Frame]
Meter=IMAGE
ImageName=SaoStatBar.png
X=0
Y=0

[Battery Insides]
Meter=BAR
BarImage=SaoBattery.png
MeasureName=MeasureBattery
X=0
Y=0
barborder=80
BarOrientation=Horizontal

[Ram Insides]
Meter=BAR
BarImage=Saorambar.png
MeasureName=measurecpu
X=0
Y=0
barborder=80
BarOrientation=Horizontal


[Battery String]
meter=string
Measurename=measurebattery
x=90
y=24
h=8
AntiAilias=1
fontface=Cambria
fontcolor=255,255,255
text=%1%

[CPU String]
meter=string
MeasureName=measurecpu
x=r
y=13r
h=8
AntiAilias=1
fontface=cambria
fontcolor=255,255,255
text=%1/100

[User]
Meter=string
measurename=measureuser
x=30
y=32
fontcolor=255,255,255
Fontface=SF Old Republic
text=%username%
Lastly is it possible to create /"mock up" a window wiht the abilty to scroll
You do not have the required permissions to view the files attached to this post.
User avatar
Brian
Developer
Posts: 2689
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Help wiht Sao theme

Post by Brian »

Sinon wrote: I want to use the SF Old republic text for Owner
Looks like there is a problem with that font, so you might want to look for an alternative to use.
Also, Fonts will need to go a folder called "Fonts" in your @Resources folder (this isn't the reason that "SF Old Republic" won't load).
Sinon wrote:First I was wondering if anything may be wrong with coding itself
First thing I noticed was your [measureuser] measure. You have measure=%username%, which is invalid. You may want to read up on Measures, and how they work. Since you are defining the Text= in the [User] meter, there is no need to even have a measure with the %username% variable.

The second thing I noticed was your labeling of section names. Using spaces in a section name will more than likely lead to problems down the road when using certain bangs that require the section name (like !SetOption). It is recommended to not include spaces in section names.

Third, AntiAilias=1, should be AntiAlias=1. You had an extra "i" in there. Mistakes like this are really easy when using a simple text editor like Notepad. Here are some Notepad alternatives.

Last, on String meters using a H without a W is pointless. Although it won't hurt anything, there is no need for it since Rainmeter will just ignore the H.

Here is the revised code.

Code: Select all

[Rainmeter]
Author=Sinon
Update=1900

[Metadata]
Name=Power
Description=Battery Theme Size 2
Version=1.0.0

[MeasureBattery]
Measure=Plugin
Plugin=PowerPlugin
PowerState=PERCENT

[MeasureCPU]
Measure=CPU
InvertMeasure=1

[Stat_Frame]
Meter=Image
ImageName=SaoStatBar.png

[Battery_Insides]
Meter=Bar
BarImage=SaoBattery.png
MeasureName=MeasureBattery
BarBorder=80
BarOrientation=Horizontal

[Ram_Insides]
Meter=Bar
MeasureName=MeasureCPU
BarImage=Saorambar.png
BarBorder=80
BarOrientation=Horizontal

[Battery_String]
Meter=String
Measurename=MeasureBattery
X=90
Y=24
AntiAlias=1
FontFace=Cambria
FontColor=255,255,255
Text=%1%

[CPU_String]
Meter=String
MeasureName=MeasureCPU
X=r
Y=13r
AntiAlias=1
FontFace=Cambria
FontColor=255,255,255
Text=%1/100

[User]
Meter=String
X=30
Y=32
FontColor=255,255,255
FontFace=Cambria
Text=%username%
I just used "Cambria" for the fonts. I also deleted "X=0" and "Y=0" because Rainmeter assumes those coordinates when none is give.
Sinon wrote:Lastly is it possible to create /"mock up" a window wiht the abilty to scroll
Not easily. There is no native "scrolling" feature with Rainmeter, but with some really complicated (and clever) code, you might be able to achieve some type of scrolling feature.


I think little skin is looking really good. Keep up the good work!

-Brian