Jump to content
LaunchBox Community Forums

Hexxxer

Members
  • Posts

    133
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Hexxxer

  1. what is it returning there? a list? I can't check right now but if it is just a single genre you could try this.

    string Genre = Selectedgame.Genresstring.Replace(';', '')); 
    

    If it is a list of strings you can break it into an array using split

    string [] Genres = Selectedgame.Genresstring.Split(';'); 

    and then just call on Genre[0] to get the first genre.

     

    Again, can't test this ATM so it may not be 100% correct.

     

     

     

  2. As my first attempt at anything WPF programming related, I decided to try my hand at creating a custom star ratings tool.

    Install for use

    • Download HexControls.dll
    • place the file in the plugins folder in your theme
    • add the reference 
       xmlns:Hex="clr-namespace:HexControls;assembly=HexControls"

       

    Use in a Theme

    • In a Game view call
       <Hex:StarRating /> 
      • Pretty much it for the default use. The control will size to whatever space it is placed in.
      • This will get you a red star with white border for an on star and a black star with white border for an off star.Capture.thumb.PNG.399f409c649aefa0e768b28abd0b7b7e.PNG

    Advanced Use

    I've set up the control to allow users to do two things:

    • Modify the color properties for Star On/Star Off and their border
    • Modify two Star vectors layered on top of each other; this has been created to allow for more vibrant star designs using transparency.

    Properties:

    ColorOnStarOneFill - On Fill Color  for Star one
    ColorOnStarOneBorder -  On Border Color for Star One
    ColorOnStarTwoFill - On Fill Color for Star Two
    ColorOnStarTwoBorder -  On Border Color for Star Two

    ColorOffStarOneFill - Off Fill Color for Star One
    ColorOffStarOneBorder -  Off Border Color for Star One
    ColorOffStarTwoFill - Off Fill Color for Star Two
    ColorOffStarTwoBorder - Off Border Color for Star Two
                                          

    StarsMarginSize -  Margin Between Each star
    BorderStarOneSize - Size of the Border for Star One
    BorderStarTwoSize -  Size of the Border for Size Two

    So, using these settings

    <Hex:StarRating Panel.ZIndex="1000"
                                 Grid.Column="11"
                                 Grid.Row="1"
                                 Grid.ColumnSpan="10"
                                
                                 Grid.RowSpan="3"
                                 HorizontalAlignment="Left"
                                 VerticalAlignment="Top"
                                                
                                 ColorOnStarOneFill="#BBC49A6C"
                                 ColorOnStarOneBorder="#11111111"
                                 ColorOnStarTwoFill="#BBC49A6C"
                                 ColorOnStarTwoBorder="#11FFFFFF"
                                                
                                 ColorOffStarOneFill="Black"
                                 ColorOffStarOneBorder="White"
                                 ColorOffStarTwoFill="#66000000"
                                 ColorOffStarTwoBorder="White"
                                 StarsMarginSize="10"
                                 BorderStarOneSize="8"
                                 BorderStarTwoSize="20"
                                 SnapsToDevicePixels="True"/>

     

    Will give you a result like this.Capture2.PNG.c0513aa6431709b7bd1f434173e6d20f.PNG

    Pretty weird right? Well have a go and see what you can come up with.

    HexControls-0.5.zip

  3. I am fairly new to developing WPF apps and am trying to figure out how to send information from BigBox to a custom user control. 

    How do I send something like  {Binding SelectedGame.Favorite} to a custom user control from the XAML view?

  4. Codex Theme Demo

    A little and very loose demo of a per system theme I was working on last year shown on  a quick launchbox build I made up to show off the assets. Don't read into lack of game videos and such.

    The concept for this theme aims to replicate the box art design of each system, although, due to constraints on setting up custom views per system, it was more of an 'inspired by' the box art concept.

    I build quite a few assets for this theme from scratch including vectored Seals, Completed, Broken, Favorite and # of Player Icons, and themed backgrounds. I put it on hiatus as I felt it was better to wait for real support built into Launchbox rather than just replacing image elements on the fly.  If per-system themes becomes a thing in the next iteration of Launchbox I would be interested in continuing this theme and hope others from the community could join me in creating assets.

    Let me know what you all think.

    • Like 6
  5. On 2/22/2017 at 6:18 PM, Grila said:

    Be sure to add TargetNullValue={x:Null} to the binding also to avoid any problems if people have a system that you don't have a pointer for.

    Just out of curiosity, I have been messing around with this and wondering if it was possible to sub in a different image if one did not exist. I can't seem to find a clear way of doing this yet.

    Does anyone have any suggestions? 

  6. 6 minutes ago, alitanet said:

    Hi my pc is a laptop i7 4720hq 16 gb ram nvidia gtx 960m .I don't know what happens but when I use futurestate theme some emulators doesn't work good

     

    I am not sure what is going on here, do you know how many resources are being used by bigbox when the emulator starts ?

     

    @Jason Carr maybe could help here

  7. 7 hours ago, imdavid555 said:
      Hide contents

    Version 7.1

    System.ArgumentException: The root Visual of a VisualTarget cannot have a parent.
       at System.Windows.Media.CompositionTarget.SetRootVisual(Visual visual)
       at System.Windows.Media.CompositionTarget.set_RootVisual(Visual value)
       at (VisualTargetPresentationSource , Visual )
       at Meta.Vlc.Wpf.VisualTargetPresentationSource.set_RootVisual(Visual value)
       at (<>c__DisplayClass32_0 )
       at Meta.Vlc.Wpf.ThreadSeparatedImage.<>c__DisplayClass32_0.<LoadThreadSeparatedControl>b__0()
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at (<>c )
       at Meta.Vlc.Wpf.ThreadSeparatedImage.<>c.<get_CommonDispatcher>b__2_0()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

    Have been getting this error only with your theme (so far) in the latest version

    Unfortunately there is not a lot I can do at this point, I don't have a lot of things I can alter in terms of what could cause it from a theming stand point, there is nothing in futurestate that has not been done in other themes before. It's obvious the problem started after version 7.0  and has something to do with VLC but it does not seem to affect all users. I have not been able to replicate it on either of my 2 machines.

     

    • Like 1
  8. Updated to version 3.0 last night

     

    Fixed a few bugs and made it easier to drop in a custom theme. Should have a faster performance than previous iterations.

    I will be planning on adding a few custom replacement skins of my own design and also highlighting a skin that Scottad has created.

    • Like 5
  9. 1 hour ago, Jason Carr said:

    Alright guys, as I stated above, the first 7.1 beta is out. Here's the changelog so far:

    - Improvement: Resolved some performance issues with scrolling notes in Big Box

    - Improvement: Added a new VideoControl for Big Box custom themes (for more flexible use of custom video backgrounds and such)

    - Improvement: Changed the Documentation.pdf file to reflect the Big Box custom themes changes and additions for 7.0 and 7.1

    Per the scrolling notes, we discovered that they were causing some major delays when long notes were displayed in Big Box. It was the dynamic width calculations that were automatically being done by the XAML that were causing the delays. The solution isn't perfect because we're basically using a percentage width of the screen now instead of a proper dynamic calculation, so let me know if anyone is seeing incorrect widths for scrolling notes.

    The new VideoControl element was built for themes that currently use a MediaElement (such as @CriticalCid's CriticalZone theme to display the background video). The new control will properly switch between VLC and WMP per the user's settings which should result in some performance improvements since only one engine is used instead of two (at least when using VLC). Performance is better even on my souped up machine, so that's a win. However, theme creators will need to update their themes to use this new element; it won't happen automatically. The new element will also not be available in any previous versions, so it will require the beta. However, we hope to put out the official 7.1 version very soon. Documentation on the new VideoControl is available in the updated Documentation.pdf file. :)

    I will look at this and hopefully be able to update Futurestate soon.

    As a side note I noticed that VLC causes a green bar on the bottom of some videos it plays. VLC is known to cause the issue as explained in this post is explained here https://forum.videolan.org/viewtopic.php?t=130655

  10. I have had a lot of people report that the Futurestate theme has been suffering some major lag since the update. I have not witnessed it myself but asking people to turn off shadows on the wheels seemed to improve performance for some.

  11. 58 minutes ago, Scottad said:

    I called it retrostate. I haven't get any experience with video making so I wasn't planning to make one.

    I have just posted the images in the downloads section I can take the file down if you would rather it be submitted as a part of your skinpack

    Don't take it down, when I add it into the skin pack I'll put up a link or something at that time.

    • Like 2
  12. 51 minutes ago, Scottad said:

    Tested it with your new version (excellent work) it seem to be working well on all the different views.

    Screenshot1.jpg

    Screenshot2.jpg

    Screenshot3.jpg

    ScreenShot4.png

    screenshot7.jpg

    Awesome to see, do you have a name I can post it under? Are you going to add a custom video as well? I am planning to release some skins over my vacation break here and will add those with it.

    • Like 1
  13. 52 minutes ago, Scottad said:

    @Hexxxer I have made a skin for your theme (it's just alternative images) is it ok to put it in the downloads section for other people to use?

    screenshot1.jpg

    Great!

    Make sure it looks good one the version I posted yesterday (link is above). I changed the theme to not set transparency to the images so when someone put up a custom theme it would look how they expected.

    1 hour ago, alitanet said:

    Yes I used that versión, I removed 1.6 folder and I'm still having isues with the performance.I deactivated all transitions and now is a Little better

    How are other themes working? I don't see the slow down on either of my machines at this point so it is difficult to trouble shoot without others helping me. 

     

    8 hours ago, Nyny77 said:

    Super ! great work

    Thanks 

    Is the theme working for you now?

  14. 1 hour ago, alitanet said:

    Hello  I have the same problem , it's too slow .I'm using 7.0 versión and when big box opens the platform wheels are invisible until I touch the gamepad .My computer is a laptop i7 4720hq 16gb of ram and nvidia gtx960m. 

    did you try the version I posted above?

    Make sure you rename the old Futurestate theme folder and then copy the link above in. Let me know if this has any effect on the speed.

×
×
  • Create New...