axiosengine 

axiosengine Commit Details


Date:2012-05-19 16:19:06 (12 years 4 months ago)
Author:Natalie Adams
Branch:master
Commit:859a6c3c9d8a10785502bfc11cd3ee1876cd9882
Parents: 2ffb70d9fc9b143bc9af4ec87607e732571c3431
Message:- Fixing bug where loadrecentangleitem wouldn't be called by Gleed2D library

Changes:

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

Branches

Number of commits:
Page rendered in 0.07349s using 14 queries.