C# Class FSO.Client.UI.UILayer

Inheritance: IGraphicsLayer
Exibir arquivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
SpriteBatch FSO.Client.UI.Framework.UISpriteBatch
Tooltip string
TooltipProperties FSO.Common.Rendering.Framework.Model.UITooltipProperties
Tween FSO.Client.UI.Framework.UITween
inputManager FSO.Common.Rendering.Framework.IO.InputManager

Public Methods

Method Description
AddDialog ( DialogReference dialog ) : void
AddExternal ( UIExternalContainer cont ) : void
AddProcess ( IUIProcess Proc ) : void
AddScreen ( FSO.Client.UI.Framework.UIScreen Screen ) : void

Adds a UIScreen instance to this ScreenManager's list of screens. This function is called from Lua.

Draw ( GraphicsDevice device ) : void
Draw ( FSO.Client.UI.Framework.UISpriteBatch SBatch ) : void
DrawTooltip ( SpriteBatch batch, Vector2 position, float opacity, Color color ) : void
Initialize ( GraphicsDevice device ) : void
PreDraw ( GraphicsDevice device ) : void
PreDraw ( FSO.Client.UI.Framework.UISpriteBatch SBatch ) : void
RemoveCurrent ( ) : void
RemoveDialog ( DialogReference dialog ) : void
RemoveDialog ( UIElement dialog ) : void
RemoveExternal ( UIExternalContainer cont ) : void
RemoveProcess ( IUIProcess Proc ) : void
RemoveScreen ( FSO.Client.UI.Framework.UIScreen Screen ) : void
UILayer ( Microsoft G, SpriteFont SprFontBig, SpriteFont SprFontSmall ) : System
Update ( UpdateState state ) : void
debugButton_OnButtonClick ( UIElement button ) : void

Private Methods

Method Description
AdjustModal ( ) : void
GameFacade_OnContentLoaderReady ( ) : void
GraphicsDevice_DeviceReset ( object sender, EventArgs e ) : void

Method Details

AddDialog() public method

public AddDialog ( DialogReference dialog ) : void
dialog DialogReference
return void

AddExternal() public method

public AddExternal ( UIExternalContainer cont ) : void
cont FSO.Client.UI.Framework.UIExternalContainer
return void

AddProcess() public method

public AddProcess ( IUIProcess Proc ) : void
Proc IUIProcess
return void

AddScreen() public method

Adds a UIScreen instance to this ScreenManager's list of screens. This function is called from Lua.
public AddScreen ( FSO.Client.UI.Framework.UIScreen Screen ) : void
Screen FSO.Client.UI.Framework.UIScreen The UIScreen instance to be added.
return void

Draw() public method

public Draw ( GraphicsDevice device ) : void
device GraphicsDevice
return void

Draw() public method

public Draw ( FSO.Client.UI.Framework.UISpriteBatch SBatch ) : void
SBatch FSO.Client.UI.Framework.UISpriteBatch
return void

DrawTooltip() public method

public DrawTooltip ( SpriteBatch batch, Vector2 position, float opacity, Color color ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
opacity float
color Color
return void

Initialize() public method

public Initialize ( GraphicsDevice device ) : void
device GraphicsDevice
return void

PreDraw() public method

public PreDraw ( GraphicsDevice device ) : void
device GraphicsDevice
return void

PreDraw() public method

public PreDraw ( FSO.Client.UI.Framework.UISpriteBatch SBatch ) : void
SBatch FSO.Client.UI.Framework.UISpriteBatch
return void

RemoveCurrent() public method

public RemoveCurrent ( ) : void
return void

RemoveDialog() public method

public RemoveDialog ( DialogReference dialog ) : void
dialog DialogReference
return void

RemoveDialog() public method

public RemoveDialog ( UIElement dialog ) : void
dialog FSO.Client.UI.Framework.UIElement
return void

RemoveExternal() public method

public RemoveExternal ( UIExternalContainer cont ) : void
cont FSO.Client.UI.Framework.UIExternalContainer
return void

RemoveProcess() public method

public RemoveProcess ( IUIProcess Proc ) : void
Proc IUIProcess
return void

RemoveScreen() public method

public RemoveScreen ( FSO.Client.UI.Framework.UIScreen Screen ) : void
Screen FSO.Client.UI.Framework.UIScreen
return void

UILayer() public method

public UILayer ( Microsoft G, SpriteFont SprFontBig, SpriteFont SprFontSmall ) : System
G Microsoft
SprFontBig Microsoft.Xna.Framework.Graphics.SpriteFont
SprFontSmall Microsoft.Xna.Framework.Graphics.SpriteFont
return System

Update() public method

public Update ( UpdateState state ) : void
state FSO.Common.Rendering.Framework.Model.UpdateState
return void

debugButton_OnButtonClick() public method

public debugButton_OnButtonClick ( UIElement button ) : void
button FSO.Client.UI.Framework.UIElement
return void

Property Details

SpriteBatch public_oe property

public UISpriteBatch,FSO.Client.UI.Framework SpriteBatch
return FSO.Client.UI.Framework.UISpriteBatch

Tooltip public_oe property

public string Tooltip
return string

TooltipProperties public_oe property

public UITooltipProperties,FSO.Common.Rendering.Framework.Model TooltipProperties
return FSO.Common.Rendering.Framework.Model.UITooltipProperties

Tween public_oe property

public UITween,FSO.Client.UI.Framework Tween
return FSO.Client.UI.Framework.UITween

inputManager public_oe property

public InputManager,FSO.Common.Rendering.Framework.IO inputManager
return FSO.Common.Rendering.Framework.IO.InputManager