User Tools

Site Tools


4rpl:commands:setcmodplayermenuname

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
4rpl:commands:setcmodplayermenuname [2021/01/08 11:01] – external edit 127.0.0.14rpl:commands:setcmodplayermenuname [2022/05/22 22:55] – [Description] Mention of using to bypass character limit. Vertu
Line 11: Line 11:
 name and build the specified unit. name and build the specified unit.
 The section is a number that specified which menu the name is added to. It can be 0,1,2,3,4. 0 means the Struct menu, 1 means the Weapons menu, 2 is the Air menu, 3 is the Special menu, and 4 is the Custom menu. The section is a number that specified which menu the name is added to. It can be 0,1,2,3,4. 0 means the Struct menu, 1 means the Weapons menu, 2 is the Air menu, 3 is the Special menu, and 4 is the Custom 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