Forums

OverviewV-Play 2 Support (Qt 5)Debug menu bar introduced with 2.7.1 › Reply To: Debug menu bar introduced with 2.7.1

OverviewV-Play 2 Support (Qt 5)Debug menu bar introduced with 2.7.1 › Reply To: Debug menu bar introduced with 2.7.1
#12781

Günther
V-Play Team

Hi spike!

I just wanted to inform you that the y-offset issue is now fixed. It will be included in the next V-Play update!

One change that is important to know, is that the GameWindow width and height properties can no longer be used to specify the size of the window’s content area. The width and height always refer to the total window size, which also includes the debug menu bar.

Instead, to specify the size of the content area, two new properties screenWidth and screenHeight should be used. These properties are available both for the GameWindow and App type.

To simulate a 960 x 640 px resolution in a desktop window, simply use:

GameWindow {

  screenWidth: 960  // replaces width: 960
  screenHeight: 640 // replaces height: 640

  // ...
}

 

The actual window height may then be bigger if the debug menu is used. But the content area will always have a height of 640 px.

Best,
Günther

 

  • This reply was modified 2 years, 5 months ago by  GT.

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