Advertisement
Corvust

Inline Setting Bug

Nov 20th, 2018
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; https://gfycat.com/hugeunacceptableborer
  2.  
  3. ; ============================================================================================
  4.  
  5. ; [Metadata]
  6. ; Contains a brief description of this skin
  7.  
  8. ; ============================================================================================
  9.  
  10. [Metadata]
  11. Name=
  12. Author=
  13. Information=
  14. Version=
  15. License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
  16.  
  17. ; ============================================================================================
  18.  
  19. ; [Rainmeter]
  20.  
  21. ; ============================================================================================
  22.  
  23. [Rainmeter]
  24.  
  25. ; =====================================================================
  26.  
  27. ; General Settings
  28.  
  29. ; =====================================================================
  30.  
  31. SkinWidth=1000
  32. DefaultUpdateDivider=-1
  33.  
  34. ; =====================================================================
  35.  
  36. ; Skin Actions
  37.  
  38. ; =====================================================================
  39.  
  40. OnRefreshAction=[!Delay 5000][!UpdateMeterGroup DynamicStringWidth][!EnableMeasure SpacingIncrement][!UpdateMeasure SpacingIncrement]
  41.  
  42. ; =====================================================================
  43.  
  44. ; Custom Context Menu
  45.  
  46. ; =====================================================================
  47.  
  48.  
  49.  
  50. ; ============================================================================================
  51.  
  52. ; [Variables]
  53. ; Declaring relevant variables and @Include
  54.  
  55. ; ============================================================================================
  56.  
  57. [Variables]
  58.  
  59. ; =====================================================================
  60.  
  61. ; =====================================================================
  62.  
  63. StringRaw=This is a sample string.
  64. FinalWidth=180
  65. SpacingIncrement_Speed=0.25
  66.  
  67. ; =====================================================================
  68.  
  69. ; =====================================================================
  70.  
  71. [Style_String]
  72. FontFace=Bitstream vera sans
  73. FontSize=12
  74. FontColor=255,255,255
  75. AntiAlias=1
  76.  
  77. [Style_Inline]
  78. InlineSetting=CharacterSpacing | ([SpacingIncrement]) | ([SpacingIncrement])
  79. DynamicVariables=1
  80.  
  81. ; ============================================================================================
  82.  
  83. ; Measures, Scripts, and Plugins
  84.  
  85. ; ============================================================================================
  86.  
  87. ; =====================================================================
  88.  
  89. ; =====================================================================
  90.  
  91. [String_Source]
  92. Measure=String
  93. String=#StringRaw#
  94. OnChangeAction=[!UpdateMeterGroup DynamicStringWidth][!EnableMeasure SpacingIncrement][!UpdateMeasure SpacingIncrement]
  95.  
  96. ; =====================================================================
  97.  
  98. ; =====================================================================
  99.  
  100. [SpacingIncrement]
  101. Measure=Calc
  102. Formula=#CurrentSection#+#SpacingIncrement_Speed#
  103.     IfCondition=([String_Dummy:w]+#SpacingIncrement_Speed#) <= #FinalWidth#
  104.         IfTrueAction=[!Delay 500][!UpdateMeasure #CurrentSection#][!UpdateMeterGroup DynamicStringWidth]
  105.         IfFalseAction=[!DisableMeasure #CurrentSection#]
  106.     IfConditionMode=1
  107. DynamicVariables=1
  108. Disabled=1
  109. OnChangeAction=[!UpdateMeterGroup DynamicStringWidth]
  110.  
  111. ; ============================================================================================
  112.  
  113. ; Meters
  114.  
  115. ; ============================================================================================
  116.  
  117. ; =====================================================================
  118.  
  119. ; [PlaceHolder]
  120. ; Temporary meter to allow this skin to be loaded
  121.  
  122. ; =====================================================================
  123.  
  124. [String_Dummy]
  125. Group=DynamicStringWidth
  126. MeterStyle=Style_String | Style_Inline
  127. Meter=String
  128.     MeasureName=String_Source
  129.     y=(-#ScreenAreaHeight#)
  130.     Text=%1
  131.     SolidColor=255,0,0,127
  132.  
  133. [String_Display]
  134. Group=DynamicStringWidth
  135. MeterStyle=Style_String | Style_Inline
  136. Meter=String
  137.     MeasureName=String_Source
  138.     Text=%1
  139.     SolidColor=0,255,0,127
  140.  
  141. ; =====================================================================
  142.  
  143. ; =====================================================================
  144.  
  145. [String_Display_Width]
  146. Group=DynamicStringWidth
  147. MeterStyle=Style_String
  148. Meter=String
  149.     y=0R
  150.     Text=Width: [String_Dummy:w]
  151. DynamicVariables=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement