I must be doing something wrong because I get nil for everything.
function m6()
local inst = mc.mcGetInstance()
local selectedTool = mc.mcToolGetSelected(inst) --Gets selected tool
selectedTool = math.tointeger(selectedTool) --Converts selected tool to integer
local currentTool = mc.mcToolGetCurrent(inst) --Gets currently loaded tool
currentTool = math.tointeger(currentTool) --Converts currenlty loaded tool to integer
Shouldn't I be able to get a value at least for the current tool? It has a current tool on the screen. Somehow I think the editor and mach are not in communication at this point.
I never get any values by hovering over anything in the screen load script or anywhere else either and selecting evaluate in console give nil on everything.
So, I am not sure what I have wrong.
About from the editor:
ZeroBrane Studio (devel; MobDebug 0.702)
Copyright © 2011-2017 ZeroBrane LLC
Paul Kulchenko
Licensed under the MIT License.
Based on Estrela Editor
Copyright © 2008-2011 Luxinia DevTeam
Christoph Kubisch, Eike Decker
Licensed under the MIT License.
Based on wxLua editor
Copyright © 2002-2005 Lomtick Software
J. Winwood, John Labenski
Licensed under wxWindows Library License, v3.
Built with wxWidgets 3.1.1, wxLua 2.8.12.3