aboutsummaryrefslogtreecommitdiff
path: root/testrlyt.py
diff options
context:
space:
mode:
Diffstat (limited to 'testrlyt.py')
-rw-r--r--testrlyt.py138
1 files changed, 80 insertions, 58 deletions
diff --git a/testrlyt.py b/testrlyt.py
index 2687a7d..131a4c2 100644
--- a/testrlyt.py
+++ b/testrlyt.py
@@ -6,7 +6,7 @@
}),
('txl1', {
'textures': [
- {'unk': 0, 'name': 'spam12345'},
+ {'unk': 0, 'name': 'icon.tpl'},
{'unk': 1, 'name': 'spamnonexist'},
]
}),
@@ -17,7 +17,29 @@
]
}),
('mat1', {
- 'materials': ['textmat']
+ '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': 'icon.tpl', 'wrap_s': 0, 'wrap_t': 0 } ],
+ 'ua2': [ (0.0, 0.0, 0.0, 1.0, 1.0) ],
+ 'ua3': [ (1, 0xff, 30, 0xff) ], # Changing this --> image disappears (not text, though)
+ 'ua4': None,
+ 'ua5': None,
+ 'ua6': None,
+ 'ua7': [],
+ 'ua8': [],
+ 'ua9': [],
+ 'uaa': [0x77, 0x77, 0x77, 0x77],
+ 'uab': None,
+
+
+ }
+
+ ]
}),
('pan1', {
'alpha': 0xff,
@@ -35,69 +57,69 @@
'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': -250,
- 'y': -50 + i,
- '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': 0xff + 0x01080800*i,
- '~text.color2': 0xff + 0x08080100*i,
- '~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, 30)],
+ #('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': -250,
+ #'y': -50 + i,
+ #'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': 0xff + 0x01080800*i,
+ #'~text.color2': 0xff + 0x08080100*i,
+ #'~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, 30)],
('pic1', {
'alpha': 0xff,
'alpha_2': 0x0,
'angle': 0,
- 'flags_1': 5,
+ 'flags_1': 1,
'flags_2': 4,
- 'height': 38,
+ 'width': 120,
+ 'height': 66,
'name': 'pic',
- 'width': 400,
- 'x': 200,
+ 'x': 150,
'y': 50,
- 'xmag': 1,
- 'ymag': 2,
+ 'xmag': 0.75,
+ 'ymag': 0.75,
'z': 0,
'~pic.material': 'textmat',
'~pic.texcoords': [(0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0)],