macros:example:toggletriggermappings
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| macros:example:toggletriggermappings [2018/01/28 10:31] – [Explanation] icke_siegen | macros:example:toggletriggermappings [2020/01/26 10:47] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| Example | Example | ||
| - | ====== Toggle Trigger Mappings ====== | + | ====== |
| ^ by: | Sebastian Beutel | | ^ by: | Sebastian Beutel | | ||
| Line 8: | Line 8: | ||
| ^ remarks: | Idea from facebook group: https:// | ^ remarks: | Idea from facebook group: https:// | ||
| - | {{tag>[ toggle trigger mapping | + | <fs x-large> |
| + | |||
| + | The way how Titan assigns IDs to mappings has changed. In short, in Titan v10 the macro works with '' | ||
| + | |||
| + | {{tag> | ||
| ==== functions ==== | ==== functions ==== | ||
| * [[: | * [[: | ||
| - | ===== Code ===== | + | ===== Code v10 ===== |
| <code xml ToggleTriggerMappings.xml> | <code xml ToggleTriggerMappings.xml> | ||
| <?xml version=" | <?xml version=" | ||
| - | < | + | < |
| <!-- the first two trigger mappings are predefined and fix, thus the first user mapping is ID 2 --> | <!-- the first two trigger mappings are predefined and fix, thus the first user mapping is ID 2 --> | ||
| Line 25: | Line 30: | ||
| </ | </ | ||
| </ | </ | ||
| + | | ||
| <macro id=" | <macro id=" | ||
| < | < | ||
| Line 31: | Line 37: | ||
| </ | </ | ||
| </ | </ | ||
| + | | ||
| <macro id=" | <macro id=" | ||
| < | < | ||
| Line 37: | Line 44: | ||
| </ | </ | ||
| </ | </ | ||
| + | | ||
| <macro id=" | <macro id=" | ||
| < | < | ||
| Line 43: | Line 51: | ||
| </ | </ | ||
| </ | </ | ||
| + | | ||
| <macro id=" | <macro id=" | ||
| < | < | ||
| Line 49: | Line 58: | ||
| </ | </ | ||
| </ | </ | ||
| + | | ||
| </ | </ | ||
| </ | </ | ||
| + | ===== Code v11 ===== | ||
| + | <code xml ToggleTriggerMappingsV11.xml> | ||
| + | <?xml version=" | ||
| + | < | ||
| + | |||
| + | <!-- from v11 the mapppingIds are titanIds and may change. This may or may not work. --> | ||
| + | |||
| + | <macro id=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | | ||
| + | <macro id=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | | ||
| + | <macro id=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | | ||
| + | <macro id=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | | ||
| + | </ | ||
| + | </ | ||
| ===== Explanation ===== | ===== Explanation ===== | ||
| Line 59: | Line 106: | ||
| The macros use the function [[macros: | The macros use the function [[macros: | ||
| - | //N.B. currently it is not possible to show whether a specific mapping is enabled using [[macros: | + | //N.B. currently it is not possible to show whether a specific mapping is enabled using [[macros: |
| ===== How to use it ===== | ===== How to use it ===== | ||
macros/example/toggletriggermappings.1517135503.txt.gz · Last modified: 2018/01/28 10:31 (external edit)
