Skip to content

Commit

Permalink
* Added gfx_setNanos
Browse files Browse the repository at this point in the history
  • Loading branch information
MaDDoXbr committed Aug 31, 2021
1 parent 9f76403 commit 4fd0b9e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions luaui/Widgets/gfx_setNanos.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Gfx - Set Nanos",
desc = "Sets nano particles rotation parameters",
author = "MaDDoX",
date = "Aug 2021",
license = "GNU GPL, v2 or later",
version = 1,
layer = -100,
enabled = true -- loaded by default?
}
end

function widget:Initialize()
if Spring.SetNanoProjectileParams then --checking if it has support for the command
Spring.Echo("Setting Nano Projectile rotation Params")
Spring.SetNanoProjectileParams(180, 180, 180) -- speed, accel, startRot |deg/s, deg/s2, deg|
end
end



2 changes: 1 addition & 1 deletion luaui/Widgets/gfx_uiscaler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function widget:GetInfo()
date = "",
license = "",
layer = 0,
enabled = true
enabled = false --true
}
end

Expand Down

0 comments on commit 4fd0b9e

Please sign in to comment.