AxiosEngine-old 

AxiosEngine-old Commit Details


Date:2012-05-19 16:19:00 (12 years 7 months ago)
Author:Natalie Adams
Branch:default
Commit:6ce01434b6b1
Parents: c4506ad5a55e
Message:- Fixing bug where loadrecentangleitem wouldn't be called by Gleed2D library

Changes:
Maxios/Axios_settings.cs (1 diff)
Maxios/Engine/Gleed2D/RectangleItem.cs (1 diff)

File differences

axios/Axios_settings.cs
8787
8888
8989
90
91
9092
9193
9294
* - Adding cut extension - [Author: BJD]
* - Adding support for custom handling of Gleed2D items
* - Changing location of GetTexture to extensions
* - Enabling commented log messages
* - Fixing bug where loadrecentangleitem wouldn't be called by Gleed2D library
*
*/
#endregion
axios/Engine/Gleed2D/RectangleItem.cs
2727
2828
2929
30
31
32
33
30
31
32
33
34
35
3436
3537
3638
public override void load(AxiosGameScreen gameScreen, ref Dictionary<string, Texture2D> cache)
{
base.load(gameScreen, ref cache);
_body = BodyFactory.CreateRectangle(gameScreen.World, ConvertUnits.ToSimUnits(Width), ConvertUnits.ToSimUnits(Height), 1f);
_body.Position = ConvertUnits.ToSimUnits(Position) + new Vector2(ConvertUnits.ToSimUnits(Width)/2, ConvertUnits.ToSimUnits(Height)/2);
_body.UserData = this;
if (gameScreen.LoadRectangleItem(this))
{
_body = BodyFactory.CreateRectangle(gameScreen.World, ConvertUnits.ToSimUnits(Width), ConvertUnits.ToSimUnits(Height), 1f);
_body.Position = ConvertUnits.ToSimUnits(Position) + new Vector2(ConvertUnits.ToSimUnits(Width) / 2, ConvertUnits.ToSimUnits(Height) / 2);
_body.UserData = this;
}
}
}
}

Archive Download the corresponding diff file

Page rendered in 0.59792s using 14 queries.