mirror of
https://github.com/Phantop/LADXHD.git
synced 2024-11-01 04:14:22 +00:00
30 lines
843 B
C#
30 lines
843 B
C#
|
using Microsoft.Xna.Framework;
|
|||
|
using ProjectZ.InGame.Controls;
|
|||
|
|
|||
|
namespace ProjectZ.InGame.Overlay.Sequences
|
|||
|
{
|
|||
|
class PictureSequence : GameSequence
|
|||
|
{
|
|||
|
public PictureSequence()
|
|||
|
{
|
|||
|
_sequenceWidth = 103;
|
|||
|
_sequenceHeight = 128;
|
|||
|
|
|||
|
// background
|
|||
|
Sprites.Add(new SeqSprite("trade_picture", new Vector2(0, 0), 0));
|
|||
|
}
|
|||
|
|
|||
|
public override void Update()
|
|||
|
{
|
|||
|
base.Update();
|
|||
|
|
|||
|
// can close the overlay if the dialog isn't running anymore
|
|||
|
if (!Game1.GameManager.DialogIsRunning() && ControlHandler.ButtonPressed(CButtons.B))
|
|||
|
{
|
|||
|
Game1.GameManager.InGameOverlay.CloseOverlay();
|
|||
|
Game1.GameManager.StartDialogPath("close_picture");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|