Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Feature request
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #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
  #2  
Old 10-21-2014, 05:53 PM
Inari Inari is offline
Registered User
Join Date: Sep 2014
Posts: 47
Inari is on a distinguished road
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.
Reply With Quote
  #3  
Old 10-21-2014, 07:04 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
Quote:
Originally Posted by Inari View Post
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
__________________
MEEP!
Reply With Quote
  #4  
Old 10-21-2014, 07:27 PM
Inari Inari is offline
Registered User
Join Date: Sep 2014
Posts: 47
Inari is on a distinguished road
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
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 07:36 AM.


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