Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   double-layered(locked) GuiDrawingPanel? (https://forums.graalonline.com/forums/showthread.php?t=75222)

HolySheepy 07-10-2007 05:05 PM

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)

Rapidwolve 07-10-2007 05:12 PM

I've never even used a GuiDrawingPanel, screenies?

HolySheepy 07-10-2007 09:25 PM

its just a guicontrol where you can draw on with drawImage(), drawImageRectanlge() etc Oo

Rapidwolve 07-10-2007 10:52 PM

Screenies? hehe

HolySheepy 07-10-2007 11:18 PM

oh come on ffs
it shows what you ****in draw on it, got that? nothing else

zokemon 07-11-2007 03:14 AM

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?

Angel_Light 07-11-2007 06:58 AM

in the attributes for it use layers = #; 0 = below player, 1 = same layer as player, 3+ above player

HolySheepy 07-11-2007 09:41 AM

Quote:

Originally Posted by zokemon (Post 1327947)
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 (Post 1328063)
in the attributes for it use layers = #; 0 = below player, 1 = same layer as player, 3+ above player

thats not what im talking about

zokemon 07-11-2007 09:57 AM

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?


All times are GMT +2. The time now is 09:03 PM.

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