Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-19-2010, 03:50 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
it's been a while, but are screenwidth and GraalControl.width essentially the same thing? or does screenwidth/height always return the monitor resolution regardless of the size of the game window?
__________________

Last edited by salesman; 09-19-2010 at 04:03 PM..
Reply With Quote
  #2  
Old 09-19-2010, 04:03 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by salesman View Post
it's been a while, but are screenwidth and GraalControl.width essentially the same thing? or do screenwidth/screenheight always return the monitor resolution regardless of the size of the game window?
It's possible they are the same thing, but I've been using GraalControl.width ever since we got it. Maybe screenwidth returns the width of the Graal window (GraalControl possibly being smaller). Not sure about that though.
Reply With Quote
  #3  
Old 09-19-2010, 04:09 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Crow View Post
It's possible they are the same thing, but I've been using GraalControl.width ever since we got it. Maybe screenwidth returns the width of the Graal window (GraalControl possibly being smaller). Not sure about that though.
GraalControl.width/height usually refer to the size of the Graal window unless you have changed the width/height of the GraalControl so that you can draw something outside of the GraalControl but still in the main Graal window (by adding child controls to GUIContainer), i.e. a chat box at the bottom of the screen that doesn't overlay on the level viewport.
__________________
Skyld
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.