Icon Captions

Discussion in 'JS Plugin Releases (RMMV)' started by Astfgl66, Apr 10, 2019.

  1. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    659
    Likes Received:
    504
    First Language:
    French
    Icon Captions
    In menu:
    [​IMG]

    In battle:
    [​IMG]

    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!
     
    #1
    zarasrage, pasunna, Lady and 6 others like this.
  2. MokoMoko

    MokoMoko Villager Member

    Messages:
    7
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMVX
    Holy mother gods! This is freaking awesomeeeeeeeeeeeee!
     
    #2
  3. MokoMoko

    MokoMoko Villager Member

    Messages:
    7
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMVX
    #3
  4. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    659
    Likes Received:
    504
    First Language:
    French
    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?
     
    #4
    MokoMoko likes this.
  5. MokoMoko

    MokoMoko Villager Member

    Messages:
    7
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMVX
    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!
     
    #5
  6. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    659
    Likes Received:
    504
    First Language:
    French
    I'll look into it.
     
    #6
    SoSick. and MokoMoko like this.
  7. imcatman

    imcatman Villager Member

    Messages:
    5
    Likes Received:
    0
    Location:
    アフガニスタン
    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?
     
    #7
  8. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    659
    Likes Received:
    504
    First Language:
    French
    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.
     
    #8
    SoSick. likes this.
  9. SoSick.

    SoSick. Veteran Veteran

    Messages:
    221
    Likes Received:
    187
    Location:
    UK
    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.
     
    #9
  10. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    659
    Likes Received:
    504
    First Language:
    French
    Sure, send it.

    Edit: got the plugin via pm, no need for further pms, thanks.
     
    Last edited: Apr 14, 2019
    #10
    SoSick. likes this.
  11. imcatman

    imcatman Villager Member

    Messages:
    5
    Likes Received:
    0
    Location:
    アフガニスタン
    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?
     
    #11
  12. HeroicJay

    HeroicJay Veteran Veteran

    Messages:
    315
    Likes Received:
    173
    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.
     
    #12
  13. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    659
    Likes Received:
    504
    First Language:
    French
    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: Apr 14, 2019
    #13
    imcatman likes this.
  14. HeroicJay

    HeroicJay Veteran Veteran

    Messages:
    315
    Likes Received:
    173
    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.
     
    #14
  15. imcatman

    imcatman Villager Member

    Messages:
    5
    Likes Received:
    0
    Location:
    アフガニスタン
    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
     
    #15
  16. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    659
    Likes Received:
    504
    First Language:
    French
    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: Apr 17, 2019
    #16
    imcatman likes this.
  17. imcatman

    imcatman Villager Member

    Messages:
    5
    Likes Received:
    0
    Location:
    アフガニスタン
    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 !
     
    #17
  18. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    659
    Likes Received:
    504
    First Language:
    French
    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:
    [​IMG]
    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!
     
    #18
    imcatman, BlueMage and SoSick. like this.
  19. imcatman

    imcatman Villager Member

    Messages:
    5
    Likes Received:
    0
    Location:
    アフガニスタン
    First Language:
    German
    Primarily Uses:
    RMMV
    cheers! Multiple texts now work perfectly. thanks again !
     
    #19
  20. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    659
    Likes Received:
    504
    First Language:
    French
    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.
    [​IMG]
    [​IMG]


    Have a nice day!
     
    #20
    BlueMage, imcatman and SoSick. like this.

Share This Page