I've also fixed a transparency issue in the menu. It helps for clarity if the menu items for players who are not in the game are transparent and non-interactable. And the same goes for the team selection elements if teamplay isn't on. When I first put that in the game, I used a hack by simply covering those menu items with a semi-transparent image of the same colour as the menu background. But that no longer worked after I created parchment for the background.
So I set about trying to find a way to actually set the alpha of the menu items. Turns out that you can loop over all the children of a game object, which looked promising. Not having to separately set the alpha for every individual menu item sounds good to me. But then I ran into the problem that accessing the alpha works differently for the various types of menu items like texts, buttons and images. Which meant more work than I'd hoped.
And then I found out about Canvas Groups. Which do exactly what I wanted. You can use them to set both the alpha and interactability of a menu item and all its children. I guess the lesson here is Google first, code later :).
Turns out you can add menu items to the editor by placing a script in a folder named "Editor" in your project. And the script that you need for this is really simple, courtesy of the people who put in the time to figure this out. You can find the relevant thread here. This may just become a standard addition to my Unity projects.
The main part of this update will consist of a number (we're not yet sure how many) of missions that can be played independently from the campaign. We're calling them Challenge Missions, since they're supposed to be a challenge for players who have finished the campaign. But they will have an easy setting if that's more to your liking. And a hard setting for if you're feeling particularly masochistic.
These mission will have dialogues, just like the campaign, but no overarching story line. So the order in which you play these missions won't matter. Story-wise these missions are set after the campaign. Having said that, we're do try to keep the spoilers to a minimum.
Speaking of which, here is a screenshot of one of the challenge missions (obviously a work in progress):
Until then: remember that to err is human, to arr is pirate!
- Willem -