mirror of
https://github.com/Phantop/LADXHD.git
synced 2024-11-01 04:14:22 +00:00
30 lines
914 B
C#
30 lines
914 B
C#
using System.Collections.Generic;
|
|
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using ProjectZ.InGame.Controls;
|
|
|
|
namespace ProjectZ.InGame.Interface
|
|
{
|
|
public class InterfacePage
|
|
{
|
|
public InterfaceElement PageLayout;
|
|
|
|
public virtual void OnLoad(Dictionary<string, object> intent) { }
|
|
|
|
public virtual void OnPop(Dictionary<string, object> intent) { }
|
|
|
|
public virtual void OnReturn(Dictionary<string, object> intent) { }
|
|
|
|
public virtual void Update(CButtons pressedButtons, GameTime gameTime)
|
|
{
|
|
PageLayout?.PressedButton(pressedButtons);
|
|
PageLayout?.Update();
|
|
}
|
|
|
|
public virtual void Draw(SpriteBatch spriteBatch, Vector2 position, int scale, float transparency)
|
|
{
|
|
PageLayout?.Draw(spriteBatch, position, scale, transparency);
|
|
}
|
|
}
|
|
}
|