My problem is that when the skin gets scaled the width is correct, positioning too but the height of the entire skin is the same. This height is not declared by default but build up from meters.Yincognito wrote: ↑June 25th, 2023, 3:05 pm I'm not familiar with how the actual code looks like, but I don't think there's a need to multiply the skin height by the scale variable, since the TM already does that and you'll end up having the same issue. There is no problem if your skin doesn't have a static value in relation to its contents, the TM scaling works the same regardless. The key is to not have the meter positioning based on an already scaled value.
So, when I said "static" I meant "not scaled". This means that you can use a dynamic dimension (like the one based on the contents), as long as it's not dynamic because of scaling (like the one you get by using already scaled [Background:WH] as factors in positioning). To produce the correct results, the TM expects the values it works with to be unscaled (or original), irrespective if they are dynamic due to some other reason besides scaling.
(Meters are shown via lua code)
Rainmeter Code:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
DynamicVariables=1
Group=ashuramaru
; Backgrounds
Background=#@#\images\backgrounds\#background#_blank.png
BackgroundMode=3
BackgroundMargins=0,34,0,14
; Actions
OnRefreshAction=[!CommandMeasure "Script" "Statistics_Handler('network') ; Statistics_Handler('processor') ; Statistics_Handler('graphics') ; Statistics_Handler('system') ; Statistics_Handler('drives')"]
OnUpdateAction=[!CommandMeasure "Script" "Temperature_CPU() ; Temperature_GPU()"]
RightMouseDownAction=[!CommandMeasure "Script" "ConfigActive_Toggle('#ROOTCONFIG#\\control\\context', 'context_menu.ini', '-1')"]
[MetaData]
Name=Statistics - Connected
Information=Skin which is displaying all usage information from the pc sensors in connected style.
Author=Kurou
[Variables]
;###################
; Imports
;###################
; Variables
@Include_Variables_Customization=#@#\variables\customization.inc
@Include_Variables_Settings=#@#\variables\settings.inc
; Styles
@Include_Style_String=#@#\styles\strings.inc
@Include_Style_Graphs=#@#\styles\graphs.inc
; Measures
@Include_Measures_Network=#@#\addons\statistics\measures\network.inc
@Include_Measures_Processor=#@#\addons\statistics\measures\#import_sensor_app#\processor.inc
@Include_Measures_Graphics=#@#\addons\statistics\measures\#import_sensor_app#\graphics.inc
@Include_Measures_System=#@#\addons\statistics\measures\#import_sensor_app#\system.inc
@Include_Measures_Drives=#@#\addons\statistics\measures\drives.inc
;###################
; Measures
;###################
[Script]
Measure=Script
ScriptFile=#@#\lua\statistics.lua
[Measure_TranslucentRM]
Measure=Plugin
Plugin=TranslucentRM
Type=#background_effect#
Border=#background_border#
Taskbar=0
Corner=#background_corner#
[Measure_ConfigActive]
Measure=Plugin
Plugin=ConfigActive
;###################
; Meters
;###################
[Background]
Meter=Shape
Shape=Rectangle 0, 0, 200, 1 | Fill Color 0, 0, 0 | StrokeWidth 0 | Stroke Color 0,0,0
X=0
Y=0
; Network
@Include_Network=#import_first#
[Seperator_1]
Meter=Image
Y=20r
; Processor
@Include_Processor=#import_second#
[Seperator_2]
Meter=Image
Y=20r
; Graphics
@Include_Graphics=#import_third#
[Seperator_3]
Meter=Image
Y=20r
; System
@Include_System=#import_fourth#
[Seperator_4]
Meter=Image
Y=20r
; Drives
@Include_Drives=#import_fifth#
[Loading]
Meter=String
MeterStyle=Statistics_Header
FontSize=20
Text=Loading...
X=(200 / 2)
Y=15r
Code: Select all
[Network_Header]
Meter=Image
ImageName=#@#\images\backgrounds\#background#_header.png
W=200
X=0r
Y=0r
Hidden=1
[Network_Title]
Meter=String
MeterStyle=Statistics_Header
Text=Network
X=(200 / 2)
Y=7r
Hidden=1
[Network_Header_Spacer]
Meter=Image
Y=5r
; Ping
[Network_Ping_Label]
Meter=String
MeterStyle=Statistics_Left
Text=Latency
X=5
Hidden=1
[Network_Ping_Value]
Meter=String
MeasureName=Measure_Ping
MeterStyle=Statistics_Right
Text=%1
Postfix=" ms"
X=(200 - 2)
Y=0r
Hidden=1
[Network_Ping_Bar]
Meter=Bar
MeasureName=Measure_Ping
MeterStyle=Statistics_Bar
W=(200 - 10)
H=#bar_height#
X=5
Hidden=1
[Network_Ping_Graph_Background]
Meter=Shape
Shape=Rectangle 0, 0, (200 - 10), 40 | Fill Color 20, 20, 20, 150 | StrokeWidth 0.2 | Stroke Color 250, 250, 250, 150
X=0r
Hidden=1
[Network_Ping_Graph]
Meter=Line
MeterStyle=Statistics_Line
MeasureName=Measure_Ping
AutoScale=0
Hidden=1
[Network_Ping_Graph2]
Meter=Histogram
MeterStyle=Statistics_Histogram
MeasureName=Measure_Ping
AutoScale=0
Hidden=1
[Network_Ping_Graph_Spacer]
Meter=Image
Hidden=1
; Upload
[Network_Upload_Label]
Meter=String
MeterStyle=Statistics_Left
Text=Upload
X=5
Hidden=1
[Network_Upload_Value]
Meter=String
MeasureName=Measure_Upload
MeterStyle=Statistics_Right
Text=%1
Postfix="B/s"
NumOfDecimals=1
AutoScale=1k
X=(200 - 2)
Y=0r
Hidden=1
[Network_Upload_Bar]
Meter=Bar
MeasureName=Measure_Upload
MeterStyle=Statistics_Bar
W=(200 - 10)
H=#bar_height#
X=5
Hidden=1
[Network_Upload_Graph_Background]
Meter=Shape
Shape=Rectangle 0, 0, (200 - 10), 40 | Fill Color 20, 20, 20, 150 | StrokeWidth 0.2 | Stroke Color 250, 250, 250, 150
X=0r
Hidden=1
[Network_Upload_Graph]
Meter=Line
MeterStyle=Statistics_Line
MeasureName=Measure_Upload
AutoScale=0
Hidden=1
[Network_Upload_Graph2]
Meter=Histogram
MeterStyle=Statistics_Histogram
MeasureName=Measure_Upload
AutoScale=0
Hidden=1
[Network_Upload_Graph_Spacer]
Meter=Image
Hidden=1
; Download
[Network_Download_Label]
Meter=String
MeterStyle=Statistics_Left
Text=Download
X=5
Hidden=1
[Network_Download_Value]
Meter=String
MeasureName=Measure_Download
MeterStyle=Statistics_Right
Text=%1
Postfix="B/s"
NumOfDecimals=1
AutoScale=1k
X=(200 - 2)
Y=0r
Hidden=1
[Network_Download_Bar]
Meter=Bar
MeasureName=Measure_Download
MeterStyle=Statistics_Bar
W=(200 - 10)
H=#bar_height#
X=5
Hidden=1
[Network_Download_Graph_Background]
Meter=Shape
Shape=Rectangle 0, 0, (200 - 10), 40 | Fill Color 20, 20, 20, 150 | StrokeWidth 0.2 | Stroke Color 250, 250, 250, 150
X=0r
Hidden=1
[Network_Download_Graph]
Meter=Line
MeterStyle=Statistics_Line
MeasureName=Measure_Download
AutoScale=0
Hidden=1
[Network_Download_Graph2]
Meter=Histogram
MeterStyle=Statistics_Histogram
MeasureName=Measure_Download
AutoScale=0
Hidden=1
[Network_Download_Graph_Spacer]
Meter=Image
Hidden=1
; Traffic
[Network_Traffic_Label]
Meter=String
MeterStyle=Statistics_Left
Text=Traffic
X=5
Hidden=1
[Network_Traffic_Value]
Meter=String
MeasureName=Measure_Traffic
MeterStyle=Statistics_Right
Text=%1
Postfix="B"
NumOfDecimals=1
AutoScale=1k
X=(200 - 2)
Y=0r
Hidden=1
[Network_Traffic_Bar]
Meter=Bar
MeasureName=Measure_Traffic
MeterStyle=Statistics_Bar
W=(200 - 10)
H=#bar_height#
X=5
Hidden=1
[Network_Traffic_Graph_Background]
Meter=Shape
Shape=Rectangle 0, 0, (200 - 10), 40 | Fill Color 20, 20, 20, 150 | StrokeWidth 0.2 | Stroke Color 250, 250, 250, 150
X=0r
Hidden=1
[Network_Traffic_Graph]
Meter=Line
MeterStyle=Statistics_Line
MeasureName=Measure_Traffic
AutoScale=
Hidden=1
[Network_Traffic_Graph2]
Meter=Histogram
MeterStyle=Statistics_Histogram
MeasureName=Measure_Traffic
AutoScale=0
Hidden=1
[Network_Traffic_Graph_Spacer]
Meter=Image
Hidden=1