[Solved] @overhotspot@ has a 24-char max?

Started by arj0n, Wed 08/09/2021 01:00:19

Previous topic - Next topic

arj0n

Using ags v3.5.1.10
My game has a resolution of 320 x 200
I have a topbar with label, both 320 width
The label uses @OVERHOTSPOT@ as Text which uses the default font eFontNormal
I have an inventory item with the Description "newspaper article from the box"

Now when I run the game and I hover over this item, the label shows "newspaper article from t" instead of "newspaper article from the box"
"newspaper article from t" takes up about only half of the total screen width aka available label space.

This happens with all inventory items that have a name that is over 24 characters long
Is there a restriction on @OVERHOTSPOT@ of max 24 characters (spaces included)?
I haven't noticed this before in previous projects, but I might never have used such 'long' inv.item names before...

Crimson Wizard

#1
Inventory item name has a limit of 24 characters.
"@OVERHOTSPOT@" should not have any restrictions.

If you still want long names, this problem may be worked around by coding your own text display instead of @overhotspot@ and reading item name from a custom property or an array in script etc.

arj0n

#2
Drat!, overlooked this line in the manual, sorry:

QuoteNote that the maximum length for the name of an inventory item is 24 characters - if the name you set is longer than this, it will be truncated.
:-[

Quote from: Crimson Wizard on Wed 08/09/2021 02:55:47
If you still want long names, this problem may be worked around by coding your own text display instead of @overhotspot@ and reading item name from a custom property or an array in script etc.
(nod)

SMF spam blocked by CleanTalk