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

Allow overriding menu tip in ConsoleUI #2635

Merged
merged 1 commit into from
Jan 8, 2019

Conversation

HebaruSan
Copy link
Member

Motivation

The screen tip for the main menu is always "F10 - Menu" in ConsoleUI, but sometimes a more specific string might be helpful.

Changes

Now the "F10 - Menu" tip is changed on two screens:

  • "F10 - Links" on the mod info screen
  • "F10 - Sort" on the game instance list screen

As a bit of side cleanup, ConsoleScreen.LeftHeader and ConsoleScreen.CenterHeader are now changed from Func<string> variables to virtual string functions (to be consistent with the newly added MenuTip). This is a cleaner way of providing a function that can be overridden in a child class.

@HebaruSan HebaruSan added Enhancement New features or functionality Pull request ConsoleUI Issues affecting the interactive console UI labels Jan 6, 2019
@HebaruSan HebaruSan mentioned this pull request Jan 6, 2019
@DasSkelett
Copy link
Member

Nice 👍

@HebaruSan
Copy link
Member Author

Note that we reserve the right to change it back to Menu if we ever need to add non-link content to that menu. :)

@DasSkelett
Copy link
Member

I am willing to make this comprise.

@politas politas merged commit 9cfda86 into KSP-CKAN:master Jan 8, 2019
politas added a commit that referenced this pull request Jan 8, 2019
@HebaruSan HebaruSan deleted the feature/consoleui-menutip branch January 8, 2019 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ConsoleUI Issues affecting the interactive console UI Enhancement New features or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants