-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathText.cs
53 lines (50 loc) · 1.62 KB
/
Text.cs
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
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RagemakerToPDF
{
class Text : RageItem
{
/*
* <Text>
<itemx>463</itemx>
<itemy>65</itemy>
<width>181</width>
<height>181</height>
<color>39219</color>
<style>1</style>
<size>16</size>
<rotation>0</rotation>
<text>"HEY PAUL, I HEARD YOU WANTED TO BUY A NICE GOOD JUICY STEAK!"-"THAT'S RIGHT, JOSEHPHINE!"
"WELL, IT'S YOUR LUCKY DAY, BECAUS</text>
<align>right</align>
<bgOn>false</bgOn>
<bgColor>16777215</bgColor>
<opacity>1</opacity>
</Text>
*/
public enum ALIGN
{
LEFT, CENTER, RIGHT
};
public float width = 10f;
public float height = 10f;
public string color = "#000000";
/* 0: Courier (LD?) Regular
* 1: Courier (LD?) Bold
* 2: Verdana Bold or Tahoma Bold. Probably Tahoma Bold.
*/
public int style = 0;
public float size = 16f;
public string text = "";
public ALIGN align = ALIGN.LEFT;
public bool bgOn = false;
public string bgColor = "#FFFFFF";
public override string ToString()
{
return this.GetType().Name + "(" + this.x + "," + this.y + "," + this.width + "," + this.height + "," + this.color +"," + this.style +"," + this.size +"," + this.align + "," + this.opacity + "," + this.rotation + "," + this.text + ")";
}
}
}