View Single Post
  #1  
Old 10-21-2014, 04:50 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
GuiDrawingPanel functions

Hey there,

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

PHP 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!
__________________
MEEP!
Reply With Quote