It's great that some form of texture changing was added, but how does it work?
Code: Select all
function widget:Initialize()
Spring.Echo(Spring.SetMapSquareTexture(800,800,'LuaUI/Images/test.png'))
end
Code: Select all
function widget:DrawWorldPreUnit()
gl.Texture('LuaUI/Images/test.png' )
gl.DrawGroundQuad(0,0,300,300)
end
test.png is an 8x8 white square.