Skip to content

Commit

Permalink
Fixed 2.0 program names
Browse files Browse the repository at this point in the history
  • Loading branch information
nthexwn committed May 21, 2013
1 parent 5542787 commit 42b1302
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions Haxxit.MonoGame/GameStates/SpawnDialogGameState.cs
Expand Up @@ -69,31 +69,31 @@ public override void SubscribeAll()

private void OnScrollUp(DrawableRectangle rectangle)
{
if (currentScrollLevel < totalPrograms - 4)
if (currentScrollLevel > 0)
{
foreach (KeyValuePair<Haxxit.Programs.ProgramFactory, DrawableRectangle> pair in program_rectangles)
{
DrawableRectangle program_rectangle = pair.Value;
Rectangle area = program_rectangle.Area;
area.Y -= 72;
area.Y += 72;
program_rectangle.Area = area;
}
currentScrollLevel++;
currentScrollLevel--;
}
}

private void OnScrollDown(DrawableRectangle rectangle)
{
if (currentScrollLevel > 0)
if (currentScrollLevel < totalPrograms - 4)
{
foreach (KeyValuePair<Haxxit.Programs.ProgramFactory, DrawableRectangle> pair in program_rectangles)
{
DrawableRectangle program_rectangle = pair.Value;
Rectangle area = program_rectangle.Area;
area.Y += 72;
area.Y -= 72;
program_rectangle.Area = area;
}
currentScrollLevel--;
currentScrollLevel++;
}
}

Expand Down Expand Up @@ -174,11 +174,11 @@ public override void Draw(SpriteBatch sprite_batch)
}
if (currentScrollLevel > 0)
{
sprite_batch.DrawString(arial_16px_regular, "...", new Vector2(popup_window.Area.X + 10, popup_window.Area.Y + popup_window.Area.Height - 30), Color.White);
sprite_batch.DrawString(arial_16px_regular, "...", new Vector2(popup_window.Area.X + 10, popup_window.Area.Y + 20), Color.White);
}
if (currentScrollLevel < totalPrograms - 4)
{
sprite_batch.DrawString(arial_16px_regular, "...", new Vector2(popup_window.Area.X + 10, popup_window.Area.Y + 20), Color.White);
sprite_batch.DrawString(arial_16px_regular, "...", new Vector2(popup_window.Area.X + 10, popup_window.Area.Y + popup_window.Area.Height - 30), Color.White);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Haxxit.MonoGame/Programs/Player/Hacker2.cs
Expand Up @@ -15,7 +15,7 @@ public Hacker2Factory()
Size = 5;
SpawnWeight = 30;
ProgramCost = 1250;
TypeName = "Hacker 2.0";
TypeName = "Hacker2";
List<Command> commands = new List<Command>();
commands.Add(new DamageCommand("Crack 2.0", "Deletes 3 cells from target.", 3, 1));
Commands = commands;
Expand Down
2 changes: 1 addition & 1 deletion Haxxit.MonoGame/Programs/Player/Sniper2.cs
Expand Up @@ -15,7 +15,7 @@ public Sniper2Factory()
Size = 3;
SpawnWeight = 15;
ProgramCost = 1000;
TypeName = "Sniper 2.0";
TypeName = "Sniper2";
List<Command> commands = new List<Command>();
commands.Add(new DamageCommand("Snipe 2.0", "Deletes 2 cells from target.", 2, 3));
Commands = commands;
Expand Down
Expand Up @@ -15,7 +15,7 @@ public Trojan2Factory()
Size = 1;
SpawnWeight = 20;
ProgramCost = 1500;
TypeName = "Trojan 2.0";
TypeName = "Trojan2";
List<Command> commands = new List<Command>();
commands.Add(new DamageCommand("Breach 2.0", "Deletes 3 cells from target.", 3, 1));
Commands = commands;
Expand Down

0 comments on commit 42b1302

Please sign in to comment.