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

Updated the LineGraphWidget with new layout #16702

Merged
merged 2 commits into from Jul 21, 2019

Conversation

teinarss
Copy link
Contributor

@teinarss teinarss commented Jun 16, 2019

Closes #16597
Closes #16068

image

Copy link
Member

@abcdefg30 abcdefg30 left a comment

Choose a reason for hiding this comment

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

Can we change m to min while we are at it? m usually refers to Meter which is not what we want in this context, I think.

@teinarss
Copy link
Contributor Author

@teinarss
Copy link
Contributor Author

Updated

@pchote pchote added this to the Next Release milestone Jul 19, 2019
@pchote
Copy link
Member

pchote commented Jul 20, 2019

Can we please move the player list to the right, add axis labels ("Army Value" / "Game Minute", "Earnings" / "Game Minute"), and drop the then-redundant title row? This would make the graphs a lot more conventional.

@pchote
Copy link
Member

pchote commented Jul 20, 2019

See 63069bc for drawing rotated text. Use an angle of (float)Math.Pi / 2.

@teinarss teinarss force-pushed the update_spec_graphs branch 2 times, most recently from 7cfcfe9 to 3aa4c80 Compare July 21, 2019 09:41
@teinarss
Copy link
Contributor Author

Updated and fixed the updates to actual use game minute

@teinarss teinarss force-pushed the update_spec_graphs branch 2 times, most recently from b1579b4 to 30d8af9 Compare July 21, 2019 11:18
pchote
pchote previously approved these changes Jul 21, 2019
Copy link
Member

@pchote pchote left a comment

Choose a reason for hiding this comment

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

Huge improvement over the current graphs. Great work, and thanks for putting up with my scope creeping. Just a couple of minor code style suggestions then 👍

OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs Outdated Show resolved Hide resolved
OpenRA.Mods.Common/Widgets/LineGraphWidget.cs Outdated Show resolved Hide resolved
OpenRA.Mods.Common/Widgets/LineGraphWidget.cs Outdated Show resolved Hide resolved
@teinarss
Copy link
Contributor Author

Updated

@reaperrr reaperrr merged commit f46cad5 into OpenRA:bleed Jul 21, 2019
if (self.World.WorldTick % 1500 == 1)
var timestep = self.World.IsReplay ? replayTimestep : self.World.Timestep;

if (timestep * self.World.WorldTick % 60000 == 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

This breaks if 60000 can not be divided properly with the timestep. Example case: fast gamespeed in RA. #17002

@teinarss teinarss deleted the update_spec_graphs branch April 15, 2021 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants