Graal Forums

Graal Forums (http://forums.graalonline.com/forums/index.php)
-   Feature request (http://forums.graalonline.com/forums/forumdisplay.php?f=194)
-   -   GuiDrawingPanel functions (http://forums.graalonline.com/forums/showthread.php?t=134269637)

callimuc 10-21-2014 05:50 PM

GuiDrawingPanel functions
 
Hey there,

I'd love to have these two functions for the GuiDrawingPanel:

Graal Script Code:

  //an addition to GuiDrawingPanel.maskimage(...)
GuiDrawingPanel.maskimagepart(intintintintintintstrstr) - draws an image (x,y,partx,party,partw,parth,filenameon top with a special mask operation (add or multiply)
  
//an extension to GuiDrawingPanel.drawimage(), GuiDrawingPanel.drawimagestretched(), ....
GuiDrawingPanel.drawimage(...).rgb = {floatfloatfloat} - the RGB of the drawn image can be changed 

of course they should be available clientside, as well as on serverside, so when saving images both would work.

Why those could be useful? When creating images or templates, you dont need to use several sprites when you're about to mask an image, you can just use one template. Also, you can use only one template of an image when drawing it into the GuiDrawingPanel and just change it's color via script. That way, when you're making an editor or similar stuff (let's say for images, signs, customes etc) where players can edit stuff on, you could change the image colors via script without having it limited to only a few colors with thousands of template images staff had to create earlier. Gives us a bigger variety of scripts to create!

Inari 10-21-2014 06:53 PM

As a round-about way to maskimagepart, you could create a TDrawingPanel, draw onto that with drawimagestretched, saveimage it and use the file created with maskimage. But yeah it would be nicer to have that option directly.

callimuc 10-21-2014 08:04 PM

Quote:

Originally Posted by Inari (Post 1732200)
As a round-about way to maskimagepart, you could create a TDrawingPanel, draw onto that with drawimagestretched, saveimage it and use the file created with maskimage. But yeah it would be nicer to have that option directly.

also thought of that but i dont really like the idea about it, should be something default

Inari 10-21-2014 08:27 PM

Yeah, not saying it shouldn't be. Just saying, if you need that it might be fine to do it in that way for now, since it might take a while till it is added


All times are GMT +2. The time now is 11:57 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright (C) 1998-2008 Linux cyberjoueurs All Rights Reserved.