git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@2049 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2008-07-20 20:06:19 +00:00
parent 6f8919d301
commit 4ea033f63d
42 changed files with 247 additions and 198 deletions

View File

@@ -1,15 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenRa.TechTree;
using Ijw.DirectX;
using OpenRa.FileFormats;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using OpenRa.FileFormats;
using OpenRa.Game.Graphics;
using OpenRa.TechTree;
namespace OpenRa.Game
{
using GRegion = OpenRa.Game.Graphics.Region;
class Sidebar
{
TechTree.TechTree techTree;
@@ -17,11 +17,11 @@ namespace OpenRa.Game
SpriteRenderer spriteRenderer, clockRenderer;
Sprite blank;
Game game;
readonly Region region;
readonly GRegion region;
Animation clockAnimation = new Animation("clock");
public Region Region { get { return region; } }
public GRegion Region { get { return region; } }
public float Width { get { return spriteWidth * 2; } }
Dictionary<string, Sprite> sprites = new Dictionary<string,Sprite>();
@@ -33,7 +33,7 @@ namespace OpenRa.Game
{
this.techTree = game.players[ game.localPlayerIndex ].TechTree;
this.game = game;
region = Region.Create(game.viewport, DockStyle.Right, 128, Paint, MouseHandler);
region = GRegion.Create(game.viewport, DockStyle.Right, 128, Paint, MouseHandler);
game.viewport.AddRegion( region );
spriteRenderer = new SpriteRenderer(renderer, false);
clockRenderer = new SpriteRenderer(renderer, true);