add arrow symbols to fonts
accessible by putting ^1 to ^8 (think "arrow number 1", etc) in your text for narrow-width arrows (good for "wide font" highway signs), or ^a to ^h for double-width arrows (good for all of the normal narrow-font signs). in order, arrows 1 and "a" point up, 2/b points up-and-right, 3/c points right, and so on, turning clockwise Any other ^x pair just renders directly (no escape char, sorry)
18
init.lua
|
@ -387,6 +387,24 @@ local function make_line_texture(line, lineno, pos)
|
|||
for word_i, word in ipairs(line) do
|
||||
local chars = { }
|
||||
local ch_offs = 0
|
||||
word = string.gsub(word, "%^[12345678abcdefgh]", {
|
||||
["^1"] = string.char(0x81),
|
||||
["^2"] = string.char(0x82),
|
||||
["^3"] = string.char(0x83),
|
||||
["^4"] = string.char(0x84),
|
||||
["^5"] = string.char(0x85),
|
||||
["^6"] = string.char(0x86),
|
||||
["^7"] = string.char(0x87),
|
||||
["^8"] = string.char(0x88),
|
||||
["^a"] = string.char(0x8a),
|
||||
["^b"] = string.char(0x8b),
|
||||
["^c"] = string.char(0x8c),
|
||||
["^d"] = string.char(0x8d),
|
||||
["^e"] = string.char(0x8e),
|
||||
["^f"] = string.char(0x8f),
|
||||
["^g"] = string.char(0x90),
|
||||
["^h"] = string.char(0x91)
|
||||
})
|
||||
local word_l = #word
|
||||
local i = 1
|
||||
while i <= word_l do
|
||||
|
|
BIN
textures/hdf_81.png
Normal file
After Width: | Height: | Size: 121 B |
BIN
textures/hdf_82.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
textures/hdf_83.png
Normal file
After Width: | Height: | Size: 117 B |
BIN
textures/hdf_84.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
textures/hdf_85.png
Normal file
After Width: | Height: | Size: 119 B |
BIN
textures/hdf_86.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
textures/hdf_87.png
Normal file
After Width: | Height: | Size: 118 B |
BIN
textures/hdf_88.png
Normal file
After Width: | Height: | Size: 146 B |
BIN
textures/hdf_8a.png
Normal file
After Width: | Height: | Size: 137 B |
BIN
textures/hdf_8b.png
Normal file
After Width: | Height: | Size: 157 B |
BIN
textures/hdf_8c.png
Normal file
After Width: | Height: | Size: 133 B |
BIN
textures/hdf_8d.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
textures/hdf_8e.png
Normal file
After Width: | Height: | Size: 138 B |
BIN
textures/hdf_8f.png
Normal file
After Width: | Height: | Size: 162 B |
BIN
textures/hdf_90.png
Normal file
After Width: | Height: | Size: 136 B |
BIN
textures/hdf_91.png
Normal file
After Width: | Height: | Size: 168 B |