(09-08-2020, 09:19 PM)FF7CloudsNobody Wrote: Ok, so I figured out my initial problem: PlayNite themes do not allow for custom styles in the pthm file so it doesn't load anything outside what the pthm saves, got around that by adding my code into the theme directly. Now the issue is that Sc_Total is returning the default 0 when there are achievements, and none of the other int resources are reading correctly. Here's my git for you to look and see if I am doing something wrong:First, there is a problem with plugin variables for ProgressBar.
With the new plugin version, you must use varible with "double" in name for using in ProgressBar.
Next, I tested with the good variables.
There is always a problem.
If I delete this, it works:
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ProgressBar}">
<Border BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{DynamicResource ControlCornerRadius}">
<Border.BorderBrush>
<SolidColorBrush Color="#5555CDFF" Opacity="0"/>
</Border.BorderBrush>
<Grid SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
<Rectangle Fill="{TemplateBinding Background}" RadiusY="4" RadiusX="4" />
<Rectangle x:Name="COPY_Track" Margin="0" RadiusY="4" RadiusX="4"/>
<Decorator x:Name="COPY_Indicator" HorizontalAlignment="Left" VerticalAlignment="Stretch">
<Grid>
<Rectangle Fill="{TemplateBinding Foreground}" RadiusY="4" RadiusX="4" />
<Grid x:Name="Animation" Visibility="Hidden">
<Rectangle Fill="{TemplateBinding Background}" Margin="0,0,50,0">
</Rectangle>
<Rectangle Fill="{TemplateBinding Background}" RenderTransformOrigin="1, 0" Margin="50,0,0,0">
</Rectangle>
</Grid>
</Grid>
</Decorator>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
I updated the wiki for more information.
https://github.com/Lacro59/playnite-succ...stom-theme