Difference between revisions of "Config Item Purposes"
From Armagetron
(4 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
Transferred over the network from the server. | Transferred over the network from the server. | ||
− | === Examples === | + | === Examples of Usage === |
− | * cycle_rubber | + | * <code>cycle_rubber</code> |
− | * cycle_delay | + | * <code>cycle_delay</code> |
== tSettingItem == | == tSettingItem == | ||
Line 13: | Line 13: | ||
Local settings that are loaded from settings.cfg. You may change these setting in-game, but they are not saved when you quit. To make the changes permanent you must edit your configuration files. | Local settings that are loaded from settings.cfg. You may change these setting in-game, but they are not saved when you quit. To make the changes permanent you must edit your configuration files. | ||
− | === Examples === | + | === Examples of Usage === |
− | * camera_custom_back | + | * <code>camera_custom_back</code> |
− | * camera_custom_pitch | + | * <code>camera_custom_pitch</code> |
== tConfItem == | == tConfItem == | ||
+ | Local settings that are saved on quit. These setting typically have an interface to be changed, such as a menu item. | ||
− | + | === Examples of Usage === | |
+ | * Player names | ||
+ | * Key mappings | ||
+ | * Instant chat macros | ||
+ | * Resolution settings | ||
== Variants == | == Variants == | ||
The XItemLine variant is a specialization of the XItem< tString > class with the difference that it saves and reads whole lines of config files, while the standard item will only read the first word. | The XItemLine variant is a specialization of the XItem< tString > class with the difference that it saves and reads whole lines of config files, while the standard item will only read the first word. | ||
+ | |||
+ | [[Category:Development]] |
Latest revision as of 22:17, 22 August 2021
Choose the right kind of setting item:
nSettingItem
Transferred over the network from the server.
Examples of Usage
cycle_rubber
cycle_delay
tSettingItem
Local settings that are loaded from settings.cfg. You may change these setting in-game, but they are not saved when you quit. To make the changes permanent you must edit your configuration files.
Examples of Usage
camera_custom_back
camera_custom_pitch
tConfItem
Local settings that are saved on quit. These setting typically have an interface to be changed, such as a menu item.
Examples of Usage
- Player names
- Key mappings
- Instant chat macros
- Resolution settings
Variants
The XItemLine variant is a specialization of the XItem< tString > class with the difference that it saves and reads whole lines of config files, while the standard item will only read the first word.