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 07-10-2007, 05:05 PM
HolySheepy HolySheepy is offline
Registered User
Join Date: Apr 2007
Posts: 68
HolySheepy is on a distinguished road
double-layered(locked) GuiDrawingPanel?

uhm would it be possible to do this or add it?

i noticed if you draw on a GuiDrawingPanel and draw something over you can see the first thing drawn, then 0.x seconds after the second etc

can there be something like 2 layers or a lock function?

like you "lock" it, now it stays what it was when you locked it and what you draw is drawn in the "background", when you unlock it, it updates and shows the new "surface"(that was drawn on)

because i would like making a system that uses 2 guidrawingpanels and has to draw on the second one that is in the background, the change what is in the background and draw the same things on the other one again(to keep it synchronized)
Reply With Quote
  #2  
Old 07-10-2007, 05:12 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
I've never even used a GuiDrawingPanel, screenies?
Reply With Quote
  #3  
Old 07-10-2007, 09:25 PM
HolySheepy HolySheepy is offline
Registered User
Join Date: Apr 2007
Posts: 68
HolySheepy is on a distinguished road
its just a guicontrol where you can draw on with drawImage(), drawImageRectanlge() etc Oo
Reply With Quote
  #4  
Old 07-10-2007, 10:52 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Screenies? hehe
Reply With Quote
  #5  
Old 07-10-2007, 11:18 PM
HolySheepy HolySheepy is offline
Registered User
Join Date: Apr 2007
Posts: 68
HolySheepy is on a distinguished road
oh come on ffs
it shows what you ****in draw on it, got that? nothing else
Reply With Quote
  #6  
Old 07-11-2007, 03:14 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
TDrawingPanels are my favorite! I use them for everything ^_^

To OP: I don't see why you can't just use one GuiDrawingPanel as a background and another as the foreground?
__________________
Do it with a DON!
Reply With Quote
  #7  
Old 07-11-2007, 06:58 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
in the attributes for it use layers = #; 0 = below player, 1 = same layer as player, 3+ above player
__________________
Deep into the Darkness peering...
Reply With Quote
  #8  
Old 07-11-2007, 09:41 AM
HolySheepy HolySheepy is offline
Registered User
Join Date: Apr 2007
Posts: 68
HolySheepy is on a distinguished road
Quote:
Originally Posted by zokemon View Post
TDrawingPanels are my favorite! I use them for everything ^_^

To OP: I don't see why you can't just use one GuiDrawingPanel as a background and another as the foreground?
because then i have to draw everything twice( with the second drawing having a delay because you can only draw that after you switched them)
and i guess 2 drawingpanels showing their stuff will need more resources o.o
or give me a function to access the things drawn on the panel :/(like an array or something)

Quote:
Originally Posted by Angel_Light View Post
in the attributes for it use layers = #; 0 = below player, 1 = same layer as player, 3+ above player
thats not what im talking about
Reply With Quote
  #9  
Old 07-11-2007, 09:57 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
It's still hard for me to follow what you are trying to do, sorry.

Why can't you just script your own array and when ever something is changed (not when something is appended) just clearall() and redraw it all?
__________________
Do it with a DON!
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 02:54 PM.


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