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

Replace "Debug" prefix with "Battlefield Control" for gameplay notifications. #12643

Merged
merged 5 commits into from Feb 1, 2017

Conversation

pchote
Copy link
Member

@pchote pchote commented Jan 29, 2017

This also introduces a SuppressNotifications flag that maps can use to disable the default messages if they want to display something different using Lua.

@pchote pchote force-pushed the battlefield-control branch 2 times, most recently from be405bd to 20a8ec8 Compare January 29, 2017 17:03
@pchote pchote changed the title Replace "Debug" prefix with "Battlefield Control" for win/loss messages. Replace "Debug" prefix with "Battlefield Control" for gameplay notifications. Jan 29, 2017
@pchote
Copy link
Member Author

pchote commented Jan 29, 2017

Added the other messages from #12387, which I had forgotten about.

Copy link
Contributor

@obrakmann obrakmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks otherwise fine, 👍

@@ -58,11 +62,13 @@ public void Tick(Actor self)

public void OnPlayerLost(Player player)
{
Game.Debug("{0} is defeated.", player.PlayerName);
if (info.SuppressNotifications)
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll probably want to move that to below the foreach, otherwise it would be suppressing more than just the notifications.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could have sworn that i'd done that... anyway, fixed.

Copy link
Contributor

@GraionDilach GraionDilach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

@RoosterDragon RoosterDragon merged commit 87040a3 into OpenRA:bleed Feb 1, 2017
@RoosterDragon
Copy link
Member

Changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants