Removed debug prints

This commit is contained in:
OTCv8
2020-01-23 08:18:57 +01:00
parent 440bf56060
commit 48d7eb810d
4 changed files with 11 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
addIcon("dancing", {outfit={mount=0,feet=0,legs=0,body=176,type=128,auxType=0,addons=3,head=48}, hotkey="F5", text="dance"}, macro(100, "dance", function()
turn(math.random(0,3))
end))
--[[
addIcon("ctrl", {outfit={mount=0,feet=10,legs=10,body=176,type=129,auxType=0,addons=3,head=48}, text="press ctrl to move icon"}, function(widget, enabled)
if enabled then
info("icon on")
@@ -36,3 +36,4 @@ addIcon("text", {text="text\nonly\nicon", switchable=true}, function(widget, ena
info("icon with text clicked")
end)
]]--

View File

@@ -142,7 +142,6 @@ context.findPath = function(startPos, destPos, maxDist, params)
if math.abs(x) >= marginMin or math.abs(y) >= marginMin then
local dest = (destPos.x + x) .. "," .. (destPos.y + y) .. "," .. destPos.z
local node = paths[dest]
print(node)
if node and (not bestCandidate or bestCandidate[1] > node[1]) then
bestCandidate = node
bestCandidatePos = dest

View File

@@ -17,11 +17,10 @@ context.addTab = function(name)
context.tabs:setOn(true)
local newTab = context.tabs:addTab(name, g_ui.createWidget('BotPanel')).tabPanel.content
print(#(context.tabs.tabs))
if #(context.tabs.tabs) > 5 then
for k,tab in pairs(context.tabs.tabs) do
tab:setPadding(3)
tab:setFont('cipsoftFont')
tab:setFont('small-9px')
end
end