0
Not a bug

bug and idea - Action Manager Not remembering changes

SeanB 6 years ago in By Screen / Design updated by Alin Alexandru Matei 6 years ago 0
Please see bottom for workaround request.

Action Manager is abandoning my changes to order and hierarchical actions. I am going to have to drop many advanced behaviors I wanted to use if I cannot get actions to work in order expected, and get the manager to remember my changes.

I have 3 accessoriy items on the left, hidden to start. When 3 other items are clicked, each will make one of the 3 accessories appear. When an accessory is clicked, it is supposed to
Tap > hide self (accessory at left)
Tap  > show mirror accessory at right
    |_  increment a counter
         |_ display a counter
             |_ check if counter is at 3. If so, hide all the right accessories and show a new state.

I cannot get the hide to work - it keeps getting cut off and I have to tap a second time. So I try to go back to this - all nested under a single tap.

Tap > hide self
|_ show mirror accessory at right
|_ increment a counter
|_ display a counter
|_ check if counter is at 3. If so, hide all the right accessories and show a new state.

IB will NOT let me nest the show under the hide! Next time I close/reopen the Actions Manager

Tap > hide self
Tap > show mirror accessory at right
|_ increment a counter
|_ display a counter
|_ check if counter is at 3. If so, hide all the right accessories and show a new state.

I switched the fadeIn first, and now it will keep the nested fades - why now? But the fade out still does not happen.

 Tap > fade in mirror
        |_ fade out self
        |_ show mirror accessory at right
        |_ increment a counter
        |_ display a counter
        |_ check if counter is at 3. If so, hide all the right accessories and show a new state.

I first tried a single "move" of the accessory but then that still leaves me with need to fade it out, and fade in the mirror after the move - because I can't remove the tap event handler on the 1st element. I only want it to be used once.

At this point I cannot use my counter process to have the page respond to the user successfully completing 3 required actions, and reward them with a new animation). And that lessens the complexity and quality of my book :(.

Possible workaround request: 
A new behavior - Remove Tap - so user can only tap an item once.

Answer

Answer
Not a bug
Here is a sample app for this situation. A solution for the idea of removing the Tap of an element is to have a transparent PNG that covers that element:
346 - Counter app.zip

The sample app idea if I understood correctly your situation: Tap A element Hide self, Show A' (which is the right side as an accessories), Increment and Display Counter then if Counter is 3 the accessories in the right side ( which are group 2) will hide and elements on the left side (which are group 1) will show. These behaviors are made for B and C to. To prevent the user for tapping them again I used transparent PNG to cover the elements on the left side with a Tap-Show for every element.
It's now showing one of the accessories over at bottom left. Seems like actions become corrupted.

I went back to single set of 3 accessories with moves, but the last one always remains visible. And my original trigger items can reshow the 3 accessories because I can't remove their tap handlers.
Answer
Not a bug
Here is a sample app for this situation. A solution for the idea of removing the Tap of an element is to have a transparent PNG that covers that element:
346 - Counter app.zip

The sample app idea if I understood correctly your situation: Tap A element Hide self, Show A' (which is the right side as an accessories), Increment and Display Counter then if Counter is 3 the accessories in the right side ( which are group 2) will hide and elements on the left side (which are group 1) will show. These behaviors are made for B and C to. To prevent the user for tapping them again I used transparent PNG to cover the elements on the left side with a Tap-Show for every element.
what about the manager sometimes missing actions added by the original panel? Keep an eye out for that, it keeps happening. They get out of sync.

I'm having no luck with the counters and I've added identical steps as yours. I'd send you a dropbox link but dropbox is choking on the upload.

I do see your examples work. I think my page is corrupt or too complex. I will try from scratch.

BTW I am not blocked, just not using the counters now - staying focused on basics to get the book out!
So far I was not able to recreate the missing action in the Action Manager added by the original panel, but I will keep trying to see how to make this situation. Thank you for your feedback.