DudeAwesome Posted March 5, 2014 Share Posted March 5, 2014 Is it possible to get a function to get the resolution of a window? like System:Print(App.window:GetSize()) Console: Vec2(1024, 768) I dont like to save the w/h values from Window:Create() for each window Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 5, 2014 Share Posted March 5, 2014 You can use context->GetHeight() or window->GetClientHeight(). And of course also for width. Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted March 5, 2014 Author Share Posted March 5, 2014 ähm why you know this and why this is not in the documentation or I´m blind again? Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.