1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Solved Control PNG "frame" of ui_switch

Discussion in 'Scripting Workshop' started by mcseay, Sep 29, 2021.

  1. mcseay

    mcseay New Member

    Messages:
    6
    Is there no way to manually set the "frame" or state of the png image of a ui_switch?
    For example...
    on ui_control($example1)
    { set the image of ui_switch $example2 to the "on pressed" state }
    end on
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    No, buttons and switches are hard-coded to use the 6 frames exactly like that and no other way.

    You probably just want to set the value of second switch to 1 though.
     
  3. mcseay

    mcseay New Member

    Messages:
    6
    Got it.
    so, I have a ui_switch whose state get's stuck when on ui_control I hide it's parent panel. When I unhide the parent panel with a different ui_switch, the initial ui_switch is stuck on the "off pressed" frame and will no longer respond to hover or otherwise change from "off pressed", although it's on ui_control works. Is this a bug?
     
  4. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    That's a bug in Kontakt, and AFAIK there's no workaround for it.
     
    • Like Like x 1