Hey Andre,
The color of ZScript buttons can only be a single uniform color defined by setting [PREFERENCES:IColors:ZButton]
Some scripters get around this by creating and inserting unique button images for EACH and ALL buttons. But that turns out to be a lot of work.
Another command pair that some scripters use is the SectionBegin and SectionEnd commands which expand and contract, revealing all the buttons within a section.
You might use SECTIONS to group all buttons you wanted blue under one section button and all the buttons you intended to be yellow under another section button. Their colors won’t change but the user can view them, one group at a time.
The Section command also saves button space in the ZScript window.
Take a look at some of Cameyo’s scripts. He uses Sections a lot to hide/reveal documentation.
Here is a super simple script showing how to setup the button group sections.
// example using SectionBegin/SectionEnd
// section with button set one
[SectionBegin,"button group 1",0,"This is group1 popup help"]
[IButton,"button 1",
]
[IButton,"button 2",
]
[SectionEnd]
[PD]
// section with button set two
[SectionBegin,"button group 2",0,"This is group2 popup help"]
[IButton,"button 3",
]
[IButton,"button 4",
]
[SectionEnd]
Sven