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 [2019/04/27 22:21] – [Toggle Trigger Mappings] sideshowbond | macros:example:toggletriggermappings [2020/01/26 10:47] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
Example | Example | ||
- | ====== Trigger - Toggle Trigger Mappings ====== | + | ====== Trigger - Toggle Trigger Mappings |
^ by: | Sebastian Beutel | | ^ by: | Sebastian Beutel | | ||
Line 7: | Line 7: | ||
^ description: | ^ description: | ||
^ remarks: | Idea from facebook group: https:// | ^ remarks: | Idea from facebook group: https:// | ||
+ | |||
+ | <fs x-large> | ||
+ | |||
+ | The way how Titan assigns IDs to mappings has changed. In short, in Titan v10 the macro works with '' | ||
{{tag> | {{tag> | ||
Line 13: | Line 17: | ||
* [[: | * [[: | ||
- | ===== 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 ===== |
macros/example/toggletriggermappings.1556403663.txt.gz · Last modified: 2019/04/27 22:21 (external edit)