mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
use GLSL shaders
This commit is contained in:
@@ -1 +0,0 @@
|
||||
Color = {}
|
@@ -1 +0,0 @@
|
||||
Point = {}
|
@@ -1 +0,0 @@
|
||||
Rect = {}
|
@@ -1 +0,0 @@
|
||||
Size = {}
|
@@ -13,12 +13,12 @@ function string:starts(start)
|
||||
return self:sub(1, #start) == start
|
||||
end
|
||||
|
||||
function string.trim(str)
|
||||
return str:match'^%s*(.*%S)' or ''
|
||||
function string:trim()
|
||||
return self:match('^%s*(.*%S)') or ''
|
||||
end
|
||||
|
||||
function toboolean(str)
|
||||
str = string.trim(str)
|
||||
str = str:trim()
|
||||
if str == '1' or str == 'true' then
|
||||
return true
|
||||
end
|
||||
|
@@ -1,7 +1,7 @@
|
||||
function table.dump(t, depth)
|
||||
if not depth then depth = 0 end
|
||||
for k,v in pairs(t) do
|
||||
str = string.rep(' ', depth * 2) .. k .. ': '
|
||||
str = (' '):rep(depth * 2) .. k .. ': '
|
||||
if type(v) ~= "table" then
|
||||
print(str .. tostring(v))
|
||||
else
|
||||
|
Reference in New Issue
Block a user