Hex Turn Based Version: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Custom UI Commands = * 0 - bring up Loadsave * 1 - bring up Options * 10 - return to Main Menu * 100 - show purchase screen for DLC") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Updates to AddVizUnitText and AddVizText = | |||
Any string starting with @ will cause the actual string to be ignored, and the contents of the first UI string will be passed through to the displayed text. E.g. | |||
Print("The message %d", value) ; | |||
AddVizUnitText(me,"@","FFFFFFFF") ; | |||
The limit for messages is 126 characters, any over will be cropped. | |||
= Custom UI Commands = | = Custom UI Commands = | ||
* 0 - bring up Loadsave | * 0 - bring up Loadsave | ||
Line 4: | Line 10: | ||
* 10 - return to Main Menu | * 10 - return to Main Menu | ||
* 100 - show purchase screen for DLC | * 100 - show purchase screen for DLC | ||
= MultiUnitScale Tweak = | |||
There is a new tweak MultiUnitScale which denotes the scale applied to units when there is more than 1 unit in a hex. It is in 100ths. Documented aditionally in the TWEAKS.TXT autodocs. | |||
= Showing Unit Info on Right Click = | |||
In Helpers.bsf there is a callback SHOW_UNIT_INFO_CALLBACK which is passed the ID of the clicked on unit. You can use this callback to set up and display a unit info UI object. |
Latest revision as of 21:49, 28 November 2017
Updates to AddVizUnitText and AddVizText
Any string starting with @ will cause the actual string to be ignored, and the contents of the first UI string will be passed through to the displayed text. E.g.
Print("The message %d", value) ; AddVizUnitText(me,"@","FFFFFFFF") ;
The limit for messages is 126 characters, any over will be cropped.
Custom UI Commands
- 0 - bring up Loadsave
- 1 - bring up Options
- 10 - return to Main Menu
- 100 - show purchase screen for DLC
MultiUnitScale Tweak
There is a new tweak MultiUnitScale which denotes the scale applied to units when there is more than 1 unit in a hex. It is in 100ths. Documented aditionally in the TWEAKS.TXT autodocs.
Showing Unit Info on Right Click
In Helpers.bsf there is a callback SHOW_UNIT_INFO_CALLBACK which is passed the ID of the clicked on unit. You can use this callback to set up and display a unit info UI object.