2019-06-12 13:46:02 +02:00
|
|
|
#pragma once
|
2019-06-15 01:34:19 +02:00
|
|
|
#include "Sprite2d.h"
|
|
|
|
|
|
|
|
struct CScriptRectangle
|
|
|
|
{
|
2019-06-17 00:16:38 +02:00
|
|
|
bool m_bIsUsed;
|
|
|
|
bool m_bIsAntialiased;
|
2019-06-15 01:34:19 +02:00
|
|
|
uint16 m_wTextureId;
|
|
|
|
CRect m_sRect;
|
|
|
|
CRGBA m_sColor;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct CTextLine
|
|
|
|
{
|
2019-06-17 00:16:38 +02:00
|
|
|
float m_fScaleX;
|
|
|
|
float m_fScaleY;
|
2019-06-15 01:34:19 +02:00
|
|
|
CRGBA m_sColor;
|
2019-06-17 00:16:38 +02:00
|
|
|
bool m_bJustify;
|
|
|
|
bool m_bCentered;
|
|
|
|
bool m_bBackground;
|
|
|
|
bool m_bBackgroundOnly;
|
|
|
|
float m_fWrapX;
|
|
|
|
float m_fCenterSize;
|
2019-06-15 01:34:19 +02:00
|
|
|
CRGBA m_sBackgroundColor;
|
2019-06-17 00:16:38 +02:00
|
|
|
bool m_bTextProportional;
|
2019-06-15 01:34:19 +02:00
|
|
|
int32 field_29;
|
2019-06-17 00:16:38 +02:00
|
|
|
bool m_bRightJustify;
|
2019-06-15 01:34:19 +02:00
|
|
|
int32 field_31;
|
|
|
|
int32 m_nFont;
|
2019-06-17 00:16:38 +02:00
|
|
|
float field_36;
|
|
|
|
float field_40;
|
2019-06-15 01:34:19 +02:00
|
|
|
wchar m_awText[500];
|
|
|
|
};
|
2019-06-12 13:46:02 +02:00
|
|
|
|
|
|
|
class CTheScripts
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static uint8 *ScriptSpace;//[160*1024]
|
2019-06-15 01:34:19 +02:00
|
|
|
static CTextLine* IntroTextLines;
|
|
|
|
static CScriptRectangle* IntroRectangles;
|
|
|
|
static CSprite2d* ScriptSprites;
|
2019-06-20 02:31:03 +02:00
|
|
|
static bool DbgFlag;
|
|
|
|
static uint32 OnAMissionFlag;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static bool IsPlayerOnAMission();
|
2019-06-20 11:20:52 +02:00
|
|
|
static void ScriptDebugLine3D(float x1, float y1, float z1, float x2, float y2, float z2, int col, int col2);
|
2019-06-12 13:46:02 +02:00
|
|
|
};
|