re3/src/control/Script.h

48 lines
825 B
C
Raw Normal View History

2019-06-12 11:46:02 +00:00
#pragma once
2019-06-14 23:34:19 +00:00
#include "Sprite2d.h"
struct CScriptRectangle
{
2019-06-16 22:16:38 +00:00
bool m_bIsUsed;
bool m_bIsAntialiased;
2019-06-14 23:34:19 +00:00
uint16 m_wTextureId;
CRect m_sRect;
CRGBA m_sColor;
};
struct CTextLine
{
2019-06-16 22:16:38 +00:00
float m_fScaleX;
float m_fScaleY;
2019-06-14 23:34:19 +00:00
CRGBA m_sColor;
2019-06-16 22:16:38 +00:00
bool m_bJustify;
bool m_bCentered;
bool m_bBackground;
bool m_bBackgroundOnly;
float m_fWrapX;
float m_fCenterSize;
2019-06-14 23:34:19 +00:00
CRGBA m_sBackgroundColor;
2019-06-16 22:16:38 +00:00
bool m_bTextProportional;
2019-06-14 23:34:19 +00:00
int32 field_29;
2019-06-16 22:16:38 +00:00
bool m_bRightJustify;
2019-06-14 23:34:19 +00:00
int32 field_31;
int32 m_nFont;
2019-06-16 22:16:38 +00:00
float field_36;
float field_40;
2019-06-14 23:34:19 +00:00
wchar m_awText[500];
};
2019-06-12 11:46:02 +00:00
class CTheScripts
{
public:
static uint8 *ScriptSpace;//[160*1024]
2019-06-14 23:34:19 +00:00
static CTextLine* IntroTextLines;
static CScriptRectangle* IntroRectangles;
static CSprite2d* ScriptSprites;
static bool DbgFlag;
static uint32 OnAMissionFlag;
public:
static bool IsPlayerOnAMission();
2019-06-12 11:46:02 +00:00
};