Forums

OverviewV-Play 1 Support › Game Network Scores with Floating Point Values?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6660

    hoenic07

    Hi!

    In my ski jumping game a game score is for example 123.45 meters. Now is it possible to let the game network display this value? By default this would be converted to 123… This is not accurate enough for my game, as many players would score the same values.

     

    Multiplying by 10 or 100 is also no option, because it does not look very nice and would be confusing.. Also would it be possible to display a ‘m’ after the score?

    • This topic was modified 4 years, 5 months ago.
    #6662

    Alex
    V-Play Team

    Hi,

    you can create a custom leaderboardItemDelegate and use is instead of the default one. The easiest way would be to copy the source code of the default item and change it like you want.
    You can find the default item hereĀ <Path to your V-PlaySDK>\Desktop\V-PlaySDK\qml\VPlay\gamenetwork\LeaderboardItemDelegate.qml

    When you created e.g. a MyLeaderBoardItem.qml you can use it in the VPlayGameNetworkView like this:

    VPlayGameNetworkView {
      id: gameNetworkView
    
      leaderboardItemDelegate: MyLeaderBoardItem{}
    
      // ...    
    }

    Cheers,
    Alex

     

     

    #6663

    hoenic07

    Thanks! That works perfect!

    Naturally the correct LeaderbordItemDelegate.qml is available here: <Path>\VPlay-SDK\Desktop\V-PlaySDK\daily\qml\VPlay\gamenetwork\gnView

     

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support