scripting:reference:scriptingmainui
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:reference:scriptingmainui [2020/03/09 18:00] – [ScriptedOption command] mit | scripting:reference:scriptingmainui [2023/09/14 08:43] (current) – [ScriptedOption command] mit | ||
---|---|---|---|
Line 8: | Line 8: | ||
==== Notification messages ==== | ==== Notification messages ==== | ||
- | FIXME: | + | The notification system provides a list of messages that are shown to the user on the left side of the screen. The messages disappear after a defined time (a few seconds by default but they can be made to last longer), and if multiple messages are triggered they are queued |
+ | |||
+ | Notification | ||
+ | |||
+ | ==== Main On-screen Message ==== | ||
+ | |||
+ | You can use the commands: | ||
+ | ***setmainscore [PLAYER_NAME], | ||
+ | ***setmainmsg [PLAYER_NAME], | ||
+ | .. to set a message which is permanently displayed at the top left of the player' | ||
==== ScriptedOption command ===== | ==== ScriptedOption command ===== | ||
- | Some UI elements can optionally be scripted | + | Some UI elements can optionally be scripted |
- | For example, you can change the buttons that appear when a player selects another in the player list to interact with, or you can add a scripted option to the ESC menu when the user presses ESC then F9 using: | + | For example, you can change the buttons that appear when a player selects another in the player list to interact with (scriptedoptions 2-6), or you can add a scripted option to the ESC menu when the user presses ESC then F9 using: |
< | < | ||
which when selected would trigger the event: | which when selected would trigger the event: | ||
Line 29: | Line 38: | ||
2 - Player-player barter option replacement | 2 - Player-player barter option replacement | ||
3 - Player-player challenge option replacement - triggers ?\\ | 3 - Player-player challenge option replacement - triggers ?\\ | ||
- | 4 - Player-player custom option 1 (only appears if set) - triggers Event( " | + | 4 - Player-player custom option 1 (only appears if set) - triggers |
- | 5 - Player-player custom option 2 (only appears if set) - triggers Event( " | + | 5 - Player-player custom option 2 (only appears if set) - triggers |
- | 6 - Player-player custom option 3 (only appears if set) - triggers Event( " | + | 6 - Player-player custom option 3 (only appears if set) - triggers |
- | 7 - Player-player custom option 4 (only appears if set) - triggers Event( " | + | 7 - Player-player custom option 4 (only appears if set) - triggers |
9 - [Unused atm]\\ | 9 - [Unused atm]\\ | ||
- | 10 - Battle system accept challenge option 1 - *scriptedoption 10, | + | 10 - Battle system accept challenge option 1 - Triggers?\\ |
- | 11 - Battle system accept challenge option 2 - *scriptedoption 11, | + | 11 - Battle system accept challenge option 2 - Triggers?\\ |
- | 12 - Battle system victor decision option 1 - *scriptedoption 12, | + | 12 - Battle system victor decision option 1 - Triggers?\\ |
- | 13 - Battle system victor decision option 2 - *scriptedoption 13, | + | 13 - Battle system victor decision option 2 - Triggers?\\ |
- | 14 - Battle system victor decision option 3 - *scriptedoption 14, | + | 14 - Battle system victor decision option 3 - Triggers?\\ |
- | 15 - Optional extra button on towns menu, shows only for town owner - triggers Event( " | + | 15 - Optional extra button on towns menu, shows only for town owner - triggers |
- | 16 - 2nd optional extra button on towns menu, shows for all players - triggers Event( " | + | 16 - 2nd optional extra button on towns menu, shows for all players - triggers |
- | 17 - 3rd optional extra button on towns menu, shows only for town owner - triggers Event( " | + | 17 - 3rd optional extra button on towns menu, shows only for town owner - triggers |
- | 18 - Help & Info menu extra option 1 - Triggers Event( " | + | 18 - Help & Info menu extra option 1 - Triggers |
- | 19 - Help & Info menu extra option 2 - Triggers **Event( " | + | 19 - Help & Info menu extra option 2 - Triggers **Event( " |
- | 20 - 1st option available in the pub interface - Triggers **Event( " | + | 20 - 1st option available in the pub interface - Triggers **Event( " |
- | 21 - 2nd option available in the pub interface - Triggers **Event( " | + | 21 - 2nd option available in the pub interface - Triggers **Event( " |
- | 22 - 3rd option available in the pub interface - Triggers **Event( " | + | 22 - 3rd option available in the pub interface - Triggers **Event( " |
- | 23 - 4th option available in the pub interface - Triggers **Event( " | + | 23 - 4th option available in the pub interface - Triggers **Event( " |
- | 24 - 5th option available in the pub interface - Triggers **Event( " | + | 24 - 5th option available in the pub interface - Triggers **Event( " |
- | 25 - Additional | + | 25 - Additional netrek mode button: ? icon when not in orbit - Triggers **Event( " |
- | 26 - Additional | + | 26 - Additional netrek mode button: $ icon when not in orbit - Triggers **Event( " |
- | 27 - Additional | + | 27 - Additional netrek mode button: i icon when not in orbit - Triggers **Event( " |
- | 28 - Additional | + | 28 - Additional netrek mode button: arrow icon replaces refuel option when in orbit - Triggers **Event( " |
- | 29 - Additional | + | 29 - Additional netrek mode button: ? icon when in orbit - Triggers **Event( " |
- | 30 - Additional | + | 30 - Additional netrek mode button: $ icon when in orbit - Triggers **Event( " |
- | 31 - Additional | + | 31 - Additional netrek mode button: i icon when in orbit - Triggers **Event( " |
+ | 32 - Customises the standard building interface 'Extra Info' option. - Triggers **Event( " | ||
+ | 33 - Additonal button on the building stockroom interface - Triggers **Event( " | ||
scripting/reference/scriptingmainui.1583794859.txt.gz · Last modified: 2020/03/09 18:00 by mit