Forum rules - please read before posting.

Increasing the amount of Action block colours to choose from in the ActionList Editor window

LuxLux
edited April 3 in Technical Q&A

I find the ability to colour the Actions in the ActionList window extremely useful, they really help me understand what is happening. Having more colours to choose from would be great as I am constantly colour coding my ActionLists and I'm finding there aren't quite enough colours to effectively do this.

I have read that I can edit the file below to add more colours but I am reluctant to do so as I don't fully understand what I am doing and I don't want to mess up my game :


Assets/AdventureCreator/Scripts/ActionList/Action.cs

    private static string[] colorOptions = new string[] { "Red", "Blue", "Green", "Yellow" };

private static Color[] colors = new Color[] { Color.red, Color.blue, Color.green, Color.yellow };

Should I not worry and go ahead and edit it? Is there an easier way to add more colours?

[edit] - Being able to pick colours from a palette or wheel would be amazing.

Thanks.

Comments

  • I have read that I can edit the file below to add more colours

    No color option data is stored in the Action script - but you can set an Action's overrideColor property to whatever value you like.

    The ActionList Editor's functionality to set this value is handled within the PerformEmptyCallBack and CreateEmptyMenu functions. If you make changes to these by incorporating more colours, they'll be reverted upon updating AC - however, the colour-changes themselves should be retained.

    Being able to pick colours from a palette or wheel would be amazing.

    I'm not aware of a way to provide this via Unity's context menu system.

  • The ActionList Editor's functionality to set this value is handled within the PerformEmptyCallBack and CreateEmptyMenu functions

    That is great, thank you.

    I'm not aware of a way to provide this via Unity's context menu system.

    No problem, the suggested method will work just fine..

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.