summaryrefslogtreecommitdiff
path: root/VP-textwork.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2012-10-28 15:14:36 -0700
committerPixel <pixel@nobis-crew.org>2012-10-28 15:14:36 -0700
commit1845b90ac8e54ea6f4c6dd22a0278d70c2956db0 (patch)
tree985b7cbc41717dc5ccee8662d5823fcdf4cca8b9 /VP-textwork.lua
parentec1a0172cc4afc937e0e4e9ac8b1b59ff563954f (diff)
Adding a few more tags.
Diffstat (limited to 'VP-textwork.lua')
-rw-r--r--VP-textwork.lua17
1 files changed, 12 insertions, 5 deletions
diff --git a/VP-textwork.lua b/VP-textwork.lua
index 453d4f8..6b8ca6b 100644
--- a/VP-textwork.lua
+++ b/VP-textwork.lua
@@ -49,6 +49,8 @@ function dump_special(script, code)
else
return '<st spd="' .. speed .. '"/>', ""
end
+ elseif code == 4 then
+ return '<st clr="' .. script:readU8() .. '"/>', ""
elseif code == 5 then
return '<start/>', ""
elseif code == 7 then
@@ -65,6 +67,15 @@ function dump_special(script, code)
else
return '<st siz="' .. siz ..'"/>', ""
end
+ elseif code == 14 then
+ return '<var n="' .. script:readU8() .. '"/>', ""
+ elseif code == 17 then
+ local t, u
+ t = script:readU8()
+ u = script:readU8()
+ return '<delay t="' .. t .. '" u="' .. u .. '">', ""
+ elseif code == 18 then
+ return "<ssync/>", ""
elseif code == 19 then
local arg1, arg2
arg1 = script:readU8()
@@ -74,16 +85,12 @@ function dump_special(script, code)
else
return '<port a1="' .. arg1 .. '" a2="' .. arg2 .. '"/>', ""
end
- elseif code == 14 then
- return '<var n="' .. script:readU8() .. '"/>', ""
- elseif code == 4 then
- return '<st clr="' .. script:readU8() .. '"/>', ""
else
local a1, a2
if code == 3 or code == 4 or code == 7 or code == 8 or code == 14 then
a1 = script:readU8()
return '<u1 c="' .. code .. '" a="' .. a1 .. '"/>', ""
- elseif code == 6 or code == 12 or code == 17 or code == 19 then
+ elseif code == 6 or code == 12 or code == 19 then
a1 = script:readU8()
a2 = script:readU8()
return '<u2 c="' .. code .. '" a1="' .. a1 .. '" a2="' .. a2 .. '"/>', ""