Description:
Add inline help shortcuts.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -1,4 +1,4 | |||||
|
1 | using System.Collections.Generic; |
|
1 | using System.Collections.Generic; |
|
2 | using Microsoft.Xna.Framework; |
|
2 | using Microsoft.Xna.Framework; |
|
3 | using Microsoft.Xna.Framework.Audio; |
|
3 | using Microsoft.Xna.Framework.Audio; |
|
4 | using Microsoft.Xna.Framework.Input; |
|
4 | using Microsoft.Xna.Framework.Input; |
@@ -747,17 +747,21 | |||||
|
747 |
|
747 | ||
|
748 | String header_left = String.Format("${0:}|{1:} trees⚘𐂷🌳", this.simulation.money, this.simulation.map.tree_count); |
|
748 | String header_left = String.Format("${0:}|{1:} trees⚘𐂷🌳", this.simulation.money, this.simulation.map.tree_count); |
|
749 | String header_middle = String.Format("{0:MMMMM yyyy} ({1:})", this.simulation.DateTime, this.simulation.Season); |
|
749 | String header_middle = String.Format("{0:MMMMM yyyy} ({1:})", this.simulation.DateTime, this.simulation.Season); |
|
|
750 | String header_right = String.Format("Hotkeys: Arrow keys; (F)orest Policy; (B)udget; 0 toggles pause"); | ||
|
750 |
|
751 | ||
|
751 | this.Window.Title = String.Format("Isometric Park [{0:}]", header_middle); |
|
752 | this.Window.Title = String.Format("Isometric Park [{0:}]", header_middle); |
|
752 | Vector2 dimensions = monoFont.MeasureString(header_middle); |
|
753 | Vector2 middle_dimensions = monoFont.MeasureString(header_middle); |
|
|
754 | Vector2 right_dimensions = monoFont.MeasureString(header_right); | ||
|
753 |
|
755 | ||
|
754 | float middle_start = (int)((FNAGame.width / 2) - (dimensions.X / 2)); |
|
756 | float middle_start = (int)((FNAGame.width / 2) - (middle_dimensions.X / 2)); |
|
|
757 | float right_start = (int)(FNAGame.width - right_dimensions.X - 10.0f); | ||
|
755 |
|
758 | ||
|
756 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(0, 0, width, (int)dimensions.Y), Color.White, 0.51f); |
|
759 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(0, 0, width, (int)middle_dimensions.Y), Color.White, 0.51f); |
|
757 |
|
760 | ||
|
758 |
|
761 | ||
|
759 | batch.DrawString(monoFont, header_left, new Vector2(1, 1), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f); |
|
762 | batch.DrawString(monoFont, header_left, new Vector2(1, 1), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f); |
|
760 | batch.DrawString(monoFont, header_middle, new Vector2(middle_start, 1), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f); |
|
763 | batch.DrawString(monoFont, header_middle, new Vector2(middle_start, 1), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f); |
|
|
764 | batch.DrawString(monoFont, header_right, new Vector2(right_start, 1), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f); | ||
|
761 | #endregion draw_header |
|
765 | #endregion draw_header |
|
762 |
|
766 | ||
|
763 |
|
767 |
@@ -23,7 +23,7 | |||||
|
23 | { |
|
23 | { |
|
24 |
|
24 | ||
|
25 | public static Node<DialogOption> introTree = new Node<DialogOption>( |
|
25 | public static Node<DialogOption> introTree = new Node<DialogOption>( |
|
26 | new DialogOption{response = "Welcome to your new park, director! You can use the mouse or arrow keys to move around, and the plus and minus keys to zoom in and out.", |
|
26 | new DialogOption{response = "Welcome to your new park, director! You can use the mouse or arrow keys to move around, and the plus and minus keys to zoom in and out. B opens the budget and F lets you adjust Forest Policy.", |
|
27 | speaker = "The Governor" |
|
27 | speaker = "The Governor" |
|
28 | }, |
|
28 | }, |
|
29 | new Node<DialogOption>(new DialogOption { choice = "Okay", |
|
29 | new Node<DialogOption>(new DialogOption { choice = "Okay", |
You need to be logged in to leave comments.
Login now