Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
2,048
Reaction score
1,716
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,226
Reaction score
1,725
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,250
Reaction score
1,208
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 Posts

Latest Profile Posts

Something might be coming...
Hallo.png
A new day for creating :)
2021 has been the runner-up for the worst year of my life. 2015 may take that title, but '21 is pushing it. Excuses really don't justify how much of a jerk I've been this year to a lot of people.

I'm sorry. I don't intend to be a jerk forever, but I'd rather back up my intent with actions, not words.
"Another hundred habaneros... a teaspoon of tumeric... and a heaping helping of nitroglycerin!" The kitten in a chef's hat laughed maniacally as the pot he was stirring promptly exploded.

Forum statistics

Threads
116,016
Messages
1,094,935
Members
151,332
Latest member
RaxecV
Top