Example ====== Palette - Fire Quick Palettes and Show Active ====== ^ by: | Sebastian Beutel | ^ published: | April 2025 (stems from 2023) | ^ description: | fire some quick palettes and show active state | ^ remarks: | useful to see which active palette is currently fired | {{tag>quick palette active}} ==== functions ==== * [[:macros:function:ActionScript.SetProperty.Integer]] * [[:macros:function:Palette.ApplyQuickPalette]] ==== control structures ==== * [[macros:Variables]] * [[macros:active_binding|]] ===== Code ===== File with macros for some more palettes in two segments here: {{ :macros:example:firequickpalettes.xml |}} Initializes variables for other macros. Fires QuickPalette 101 and shows as active. ActionScript.SetProperty.Integer("Wiki.Macros.Palettes.FireQuickPaletteInit.PaletteRange100", 101) Palette.ApplyQuickPalette(userNumber: 101, true) ===== Explanation ===== This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]] The first macro simply initialises the variables ''PaletteRange100'' and ''PaletteRange110'' which are then used to hold which variable is currently active (you need to make sure this follow some logic...). The second macro ''Fire QuickPalette 101'' does the work (you need to create some more such macros though): * ''