Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 4.50 average. Display Modes
  #1  
Old 05-05-2011, 03:45 AM
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 cbk1994 View Post
The problem with a highlight is probably because GraalControl's y is not zero (the trial bar at the top moves it down). This has already been reported but apparently not fixed.
I would not consider this a problem. The GraalControl is movable, therefore it is unwise to assume that it's X and Y will be zero. It's not hard to use relative positioning, or even just saving the position of the control before moving it if you need to refer back to it.

You can position things independently of GraalControl by making them child objects of GUIContainer I think.
__________________
Skyld
Reply With Quote
  #2  
Old 05-05-2011, 03:48 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Skyld View Post
I would not consider this a problem. The GraalControl is movable, therefore it is unwise to assume that it's X and Y will be zero. It's not hard to use relative positioning, or even just saving the position of the control before moving it.
It's a problem because it's not documented and it didn't happen in v5. From what I understand about it, it's also a problem because he's drawing on the tile layer, therefore the coordinates should be relevant to tiles. The only way to fix it would be to add GraalControl.y / 16 to the y you're drawing at, which is nasty if GraalControl's y is not a multiple of 16.

EDIT: This may not be the bug I'm thinking of—it seems to be the same one Tig was having with his level editor, but I thought it was fixed.
__________________
Reply With Quote
  #3  
Old 05-05-2011, 03:55 AM
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 cbk1994 View Post
It's a problem because it's not documented and it didn't happen in v5. From what I understand about it, it's also a problem because he's drawing on the tile layer, therefore the coordinates should be relevant to tiles. The only way to fix it would be to add GraalControl.y / 16 to the y you're drawing at, which is nasty if GraalControl's y is not a multiple of 16.
Probably better to use things like worldx() and worldy() for that, perhaps with GraalControl.globaltolocalcoord() if needed, so that you do not need to really worry about whether the GraalControl's position is a multiple of 16 or not.
__________________
Skyld
Reply With Quote
Reply

Tags
graal v6, mac


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 10:29 PM.


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