Ploki wrote: ↑Sun May 29, 2022 4:58 pm You’re attributing backgrounds to layerselector.
You should attribute background images to layers of a PANE, and then attach the layerselector to the pane.
Layerselector is just a “remote” for switching pane layers.
(Either via editor GUI or by “clientpane” property)
elaborating my previous comment:
FIRST: Pane that just serves to display background image: (CONTROLS section)
Code: Select all
CONTROL type='Pane' name='<background image pane>' bounds='0.00 0.00 1260.00 845.00' parent='Mother Pane' layerMask='3'
PROPERTY control='<background image pane>' name='colours' id='0' value='none'
PROPERTY control='<background image pane>' name='colours' id='1' value='none'
PROPERTY control='<background image pane>' name='colours' id='2' value='none'
PROPERTY control='<background image pane>' name='colours' id='3' value='none'
PROPERTY control='<background image pane>' name='graphics' id='0' value='backgroundimage1'
PROPERTY control='<background image pane>' name='layer' id='0' value='img1'
PROPERTY control='<background image pane>' name='layer' id='1' value='img2'
PROPERTY control='<background image pane>' name='graphics' id='1' value='backgroundimage2'
PROPERTY control='<background image pane>' name='layer' id='2' value='img3'
PROPERTY control='<background image pane>' name='graphics' id='2' value='backgroundimage3'
Code: Select all
CONTROL type='LayerSelector' name='LayerSelector 386224' bounds='5.00 5.00 167.00 17.00' parent='<wherever pane layerselector is located- can be different from the backgroudpane>' layerMask='1'
PROPERTY control='LayerSelector 386224' name='colours' id='0' value='none'
PROPERTY control='LayerSelector 386224' name='colours' id='1' value='none'
PROPERTY control='LayerSelector 386224' name='colours' id='2' value='none'
PROPERTY control='LayerSelector 386224' name='colours' id='3' value='none'
PROPERTY control='LayerSelector 386224' name='colours' id='4' value='none'
PROPERTY control='LayerSelector 386224' name='graphics' id='0' value='none'
PROPERTY control='LayerSelector 386224' name='graphics' id='1' value='none'
Code: Select all
PROPERTY control='LayerSelector 386224' name='clientpane' id='0' value='<background image pane>'
this is easier than switching backgrounds of panes with stuff in it (i.e. knobs etc) because you don't need to define layer masks for every element.
The pane with the background and the layerselector that controls said pane can be a completely separate entity and don't need to be connected in ANY WAY hierarchical except via "clientpane" property attribute.