Skip to content

Added size and colour parameters to UI.Message()#499

Closed
Somfic wants to merge 5 commits intokrpc:masterfrom
Somfic:master
Closed

Added size and colour parameters to UI.Message()#499
Somfic wants to merge 5 commits intokrpc:masterfrom
Somfic:master

Conversation

@Somfic
Copy link
Contributor

@Somfic Somfic commented Oct 1, 2018

This adds parameters to change the default size and colour of messages when using UI.Message().
Added the size and color parameter, modified the summary as well.

@Somfic Somfic closed this Oct 1, 2018
@Somfic
Copy link
Contributor Author

Somfic commented Oct 1, 2018

Namespaces cannot be added - closed.

@djungelorm
Copy link
Member

I don't follow why you abandoned this. What went wrong?

@Somfic
Copy link
Contributor Author

Somfic commented Oct 7, 2018

Travis Ci kept giving namespace errors

djungelorm added a commit that referenced this pull request Oct 7, 2018
@djungelorm
Copy link
Member

I managed to get it to work - see the commit above.

I used a slightly esoteric kRPC feature to allow color to be treated as a default parameter (using KRPCDefaultValue to work around the C# limitation that you can't have an object as the default value)

I also reordered the parameters to put the new color and size parameters at the end, to maintain backwards compatibility for older code.

@Somfic
Copy link
Contributor Author

Somfic commented Oct 7, 2018

That's great!

@djungelorm djungelorm added this to the 0.4.8 milestone Oct 7, 2018
@djungelorm djungelorm added enhancement New feature or request service:drawing labels Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request service:drawing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants