Things to work on: - working on implementing a different mode to be able to type more than a single line of code - implement a better gui - not all errors are printed
criticism, suggestions, and bug reports welcome
Last edited by Alchemist on 07 Jan 2011, 05:47, edited 1 time in total.
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
interessting. (but too lazy to test right now) you could make into a debug tool thing, like printing unitIDs above units could be usefull for DestroyUnit (u) etc
function widget:GetInfo() return { name = "Show Unit ID", desc = "Show all ID of all units", author = "zwzsg", date = "August 2010", license = "Free", layer = 0, enabled = false, } end
function widget:DrawScreenEffects() for _,id in ipairs(Spring.GetAllUnits()) do local x,y=Spring.WorldToScreenCoords(Spring.GetUnitPosition(id)) gl.Text("ID:"..id,x,y,16,"od") end end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum