aboutsummaryrefslogtreecommitdiff
path: root/testrlyt.py
blob: 2e40708ce7b96582de3c2f1869809b55177c6377 (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
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
[
    ('lyt1', {
        'a': 1,
        'width': 608.0,
        'height': 456.0
    }),
    ('txl1', {
        'textures': [
            {'unk': 0, 'name': ''},
            {'unk': 1, 'name': 'foo1'},
            {'unk': 0, 'name': 'foo2'},
            {'unk': 0, 'name': 'foo3'},
        ]
    }),
    ('fnl1', {
        'files': [
            {'unk': 0, 'name': 'your mom'}
        ]
    }),
    ('mat1', {
        'materials': ['textmat']
    }),
    ('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': 5,
            'flags_2': 4,
            'height': 38,
            'name': 'textbox',
            'width': 400,
            'x': 0,
            'y': 50,
            'xmag': 1,
            'ymag': 2,
            'z': 0,
            '~text.material': 'textmat',
            '~text.text': 'Some Text',
            '~text.unk3': 0,
            '~text.unk4': 4,
            
            '~text.unk6': 0xffffff,
            '~text.unk7': 0x80ff,
            '~text.font_size_x': 32.0,
            '~text.font_size_y': 38.0,
            '~text.char_space': -1.0,
            '~text.line_space': -1.0,
        }),
        ('pic1', {
            'alpha': 0xff,
            'alpha_2': 0x0,
            'angle': 0,
            'flags_1': 5,
            'flags_2': 4,
            'height': 38,
            'name': 'pic',
            'width': 400,
            'x': 200,
            'y': 50,
            'xmag': 1,
            'ymag': 2,
            '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
    }),
    'grs1',
        ('grp1', {
            'name': 'ENG',
            'subs': ['textbox', 'pic'],
            'unk': 0
        }),
    'gre1',

]