Functions Documentation | |
Name | scrSetActionLabel |
Syntax | (scrSetActionLabel screen action label [key] [special]) |
Argument List | screen: The screen you want to change the action text on. action: The string ID of the action, or it's position starting at 0. label: string, what you want to change the text to. [key]: string, define which keystroke will trigger the action. [special]: list or token, special flags for this action |
Returns | condition: True is successful. |
Category | screen |
Description | Changes the given actions text to the string. |
Example |
(scrSetActionLabel gScreen 'myNewAction "Do something extra cool" "e" (list 'default 'nextKey) ) Assumes action from scrAddAction example. |
Comment | Allows you to dynamically change the action labels. Special actions are 'cancel , 'default , 'nextKey , 'prevKey , or a list of these tokens. Special and the ability to use action id strings added in 1.04. |
Mod of the Month (February '24) |
Featured Mods (random) |
MegaModPack (v1.2 compatible) |
"PDmod" ICX Overhaul |
Quality Mods (random) |
Original Freighter |
Tractor Beam |
Balanced Mods (random) |
Molotok-class heavy gunship |
TX2 Centauri Module |