Override Lua's print function with Internal.Debug
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
print = Internal.Debug
|
||||||
|
|
||||||
OpenRA = { }
|
OpenRA = { }
|
||||||
|
|
||||||
OpenRA.New = function(className, args)
|
OpenRA.New = function(className, args)
|
||||||
@@ -11,10 +13,6 @@ OpenRA.RunAfterDelay = function(delay, func)
|
|||||||
Internal.RunAfterDelay(delay, func)
|
Internal.RunAfterDelay(delay, func)
|
||||||
end
|
end
|
||||||
|
|
||||||
OpenRA.Debug = function(obj)
|
|
||||||
Internal.Debug(obj)
|
|
||||||
end
|
|
||||||
|
|
||||||
OpenRA.SetViewportCenterPosition = function(position)
|
OpenRA.SetViewportCenterPosition = function(position)
|
||||||
WorldRenderer.Viewport:Center(position)
|
WorldRenderer.Viewport:Center(position)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user