User Tag List

Results 1 to 5 of 5

Thread: Switch and Toggle Button Extension

  1. #1
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    346
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Switch and Toggle Button Extension

    Hi,

    Just finalized Switch and Toggle button extension, this little extension is addition to missing views on android exporter.

    Will release it quickly after demo;

    Ok now it's ready , example mfa is included

    Installation : As allways copy .mfx file to Extensions/Unicode drawer and .zip file to Android drawer;

    Look carefully the example MFA events when button is initialized eg:
    You must set button type at the begining of frame like set type to 0 or 1 ; 0 mean switch button and 1 toggle button.
    Tryed to make 2 extensions in one hope it's working for you. The order of events is important.

    Screenshot_20230129_015838_Runtime_Android[1].jpg


    Regards
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    986
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Gigatron View Post
    Hi,

    Regards
    I tested it. Although, it seems very complex and doesn't show when running in fusion as a button to test with. Works fine on Android though.
    However for me, I like being able to test the buttons in fusion before porting to android.

    Here is how I make switches. Both Rocker and Single Touch
    switches.jpg
    LINK to .mfa: https://drive.google.com/file/d/1bKK...usp=share_link

  3. #3
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    346
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by VBEinc View Post
    I tested it. Although, it seems very complex and doesn't show when running in fusion as a button to test with. Works fine on Android though.
    However for me, I like being able to test the buttons in fusion before porting to android.

    Here is how I make switches. Both Rocker and Single Touch
    switches.jpg
    LINK to .mfa: https://drive.google.com/file/d/1bKK...usp=share_link
    Sure , the edittime part not coded on C++ , for this reason you can just see the rectangle on editor, but when you build to android you can see the result
    on execution of the application.

    I will separate this extension to one for toggle button and the second for switch button, like that no confusion on the initialization of buttons.

    Regards

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    986
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Gigatron View Post
    Sure , the edittime part not coded on C++ , for this reason you can just see the rectangle on editor, but when you build to android you can see the result
    on execution of the application.

    I will separate this extension to one for toggle button and the second for switch button, like that no confusion on the initialization of buttons.

    Regards
    Nice work bud!

    Definitely a cool addition!

    Something I thought would be pretty cool for Fusion would be a Active Button.
    Basically, you could use the ( CLICK ON OBJECT ) but with a twist. 50% would be one direction and 50% would be the other.
    Then the user could simply add their graphics to the object. Resize as needed and Half would be ON and the other OFF ( Determined in the editor - top / bottom or left / right ).
    Basically making ZONES within an object!

  5. #5
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    346
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    The two extension is now separated this mean Switchbutton and Togglebutton and now updated with the common
    features for toggle button event list :

    tb.png

    event list for switchbutton is exactly the same..

    .mfa examples are included for both extension.. Tested with S21 build with API 33 min 4.4 kit-kat and target level12 (S)

    Regards
    Attached files Attached files

Similar Threads

  1. switch between animations by toggle
    By anatol in forum Fusion 2.5
    Replies: 2
    Last Post: 7th April 2019, 05:27 PM
  2. iOS Toggle Switch
    By JosephFTaylor in forum iOS Extensions
    Replies: 4
    Last Post: 5th April 2013, 07:33 PM
  3. iOS Toggle Switch
    By JosephFTaylor in forum iOS Specific Example Files
    Replies: 3
    Last Post: 5th April 2013, 07:32 PM
  4. One-event toggle button (just for grins)
    By Saml in forum Widgets
    Replies: 1
    Last Post: 4th January 2009, 10:07 PM
  5. Toggle button events
    By byo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th January 2008, 08:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •