WACUP

General => Skins => Topic started by: parisienne17 on October 14, 2023, 08:32:42 PM

Title: Switching layouts
Post by: parisienne17 on October 14, 2023, 08:32:42 PM
Hi AriszlĂ´

as forums.winamp are cloudflare banned, wacup is my new and last resort to get answers.  ;.)

I think our discussion back there covered it and I even think one of our study skins did it but I can't find it anymore.

https://i.postimg.cc/6yTz44Fw/Cellamp.png[/img]](https://i.postimg.cc/6yTz44Fw/Cellamp.png) (http://[img)

As I don't want to use a switch layouts maki script, how can I switch to parent/child layouts when clicking on the up/down arrows in the vis area ?
Title: Re: Switching layouts
Post by: ariszlo on October 15, 2023, 03:41:52 PM
Hi parisienne17,

You can do it with buttons whose action is "SWITCH" and the param is the id of the layout you want to switch to.

<button
  id="SwitchUp"
  action="SWITCH" param="normal"
  x="?" y="?"
  image="arrow.up"
  hoverImage="arrow.up.hover"
  downimage="arrow.up.pressed"
  tooltip="Switch to normal mode"
/>

<button
  id="SwitchDown"
  action="SWITCH" param="stick"
  x="?" y="?"
  image="arrow.down"
  hoverImage="arrow.down.hover"
  downimage="arrow.down.pressed"
  tooltip="Switch to stick mode"
/>