Icon Captions

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
709
Reaction score
558
First Language
French
Primarily Uses
Icon Captions
In menu:


In battle:


This does what it says on the tin: it creates captions for your icons so you can show some extra info to the player when they hover over icons.

Download:

How to use:
Download, save it as IconCaptions.js, import in your project, setup the parameters.
Once you turn the switch in parameters to true your captions should show up and look like the images at the beginning of the thread.
You must setup each caption in the plugin file, edit it with notepad, the instructions are in the file. Don't panic it's as easy as adding [iconId]: "text", for each icon.
There's also the possiblity of setting up a default caption.

Terms of use:
Free for commercial or non commercial use.
Free to edit and redistribute as long as the end product is under the same terms of use.
Please credit me with any of the following: Astfgl66, Astfgl66 (Pierre Mateo), Pierre Mateo.

That's all for today, have a nice day and happy making!
 

MokoMoko

Villager
Member
Joined
Apr 9, 2019
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMVX
Holy mother gods! This is freaking awesomeeeeeeeeeeeee!
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
709
Reaction score
558
First Language
French
Primarily Uses
What do you mean by it doesn't work?
Is it crashing or are the icons just not showing up?

Have you selected a switch in parameters and turned it on?
Have you put an icon description inside the plugin?

Does it work for you without the 2 plugins you cited?
 

MokoMoko

Villager
Member
Joined
Apr 9, 2019
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMVX
What do you mean by it doesn't work?
Is it crashing or are the icons just not showing up?

Have you selected a switch in parameters and turned it on?
Have you put an icon description inside the plugin?

Does it work for you without the 2 plugins you cited?
Heyy Hi, thank you for replied.
Yes i tested it and confirmed that it work for another scene or normal battle scene.
But the caption didn't show up when i tried to hover mouse over those 2 points where i circled in red.
Nothing crashed, just the caption wouldn't show up!

AND, i discovered a bug! When i tested it with a state that has duration of 1 turn (in normal battle scene, ATB battle style)
After the state gone, the caption still SHOW UP normally when i point mouse at the place where
the state used to be!
 

imcatman

Villager
Member
Joined
Apr 12, 2019
Messages
14
Reaction score
0
First Language
German
Primarily Uses
RMMV
Hello,
I wanted such a Tooltip to be displayed alone for each state. This is exactly that!
Responds to the icon on the back window when the windows overlap. The same thing happens when moving from one actor window to another actor's skill window. Can you fix this? Also, can the text in this caption window be displayed in more than one column instead of just one?
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
709
Reaction score
558
First Language
French
Primarily Uses
I've just updated the pastebin.
The new update should fix captions that persist when windows are refreshed.
REMEMBER TO SAVE YOUR CAPTIONS BEFORE UPDATING, if you overwrite your captions when copying the new file they'll be lost.

@imcatman Would you please show me a screenshot of what you mean by windows overlapping?
@MokoMoko Please send me the moghunter hud plugin you use via PM. I'm not downloading 100MO of plugins to find the one you use.
 

SoSick.

Veteran
Veteran
Joined
Jun 29, 2016
Messages
224
Reaction score
191
First Language
english
Primarily Uses
RMMV
What a great plugin! Nice one fella! Also use MOG HUD which I’ll send you if you Moko doesn’t, if you don’t mind that is.
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
709
Reaction score
558
First Language
French
Primarily Uses
Sure, send it.

Edit: got the plugin via pm, no need for further pms, thanks.
 
Last edited:

imcatman

Villager
Member
Joined
Apr 12, 2019
Messages
14
Reaction score
0
First Language
German
Primarily Uses
RMMV
Overwriting a new update, the captions that survived the window update disappeared.. That was when the windows overlapped. Sorry for my bad english.Thanks!
Also, the text of the current explanation is only one column. Is it possible to make this more than two columns?
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
322
Reaction score
175
First Language
English
Primarily Uses
RMMV
Wow, this is a brilliant plugin I didn't realize I wanted.

