SynthMaker

GUI Issue (Bitmaps)

Archive · 2009 5 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

Spirited Machine ·

Hello, I came up with a project while in the truck today that I wanted to share with you all, but unfortunately I ran into a snag. The basic premise of this project is to combine button and knob like the radio knob in the truck. I took the existing animated knob and modified it slightly to add the button bitmaps and button functionality. I also got rid of some property options to prevent messing with the images. Anyway, to the problem..

When the knob is turned completely to zero, all is well. I can click the right mouse button to activate/deactivate the button, and the images show up fine. However, if I move the knob at all, the button images disappear. If I right-click, the boolean still works correctly, but the images are gone. The knob animation stays, however. If someone could take a look at the schematic and maybe see whats wrong, that would be great. Then maybe I can share a working version with everyone.

Thanks in advance.

-Andrew

infuzion ·

Try these steps: 1) Move the Redraw earlier, & the Redraw's View output to feed the rest of the knob. 2) Delete that Tick25 CPU hog!!! Never never never have a GUI element always refreshing, or you will peg your CPU to 95%! 😝 3) Connect only things that change into the DoIt trigger, like perhaps the Button's bool out & the Step out.

oddson ·

infuzion is right about the triggering but there does seem to be something odd about the behaviour of the bitmap draw and the area calculations.

Spirited Machine ·

I actually put the tick25 in there to try to figure out the problem, I originally had it triggered by the mouse actions. I just thought maybe there was a redraw problem and redrawing all the time would fix it. I forgot to change it back before I uploaded the thing. Thanks for the tips, I'll keep messing and see what I can figure out.

Spirited Machine ·

OK I got it. My problem was I never understood what bitmap area actually does, and how it is really useful for 'filmstrip' bitmaps. I used it for the button portion as well as the knob portion, where the button is not an animated strip, and the knob part is. So whenever the knob went to the next frame, it was looking for a nonexistent frame in the button source image. Switched it to bitmap draw for the button part and now it works fine.

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.