Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,287
Reaction score
1,924
First Language
English
Primarily Uses
RMMV
Hi, I was wondering if there was some kind of JS function that can gray out an icon? I currently have it so that the icons for unlearned skills (in a skill tree) have lowered opacity (i.e. semi-transparent). This is done via the changePaintOpacity() function. However, the visual difference between icons of learned and unlearned skills isn't distinct enough, imo. That's why I'd prefer to just have the icons grayed out (grayscale), if possible. Any help is greatly appreciated, ty!
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,291
Reaction score
1,789
First Language
Portuguese - Br
Primarily Uses
RMMZ
Hi there!

Is it not an option for you to have another Icon set image, all grayed out?
So, before drawing the icon, you check if the skill is learned or not. If learned you use the default icon set image, otherwise you use the grayed-out image to draw the icon.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,785
Reaction score
1,632
First Language
English
Primarily Uses
RMMV
Is it not an option for you to have another Icon set image, all grayed out?
He's asking in regards to his post in this thread where he wants the unlearned skills in the plugin's menu to be displayed as greyed out. So that's why he was asking whether there's an included function to do that, to avoid making two icons for every skill in his game.
 

Latest Threads

Latest Profile Posts

I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png
Monday December 6th 2021 at 7PM Hawkzombie will stream A Thief's Voyage on his Twitch.

Hawkzombie Twitch

Check it out.​
Ladies and gentlepeeps, I'm working on a Chuck E Cheese horror game! Did you know that in the 80's, in the Pizza Time Theater, Helen Henny was a separate character who performed in a separate room called the Cabaret? She was one of the possible guest stars there, and she was a Hollywood star at the time. But this particular unit seems to have a dark secret...

Forum statistics

Threads
117,162
Messages
1,105,057
Members
153,245
Latest member
RiraiMel
Top