axiosuitestbed

axiosuitestbed Commit Details


Date:2012-11-21 00:30:00 (11 years 10 months ago)
Author:Natalie Adams
Branch:default
Commit:aefb416b2b98
Parents: 1537daccd6f0
Message:Updating testbed

Changes:
Maxios_ui_testbed/axios_ui_testbed/Screens/UIScreen1.cs (3 diffs)

File differences

axios_ui_testbed/axios_ui_testbed/Screens/UIScreen1.cs
7373
7474
7575
76
76
7777
7878
7979
80
8081
8182
8283
......
8990
9091
9192
92
93
9394
9495
9596
......
132133
133134
134135
135
136
136137
137138
138139
x.MouseDown += new AxiosEvents.AxiosHandler(x_MouseDown);
AddGameObject(x);
b = new AxiosButton();
//b.Position = new Vector2(3f, 3f);
b.Position = new Vector2(3f, 3f);
b.ClickTexture = _blocktextures[0, 0];
b.NormalTexture = _blocktextures[0, 1];
b.HoverTexture = _blocktextures[0, 2];
//b.Position = new Vector2(10, 10);
b.MouseDown += new AxiosEvents.AxiosHandler(b_MouseDown);
b.Origin = new Vector2(b.ClickTexture.Width / 2, b.ClickTexture.Height / 2);
AddGameObject(b);
r1 = new Rectangle((int)obj1.X, (int)obj1.Y, b.Width, b.Height);
r2 = new Rectangle((int)obj2.X, (int)obj2.Y, b.Width, b.Height);
r3 = new Rectangle((int)b.Position.X, (int)(b.Position.Y), (int)Math.Floor(ConvertUnits.ToSimUnits(b.Width)), (int)Math.Ceiling(ConvertUnits.ToSimUnits(b.Height)));
r4 = new AxiosRectangle(b.Position.X, b.Position.Y, ConvertUnits.ToSimUnits(b.Width), (ConvertUnits.ToSimUnits(b.Height)));
r4 = new AxiosRectangle(ConvertUnits.ToSimUnits(b.Position.X), ConvertUnits.ToSimUnits(b.Position.Y), ConvertUnits.ToSimUnits(b.Width), (ConvertUnits.ToSimUnits(b.Height)));
}
void x_MouseDown(object sender, AxiosGameScreen gameScreen, InputState input)
ScreenManager.SpriteBatch.DrawString(sf, "MP1 - " + mp1.ToString(), new Vector2(-200, -300), Color.Black);
ScreenManager.SpriteBatch.DrawString(sf, "MP2 - " + mp2.ToString(), new Vector2(-200, -280), Color.Black);
ScreenManager.SpriteBatch.DrawString(sf, "MP3 - " + mp3.ToString(), new Vector2(-200, -260), Color.Black);
ScreenManager.SpriteBatch.DrawString(sf, "r5 - " + r5.ToString(), new Vector2(-200, -240), Color.Black);
ScreenManager.SpriteBatch.DrawString(sf, "MP4 - " + r5.ToString(), new Vector2(-200, -240), Color.Black);
ScreenManager.SpriteBatch.DrawString(sf, "obj1 - " + obj1.ToString(), new Vector2(-200, -220), Color.Black);
ScreenManager.SpriteBatch.DrawString(sf, "obj2 - " + obj2.ToString(), new Vector2(-200, -200), Color.Black);

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 0.41491s using 14 queries.