So I have a question. I have a unity ui buttons set up for interactions with custom button animations.
However when I press a button to start the interaction like the talk or use interaction, the interaction menu disappears instantly and starts the action list.
I want to delay the interaction starting so the interaction menu can show my button pressed animation.
Comments
Dialogue option numbers can be disabled by unchecking Prefix with index numbers? in the DialogList elements properties box.
The Mark options alread used? option works by changing the "Normal color" in the UI Button component, which only shows if the Transition is set to Color Tint. If you want it to work with another transition type, you can do it through custom script. You can check if the active Conversation has had a given option chosen with:
bool hasBeenChosen = AC.KickStarter.playerInput.activeConversation.OptionHasBeenChosen (i);
Where "i" is an integer variable that represents the slot index number.
If your button animations are wired up through Unity UI, check your Button's Target graphic. This sounds like a Unity UI issue rather than AC.
Delaying the removal of Interaction menus is not currently possible - there are issues involving e.g. repeated clicks of the UI on the player's part. I will, however, consider its viability in an update.
When an Interaction menu closes as a result of a Hotspot click, however, it does indeed disappear instantly - I shall address this in the next update.
_menu.ForceOff ();
To get a regular fade, call:
_menu.TurnOff ();
This is the change I believe should be made in the official release.
If you want a different animation to play when turning it off as a result of this, probably best to invoke the OnHotspotInteract custom event to override which animation is played. More on custom events can be found in the Manual as well as this tutorial.
I'm afraid I can't recreate your "prefix numbers" issue - the default interface shows them as it should. Does the issue occur for you if you load up the 3D Demo game (scene + Managers) and make the same change? (switch the Conversation's Source to Unity UI Prefab and enable prefixing)