diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-03-04 21:56:56 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 21:22:23 +0200 |
commit | babe53830c1bf0904d4661e5b2ce7c3b337dba9c (patch) | |
tree | 105194ddc08a7e4fc60c4b208a9cf78081982a09 /lib/mods/theme/scpt/intro.lua | |
parent | 2d82b906749e7249b98b32a81c66a92e46c1cf10 (diff) |
Refactor: Move intro terminal code from Lua to C
Diffstat (limited to 'lib/mods/theme/scpt/intro.lua')
-rw-r--r-- | lib/mods/theme/scpt/intro.lua | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/lib/mods/theme/scpt/intro.lua b/lib/mods/theme/scpt/intro.lua index 31229ccc..3cdce225 100644 --- a/lib/mods/theme/scpt/intro.lua +++ b/lib/mods/theme/scpt/intro.lua @@ -1,69 +1,3 @@ -function drop_text_left(c, str, y, o) - local i = strlen(str) - local x = 39 - (strlen(str) / 2) + o - while (i > 0) - do - local a = 0 - local time = 0 - - if (strbyte(str, i) ~= strbyte(" ", 1)) then - while (a < x + i - 1) - do - Term_putch(a - 1, y, c, 32) - Term_putch(a, y, c, strbyte(str, i)) - time = time + 1 - if time >= 4 then - Term_xtra(TERM_XTRA_DELAY, 1) - time = 0 - end - Term_redraw_section(a - 1, y, a, y) - a = a + 1 - - inkey_scan = TRUE - if (inkey() ~= 0) then - return TRUE - end - end - end - - i = i - 1 - end - return FALSE -end - -function drop_text_right(c, str, y, o) - local x = 39 - (strlen(str) / 2) + o - local i = 1 - while (i <= strlen(str)) - do - local a = 79 - local time = 0 - - if (strbyte(str, i) ~= strbyte(" ", 1)) then - while (a >= x + i - 1) - do - Term_putch(a + 1, y, c, 32) - Term_putch(a, y, c, strbyte(str, i)) - time = time + 1 - if time >= 4 then - Term_xtra(TERM_XTRA_DELAY, 1) - time = 0 - end - Term_redraw_section(a, y, a + 1, y) - a = a - 1 - - inkey_scan = TRUE - if (inkey() ~= 0) then - return TRUE - end - end - end - - i = i + 1 - end - return FALSE -end - function tome_intro() screen_save() Term_clear() |