Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use strong name instead of enum GUIStyleName. #33

Closed
zwcloud opened this issue Oct 27, 2019 · 2 comments
Closed

Use strong name instead of enum GUIStyleName. #33

zwcloud opened this issue Oct 27, 2019 · 2 comments

Comments

@zwcloud
Copy link
Owner

zwcloud commented Oct 27, 2019

For example,

class StyleName
{
    public static readonly StyleName HorizontalCellSpacing;
    int value;
    string name;//for debugging or serialization
}

Then use in code:

GUILayout.PushStyle(StyleName.HorizontalCellSpacing, 5);
@zwcloud zwcloud added this to To do in Refactor: render-tree based architecture via automation Oct 27, 2019
@zwcloud zwcloud moved this from To do to In progress in Refactor: render-tree based architecture Oct 31, 2019
@zwcloud
Copy link
Owner Author

zwcloud commented Nov 3, 2019

Converted enum to class at commit cf38505.
TODO implement flexible custom named style

@zwcloud
Copy link
Owner Author

zwcloud commented Nov 11, 2019

done at 341333e

@zwcloud zwcloud closed this as completed Nov 11, 2019
Refactor: render-tree based architecture automation moved this from In progress to Done Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant