Jump to content
LaunchBox Community Forums

Grila

Members
  • Posts

    590
  • Joined

  • Last visited

  • Days Won

    29

Posts posted by Grila

  1. Playtime Tracker

    View File

    New Version 1.4

    Removed "Reset Playtime" function from BigBox as requested by @klepp0906 and @Blazer

    New Version 1.3

    Added a visual playtime setter/editor

    New Version 1.2

    Fixed another string error that would sometimes cause the playtime to not record. Thanks @TheNewClassics. Everything should work now but please don't hesitate to let me know if any other problems arise.

    New Version 1.1

    Please update to the new version. I caught a string error that would prevent any playtime from going over 23 hours. The new version will keep all your game's previous playtime intact. Also, you can now reset a game's playtime in LB from the selected games right click menu (@Krakerman).

     

    Drop the .dll in your LaunchBox\Plugins directory and start tracking how long you play your games. The playtime is recorded as a custom field so it is visible in LaunchBox on the game details bar and in BigBox in the game details. See the screenshots for reference.

    Known Issues:


     

    • Like 3
  2. 31 minutes ago, viking said:

    Hi all !
    Back with a new challenge for all code master! ?

    I want to find a way to adjust the RatingStar color with hex code.

     

    Actually, I'm using this piece of code:

    
    <StackPanel  Grid.Column="2" Grid.Row="10">
                    <TextBlock x:Name="Stars" Visibility="Collapsed">
                        <TextBlock.Text>
                            <MultiBinding StringFormat="{}pack://siteoforigin:,,,/Themes/Colorful/Colorful_img/Stars/{0:F1}.png">
                                <Binding Path="ActiveGame.CommunityOrLocalStarRating" />
                            </MultiBinding>
                        </TextBlock.Text>
                    </TextBlock>
                    <Image Source="{Binding Text, ElementName=Stars}" x:Name="RatingStars" Grid.Column="2" Grid.Row="9" HorizontalAlignment="Center" VerticalAlignment="Stretch" Stretch="Fill" RenderOptions.BitmapScalingMode="HighQuality" />
    </StackPanel>

    It works very well with its 52 PNG images. But stars colors are fixed in image. No way to change them on the fly!

     

    IDEA 01 - Binding Rating to a ScaleX on a Rectangle. Like a loading bar, with a stars PNG overlay.
    But my research seems to show that it's impossible. You confirmed?
    In addition, I will need a converter: To transform the notes, from a scale   0.0> 5.0  to a scale   0.0> 1.0    And that, I still dont know how to do! (Shame)

    IDEA 02 - Use DataTrigger to change numeric note, into text with a stars picto custom font.
    If A=EmptyStar , B=HaltStar , C=FullStar ---- for exemple, a note of  2.5 > CCBAA
    Problem : It is very limited in design and precision side. In addition, I cant have a working prototype.

     

    In summary, I can not make my ideas work. They must be bad!
    If you had to do that, how would you do it? Ideas? Examples?
    @Grila @eatkinola @Jason Carr ... and all code master : THX A LOT ?

    Look at my GPDWin theme in the WheelGamesView. I did something similar but with a gradient so it may help you with what you need.

    • Thanks 1
  3. 2 minutes ago, Undertherainbow said:

    @Grila Might depend what u look as source of origin. From origin of app in visual studio its where solution is located. Not the exe which is bundled the theme with.

     

    Site of Origin Pack URIs

    The pack URI for a site of origin file uses the following authority and path:

    • Authority: siteoforigin:///.

    • Path: The name of the site of origin file, including its path relative to the location from which the executable assembly was launched.

    The following example shows the pack URI for a XAML site of origin file, stored in the location from which the executable assembly is launched.

    pack://siteoforigin:,,,/SiteOfOriginFile.xaml

    The following example shows the pack URI for a XAML site of origin file, stored in subfolder that is relative to the location from which the application's executable assembly is launched.

    pack://siteoforigin:,,,/Subfolder/SiteOfOriginFile.xaml

     

  4. 40 minutes ago, Undertherainbow said:

     

    This is troubling me. If i may point out that it is not "relative path" but an absolute?

    relative path would be

    <Image Source="/Themes/CleanHardware/img/white-corner.png" RenderOptions.BitmapScalingMode="HighQuality" />

    relative to the starting location of app (solution)

    So in case of actual themes it would be

    <ResourceDictionary Source="/Styles/HorizontalListBoxStyle.xaml" />

    relative path is much more convenient.

     

    https://docs.microsoft.com/en-us/dotnet/framework/wpf/app-development/pack-uris-in-wpf

    It's not an absolute path, it's relative to where Launchbox is installed.

    Say you have two installs:

    C:\Launchbox

    Z:\Foo\Bar\Launchbox

     

    Therefore the code you're having trouble understanding (<Image Source="pack://siteoforigin:,,,/Themes/CleanHardware/img/white-corner.png" RenderOptions.BitmapScalingMode="HighQuality" />) translates to this on each install and the theme works as intended:

    C:\Launchbox\Themes\CleanHardware\img\white-corner.png

    Z:\Foo\Bar\Launchbox\Themes\CleanHardware\img\white-corner.png

     

    An absolute path would be the following (and would only work for the first install location, the second would fail to load the image):

    <Image Source="C:\Launchbox\Themes\CleanHardware\img\white-corner.png" RenderOptions.BitmapScalingMode="HighQuality" />

     

    It's just the way you have to do it with WPF. WPF has many quirks and nuances that don't make much sense, but must be followed.

  5. 4 hours ago, isilkin said:

    Thank you once again for your help. I am learning xaml slowly. Now I am wondering which file or property is responsible for the boxart border when it is highlighted and when it is not. Here is my screenshot.

    Screen Shot 2018-12-29 at 12.38.54 AM.png

    That property is in the BoxListBoxItemStyle.xaml inside the Styles directory. You should be able to spot the color hex codes pretty easily.

  6. 15 hours ago, isilkin said:

    Hi, everyone!

    I am new to bigbox themes though I do have experience coding for websites. Here is my question:

    How do I change the font color and size for where it says the Legend of Zelda. (see below). I am using the same view as in the picture. There are so many xaml files that I don't know which one I need to edit and what is the name of the property that I need to change.

    Thank you.

    boxgameview.thumb.png.336beeb99f97a6afb83583afd5bc3431.png

    BoxesGamesView.xaml -> line 44

    It's wrapped in a viewbox though, so if you want to change the size you'll need to delete the viewbox.

  7. 28 minutes ago, wallmachine said:

    but that wouldn't work if you slightly place the not selected logos behind the selected game like i have done below?

     

    image.thumb.png.eedf0f07297ca5fd9a2e598eda793b47.png

    I believe it would if you tightened up the opacity mask...

    EDIT:

    Ahh, I see what your getting at. The second logo is actually behind the selected one. That is impossible with the current implementation of the wheel.

  8. 46 minutes ago, wallmachine said:

    @Jason Carr you mentioned that 'some themes do it with the wheels already' what do you mean by this? are you able to explain a bit further, examples?

    My Fundamental theme has the wheel opacity effect achieved with an opacity mask for the wheel. The selected game is 100, and it drops to zero in both directions (up and down).

    gamewheel2.png.bd273dbfb38c975d67c7544078756ef9.thumb.png.dfa44d09476e4b857c6841619a2bd434.png

    • Like 2
  9. 12 hours ago, bundangdon said:

    Thanks a lot for the fast reply! Actually, if you remove that part of the code, it also removes the box completely. However, I found a way to remove the effect and still keep the box-art, by inserting "0" for all of the values (Value="0"). Going forward, it would be nice if themes used the ListBoxScrollCenter plugin since it centers the text in the same way wheel-art is centered in other views. I've tried to implement it with this theme and other similar themes without any success so far.

    I've installed it for you @bundangdon

    Replace the corresponding file in the Unified Redux\Views folder with this one:

    TextListView.xaml

    Put the plugin DLL (unblock as needed) in the Unified Redux\Plugins directory:

    ListBoxScrollCenter.dll

     

    Here's a quick video of it working:

     

    • Like 2
  10. Hey...I feel slighted ??

    Joking. But honestly I can say that the current BigBox grid view lacks some very important features, mainly a way to denote the selected item (like the horizontal box view). In it's current state, all you can do is zoom the selected item. I've been meaning to address the grid view with a plugin to make it better, but have been caught up in other things.

  11. Since the Windows 10 redesign, Microsoft has a new brush in it's Universal Windows Platform (UWP) called Acrylic. If you're running Windows 10 and have transparency effects enabled, I'm sure you've noticed Acrylic, most notably on the Start Menu and the Notification Center.

    Since Acrylic isn't available in WPF, I found a library called BlurryControls on GitHub that mimics the behavior. Here's a little example of it in LaunchBox.

     

    • Like 12
  12. 12 hours ago, Jason Carr said:

    Okay. I'm guessing the best solution then is for Grila to make sure that no default colors are being used. That's my guess at least without looking at any code.

    It looks like it's changing the background of the sidebar. In the code it's set to Black, 0.3 opacity.

    I guess I'm not sure what you mean about default colors...or how/why a plugin would have any effect on that.

  13. I got it...

    I have it set to make the selected item's font semi-bold. When you select a top level item like that, it applies the font-weight to the whole list. I remember I was trying to overcome this when I was making the theme, but never figured it out.

    So...that's the problem. And now, I'm back to the drawing board to see if I can solve it.

  14. 6 minutes ago, kmoney said:

    @Grila I am getting a weird issue that I noticed today. When I click on Consoles on my platform category menu it blurs the rest of the platform names out a bit and kinda changes the font. Every other platform or platform category I click on the text and font is normal. I have tried changing opacity as well but did not make a difference. Here is 2 images and one shows normal and other shows blurred text. Any opinion on what might be causing this?

     

     

     

     

    Blurred Text.jpg

    Correct Text.jpg

    That is weird, I'll have a look at it tomorrow sometime and see if I can replicate the issue. 

    • Thanks 1
  15. A little update and I think this thing is pretty well polished off now. On to my next project...

    v1.3

    • The background image was re-named and chromatically adjusted a bit, you may need to adjust the brightness to suit your needs with the Fade Background slider in LaunchBox Options\Images\Default Background
    • Got rid of some unneeded images that I left in there from the initial development
    • Rounded the scrollbars (@spektor56)
    • Added margins to scrollbars (@Kevin_Flynn)
    • Like 6
×
×
  • Create New...