Property | Type | Description | |
---|---|---|---|
game | Game1 | ||
miniLightTarget | |||
miniMainTarget | |||
miniMapTileSize | Vector2 |
Method | Description | |
---|---|---|
CreateMiniMap ( System.Boolean dummy ) : void |
Creates a minimap - the new way!
|
|
Draw ( |
Draws the minimap on the screen
|
|
GetScaledInstance ( Microsoft.Xna.Framework.Graphics.Texture2D originalTexture, Vector2 targetSize ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Gets a scaled instance of a texture.
|
|
GetScaledInstance ( Microsoft.Xna.Framework.Graphics.Texture2D originalTexture, float factor ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Gets a scaled instance of a texture.
|
|
MapToMiniMap ( Point mapCoordinates ) : Point |
Converts map coordinates to mini map coordinates
|
|
MergeTextures ( Microsoft.Xna.Framework.Graphics.Texture2D toMerge ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Merges textures together to a big texture.
|
|
MiniMap ( |
||
MiniMapToMap ( Point miniMapCoordinates ) : Point |
Converts mini map to map coordinates
|
|
OnMouseClicked ( MouseEvent e ) : void | ||
OnMouseDrag ( MouseEvent e ) : void |
Method | Description | |
---|---|---|
ActionOnMiniMap ( Point miniMapLocation ) : void |
Perform an action on the given point
|
|
DrawScreenRectangle ( |
Draws the screen rectangle
|
|
GetScaledInstanceNoRenderTargetChange ( Microsoft.Xna.Framework.Graphics.Texture2D originalTexture, Vector2 targetSize, |
Gets a scaled instance of a texture.
|
|
ResetRenderTargets ( Microsoft.Xna.Framework.Graphics.RenderTargetBinding oldBindings ) : void | ||
SetRenderTargets ( Microsoft.Xna.Framework.Graphics.RenderTargetBinding &oldBindings, |
Sets the render target for scaling.
|
public CreateMiniMap ( System.Boolean dummy ) : void | ||
dummy | System.Boolean | Just a dummy |
return | void |
public Draw ( |
||
sb | SpriteBatch to draw on. | |
targetRectangle | The target rectangle the minimap will appear on. | |
return | void |
public GetScaledInstance ( Microsoft.Xna.Framework.Graphics.Texture2D originalTexture, Vector2 targetSize ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
originalTexture | Microsoft.Xna.Framework.Graphics.Texture2D | The original texture |
targetSize | Vector2 | The vector target size. |
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public GetScaledInstance ( Microsoft.Xna.Framework.Graphics.Texture2D originalTexture, float factor ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
originalTexture | Microsoft.Xna.Framework.Graphics.Texture2D | |
factor | float | |
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public MapToMiniMap ( Point mapCoordinates ) : Point | ||
mapCoordinates | Point | The map coordinates you want to convert |
return | Point |
public MergeTextures ( Microsoft.Xna.Framework.Graphics.Texture2D toMerge ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
toMerge | Microsoft.Xna.Framework.Graphics.Texture2D | The textures to merge, THEY MUST BE THE SAME SIZE. |
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public MiniMapToMap ( Point miniMapCoordinates ) : Point | ||
miniMapCoordinates | Point | The mini map coordinates you want to convert |
return | Point |
public OnMouseClicked ( MouseEvent e ) : void | ||
e | MouseEvent | |
return | void |
public RenderTarget2D,Microsoft.Xna.Framework.Graphics miniLightTarget | ||
return |
public RenderTarget2D,Microsoft.Xna.Framework.Graphics miniMainTarget | ||
return |