summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
blob: 0fe35fd2c9ae723484d9835a77f7952bb66201dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "Sprite2d.h"

struct CScriptRectangle 
{
	Bool m_bIsUsed;
	Bool m_bIsAntialiased;
	uint16 m_wTextureId;
	CRect m_sRect;
	CRGBA m_sColor;
};

struct CTextLine 
{
	Float m_fScaleX;
	Float m_fScaleY;
	CRGBA m_sColor;
	Bool m_bJustify;
	Bool m_bCentered;
	Bool m_bBackground;
	Bool m_bBackgroundOnly;
	Float m_fWrapX;
	Float m_fCenterSize;
	CRGBA m_sBackgroundColor;
	Bool m_bTextProportional;
	int32 field_29;
	Bool m_bRightJustify;
	int32 field_31;
	int32 m_nFont;
	Float field_36;
	Float field_40;
	wchar m_awText[500];
};

class CTheScripts
{
public:
	static uint8 *ScriptSpace;//[160*1024]
	static CTextLine* IntroTextLines;
	static CScriptRectangle* IntroRectangles;
	static CSprite2d* ScriptSprites;
};