Hey there,
I'd love to have these two functions for the
GuiDrawingPanel:
PHP Code:
//an addition to GuiDrawingPanel.maskimage(...)
GuiDrawingPanel.maskimagepart(int, int, int, int, int, int, str, str) - draws an image (x,y,partx,party,partw,parth,filename) on top with a special mask operation (add or multiply)
//an extension to GuiDrawingPanel.drawimage(), GuiDrawingPanel.drawimagestretched(), ....
GuiDrawingPanel.drawimage(...).rgb = {float, float, float} - 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!