Recommendation: In the "update" function, make it "textWidthEx(text) + this._padding*2", not "textWidth(text) + this._padding*3". Very short text boxes that use text codes will thank you.
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
709
Reaction score
558
First Language
French
Primarily Uses
You know what? I had no idea there was a textWidthEx function. I'll take a look at it and most likely will heed your advice.

Edit: yeah, it doesn't exist in the base engine, it's a YEP Core Engine function. I'll probably still add it.
 
Last edited:

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
322
Reaction score
175
First Language
English
Primarily Uses
RMMV
Really? I see it in my own rpg_windows.js file. I might have plugged it in myself and forgot though... EDIT: Oh, I see. It's only in Window_ChoiceList for some reason instead of being in Window_Base like it really should be. And it worked when I altered the line because I have the Core Engine. Sorry about that.
 

imcatman

Villager
Member
Joined
Apr 12, 2019
Messages
14
Reaction score
0
First Language
German
Primarily Uses
RMMV
Sorry I'm late. I reproduced the bug when the windows overlap.
My battle status window has a poisoned caption window, but when I move to the skill window and move the mouse cursor to the same position, I respond to the poison icon that seems to be just the back window. It will
a.jpg







If you move from the battle window directly to the skill window of the actor and place the mouse cursor in the same place as before, "poison" is displayed.
I use the yanfly battle engine core b.jpg
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
709
Reaction score
558
First Language
French
Primarily Uses
Hey, thanks for letting me know!
I've updated the pastebin, and this error should be fixed.

REMEMBER TO SAVE YOUR CAPTIONS BEFORE UPDATING

For anyone interested, this plugins checks if a window is visible before showing captions for it. As it turns out, the battle status window flag is still set as visible underneath the skill window in the default battle UI, and that's what is causing this behaviour. The same thing is happening for the item window.
Anyway, I fixed it by adding a check that if the skill window or the item window were visible, the battle status window wouldn't show its captions.

I'm currently looking at the possible compatibility patches, and will add the caption length fix suggested above later.
 
Last edited:

imcatman

Villager
Member
Joined
Apr 12, 2019
Messages
14
Reaction score
0
First Language
German
Primarily Uses
RMMV
Thank you, that works perfectly!
If you have more than one column of text, it may help to display long text. appreciate your work here !
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
709
Reaction score
558
First Language
French
Primarily Uses
Hey everyone!
I've added support for multi line captions and the length fix mentionned by HeroicJay too.
REMEMBER TO SAVE YOUR CAPTIONS BEFORE UPDATING

Multiples lines are added via the text code: "\n", and will look like this:

The width and height should adjust automatically unless your multiline text is inside a variable you call via textcode. I'm sorry but I don't foresee a fix for this in the near future.

That's it for today!
 

imcatman

Villager
Member
Joined
Apr 12, 2019
Messages
14
Reaction score
0
First Language
German
Primarily Uses
RMMV
cheers! Multiple texts now work perfectly. thanks again !
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
709
Reaction score
558
First Language
French
Primarily Uses
Alright, it should now play nicely with both battle hud and visual state effects.
As usual, PLEASE REMEMBER TO SAVE YOUR CAPTIONS BEFORE UPDATING

If you don't need compatibility with either of these plugins, you don't need to update, as nothing else was added.




Have a nice day!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Just saw an article stating a Back to the FutureXTransformer comic crossover--and Doc Browns car is an Autobot. I am ALL FOR THIS!!
Well I sure didn't know fans could overheat and die. Room fans.
Felt like I dodged a bomb, my project was fine right after I force resetted due to a crash as I have yet to start working on it today..... :kaoback:
I have no idea what to do with my evening. I was working on the next Slip into Ruby but I kinda want to do something else for a bit. But I have no idea what. Yay indecision!
I hope your life going smoothly. I wish you do not find difficulty today. It's time to take action. Wish everyone take a break from the usual emotional intensity of social media and simply enjoy the sunshine and light conversation with others. Take action when you see that things are flagging.

Forum statistics

Threads
99,176
Messages
962,652
Members
130,750
Latest member
AmateruYukitteru
Top