I need a little help getting mask to work in my upcoming Check Your 6! module.
The situations is the following:
Two players, Player 1 and Player 2. The players have a order sheet which both players can open but only the owning player can edit - this works as it should.
I have made the sheet tabbed since I want more order tabs in the future. There should be a “Mask orders from opponent” button at the orders page, if not the resize the window and it will return.
When clicked I want it to mask the order sheet for the other side, i.e. when the players are giving orders the other side can’t peek.
The masking and unmasking seems to work ok, i.e. I the non owning player get the mask image but can see the written orders for the other player. So it looks like I need to do something more, but not really sure what.
When you retire as player 1 and join as player 2, do you also edit your preferences and change your password? If not, then you are not actually changing sides properly.
In the setup of your secret orders counter, is the Mask trait below the trait that holds the typed in orders in the list of traits? You need to take into account the expansion of all prototypes. If the Mask trait is not the last trait in the list, or at least after the orders bit, then the masking will not be happening properly.
If both these things are OK, then you will need to post a link to your module so we can look at it more closely.
The problem is that you are defining your Masking element in a separate at-start stack from your two order order pieces. You are assuming that the masking element will end up ‘on top’ of the order pieces, but it isn’t. Why should it? The display order of unrelated non-stacking pieces is undefined.
The easy fix is to remove the large masking piece and instead, add a smaller Mask trait to each individual order piece via the prototype, placing the Mask trait at the bottom of the trait list. Nothing else needs to change, the ‘Hide orders’ button still works the same, it just masks each individual order instead of masking the large piece, which is actually ending up under the order pieces.