Working with images

Home Forums General Using Ctrlr Working with images

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #383
    sawan
    Participant
      • Topics: 3
      • Replies: 23
      • Total: 26

      Couldn’t really find much about this in the search. I’m trying to make some simple on/off buttons where when they’re on a small 24×24 image comes on and when they’re off just the background is visible. I’ve tried the uIImageButton but once I select an image from the resources nothing happens. Is there a way to make it only show up when a button is on?

      Really wish there was some documentation on ctrlr.

      #3001
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        trust me i wish there was some docs too, i just don’t have the time.

        you need to set more properties then just the resource image, the strip size (24×24) how the images are stitched and some other stuff, it should work i just worked on the uiImageButton class and it worked.

        #3002
        Filch
        Participant
          • Topics: 22
          • Replies: 173
          • Total: 195
          • ★★

          uiImageButton has been working for me for a while now.

          Do you have a pic of your example sawan? Your total image size should be 48×24 stiched vertically. Your frame settings in controller for that image should then be set to 24×24.

          What I wonder about is if your image shows the background during the off state, how do you see the button to enable it? <img decoding=” title=”Smile” />
          I’d be glad to assist you in getting this to work. Show me what your trying to do.

          #3003
          sawan
          Participant
            • Topics: 3
            • Replies: 23
            • Total: 26

            i got it working. basically the background has the off state image of the button already so i just wanted to be able to click that area and have the on state image come on. i’ll post it in the panels forum so you can see what i mean.

            edit: done

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The forum ‘Using Ctrlr’ is closed to new topics and replies.
          There is currently 0 users and 73 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