-
Notifications
You must be signed in to change notification settings - Fork 27
/
test.rlyt.py
82 lines (79 loc) · 2.1 KB
/
test.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
[
('lyt1', {
'a': 1,
'width': 608.0,
'height': 456.0
}),
('txl1', {
'textures': [
{'unk': 0, 'name': 'smiley.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': 'smiley.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',
('pic1', {
'alpha': 0xff,
'alpha_2': 0x0,
'angle': 0,
'flags_1': 1, # Black if omitted
'flags_2': 4, # "X, Y at center?"
'width': 152,
'height': 152,
'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
}),
]