User Tag List

Results 1 to 5 of 5

Thread: Checking and unchecking custom menu bar items

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Checking and unchecking custom menu bar items

    I'm having a problem that I can't solve for the life of me. I made a custom menu item in the menu bar editor. It is checked by default. I have my events set up to check and uncheck the item but it will not uncheck it. Here is what my events look like:

    menu problem.jpg

    The strange part is if I swap event line 29 with event line 30 it will let you uncheck the item, but then you can't check it back when you go select it again. The only thing I can figure is that there is a problem with it running all of those events at once since the menu selection is a red event. It also doesn't make a difference if I switch the order of the conditions so that "menu option selected" is on the bottom. I don't see anything else in the event editor that would let me overcome that issue in the menu bar events. Apparently I'm not grasping how those events work.

    I could maybe overcome this if I have two menu items, "Show Grid" and "Hide Grid" and have them check and uncheck one another, but I don't want to do it that way.

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Well I managed to fix it with a workaround. I used a global value and every time you select the menu item "Show Grid" it adds 1 to the global. Global A = 1: uncheck. Global A = 2: check set global A to 0.

    Soooo it works. But seems like a really cumbersome and silly way to do that. Surely there is a better way?

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Your original events suffered from the "If A set B, If B set A" situation, in which it will always be A. The reason is because both events run; first it sees that it is checked, and thus unchecks it. The next event then sees that it is unchecked, and checks it. This is not a toggle, this is a problem caused by lack of an else statement in MMF2.
    For your solution, would it not be easier to just set Global A to 1-Global A? Evey time you do this it toggles between 0 and 1
    Working as fast as I can on Fusion 3

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yeah that's what I assumed was happening with the original events. I know the red conditions run immediately and were doing as you say.

    And yeah, lol it would probably be easier to do what you suggested for the globals.

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Actually I thought about it, and the outcome would be the same whether they were those red immediate conditions or not. Don't know why I thought that would matter because either way the events would be running together.

Similar Threads

  1. Custom pause menu help
    By Ahiru in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 12th February 2013, 12:37 PM
  2. Disabled Menu Items?
    By LB in forum Extension Development
    Replies: 6
    Last Post: 15th October 2010, 12:32 PM
  3. Start Menu Items empty and uninstaller error
    By swater in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 12th March 2010, 06:46 AM
  4. Having Issues with Menu items
    By LB in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th January 2010, 03:08 AM
  5. The MMF Menu items, windowing and resorting
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 6th April 2008, 07:55 AM

Posting Permissions

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