User Tools

Site Tools


4rpl:commands:setcmodplayermenuname

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:setcmodplayermenuname [2022/05/22 22:55] – [Description] Mention of using to bypass character limit. Vertu4rpl:commands:setcmodplayermenuname [2022/11/19 15:06] (current) – old revision restored (2021/05/13 14:39) Karsten75
Line 13: Line 13:
  
 SetCModPlayerMenuName rebuilds the entire unit menu on the left. So it will be expensive in terms of CPU cycles. It is not intended that it be be called frequently (just when adding something to the menu). SetCModPlayerMenuName rebuilds the entire unit menu on the left. So it will be expensive in terms of CPU cycles. It is not intended that it be be called frequently (just when adding something to the menu).
- 
-:NOTE: This API can be used to circumvent the heavy limit of characters in custom player unit names in the unit editor.\\ However, although the number of characters that can be used using this circumvention are much greater than in the unit editor, __the unit build box will not wrap to fit the length of text__.\\ 
-The amount of characters that can fit within the build menu is about **12 characters maximum**, depending on capitalization and what characters where used. Any more and the text will be larger than the box and even go off screen.\\ 
-<fs small>**Additional Note:** If enough characters are used, a new line will be created. Sadly this pushes text upwards and behind the unit image while still going off screen, making this feature unhelpful. Formatting is also unsupported.</fs> 
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/setcmodplayermenuname.txt · Last modified: 2022/11/19 15:06 by Karsten75