Setting uiPanelZoom by Lua

Home Forums General Programming Setting uiPanelZoom by Lua

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #69601
    Possemo
    Participant
      • Topics: 14
      • Replies: 638
      • Total: 652
      • ★★★

      Does anyone knows how to do that?
      Dasfaker: on your fantastic Virus panel you made it, can you explain how you did it?

      #69611
      Possemo
      Participant
        • Topics: 14
        • Replies: 638
        • Total: 652
        • ★★★

        If could can tell me how to send keystrokes with Lua (Ctrl + and Ctrl -) would help a lot as well.

        #69612
        dasfaker
        Keymaster
          • Topics: 80
          • Replies: 793
          • Total: 873
          • ★★★

          Quite easy.

          panel:getPanelEditor():setPropertyInt(“uiPanelZoom”, 2) — 200% size

          panel:getPanelEditor():setPropertyInt(“uiPanelZoom”, 1) — 100% size.

          The only drawback is that the window doesn’t change size when zooming, you have to drag the window to allow a complete view of the panel.

          #69613
          Possemo
          Participant
            • Topics: 14
            • Replies: 638
            • Total: 652
            • ★★★

            Thanks man, getPanelEditor() this is it. I could have guessed it, but nah, it did not came in my mind…

            • This reply was modified 7 years, 9 months ago by Possemo.
          Viewing 4 posts - 1 through 4 (of 4 total)
          • The forum ‘Programming’ is closed to new topics and replies.
          There is currently 0 users and 124 guests online
          No users are currently active
          Forum Statistics
          Threads: 2,495, Posts: 17,374, Members: 77,605
          Most users ever online was 12 on January 22, 2019 3:47 pm
          Ctrlr