-
Notifications
You must be signed in to change notification settings - Fork 27
/
fullscreen.rlyt.py
133 lines (130 loc) · 3.71 KB
/
fullscreen.rlyt.py
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[
('lyt1', {
'a': 1,
'width': 608.0,
'height': 456.0
}),
('txl1', {
'textures': [
{'unk': 0, 'name': 'icon.tpl'},
{'unk': 1, 'name': 'opera.tpl'},
]
}),
('fnl1', {
'files': [
{'unk': 0, 'name': 'wbf1.brfna'},
{'unk': 0, 'name': 'wbf2.brfna'},
]
}),
('mat1', {
'materials': [
{
'name': 'textmat',
'tev_color': [0x0, 0x0, 0x0, 0x0], # Possibly background color
'tev_kcolor': [0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, ],
'unk_color': [0xff, 0xff, 0xff, 0xff], # Possibly the color of the thing itself
'unk_color_2': [0xff, 0xff, 0xff, 0xff],
'texref': [ { 'tex': 'opera.tpl', 'wrap_s': 0, 'wrap_t': 0 } ], # screwed up with wrap on
'ua2': [ (0.0, 0.0, 0.0, 1.0, 1.0) ],
'ua3': [ (1, 4, 0x1e, 0) ], # Changing this --> image disappears (not text, though)
'ua4': None,
'ua5': None,
'ua6': None,
'ua7': [],
'ua8': [],
'ua9': [],
'uaa': [0x77, 0, 0, 0], # was: [0x77, 0, 0, 0]
'uab': None,
}
]
}),
('pan1', {
'alpha': 0xff,
'alpha_2': 0x0,
'angle': 0,
'flags_1': 1,
'flags_2': 4,
'width': 608,
'height': 456,
'name': 'RootPane',
'x': 0,
'y': 0,
'xmag': 1,
'ymag': 1,
'z': 0
}),
'pas1',
#('txt1', {
#'alpha': 0xff,
#'alpha_2': 0x0,
#'angle': 0,
#'flags_1': 1,
#'flags_2': 0,
#'height': 38,
#'name': 'textbox',
#'width': 400,
#'x': 0,
#'y': 50,
#'xmag': 1,
#'ymag': 1,
#'z': 0,
#'~text.material': 'textmat',
#'~text.text': 'Some Text',
#'~text.font_idx': 0,
#'~text.unk4': 0,
#'~text.color1': 0xffffffff,
#'~text.color2': 0xffffffff,
#'~text.font_size_x': 32.0,
#'~text.font_size_y': 38.0,
#'~text.char_space': -1.0,
#'~text.line_space': -1.0,
#}),
#[('txt1', {
#'alpha': 0xff,
#'alpha_2': 0x0,
#'angle': 0,
#'flags_1': 1,
#'flags_2': 0,
#'height': 38,
#'name': 'textbox%d' % i,
#'width': 400,
#'x': random.randint(0, 600),
#'y': random.randint(0, 600),
#'xmag': 1,
#'ymag': 1,
#'z': 0,
#'~text.material': 'textmat',
#'~text.text': 'benzin (and built-in fonts) ftw!',
#'~text.font_idx': 1,
#'~text.unk4': 0,
#'~text.color1': 0xffffffff,
#'~text.color2': 0xffffffff,
#'~text.font_size_x': 32.0,
#'~text.font_size_y': 38.0,
#'~text.char_space': -1.0,
#'~text.line_space': -1.0,
#}) for i in xrange(2, 29)],
('pic1', {
'alpha': 0xff,
'alpha_2': 0x0,
'angle': 0,
'flags_1': 1, # Black if omitted
'flags_2': 4, # "X, Y at center?"
'width': 608,
'height': 456,
'name': 'pic',
'x': 0,
'y': 0,
'xmag': 1,
'ymag': 1,
'z': 0,
'~pic.material': 'textmat',
'~pic.texcoords': [(0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0)],
}),
'pae1',
('grp1', {
'name': 'RootGroup',
'subs': [],
'unk': 0
}),
]