- Added support for rotated markers.

- Enabled bar rotation for the Eclipse module.
This commit is contained in:
rokiyo
2010-11-02 19:28:09 +00:00
parent 18332f70f7
commit 2b3f606f20
2 changed files with 37 additions and 40 deletions

View File

@ -45,17 +45,17 @@ function EclipseBar.prototype:GetDefaultSettings()
color = {r=1, g=0, b=0, a=1},
height = 6,
}
defaults.shouldHideBarRotation = true
defaults.shouldHideBarRotation = false
defaults.bAllowExpand = false
return defaults
end
function EclipseBar.prototype:Enable(core)
if self.moduleSettings.rotateBar then
--[[ if self.moduleSettings.rotateBar then
self.moduleSettings.rotateBar = false
self:ResetRotation()
end
end]]
EclipseBar.super.prototype.Enable(self, core)
@ -172,7 +172,7 @@ function EclipseBar.prototype:UpdateEclipsePower()
b * 255,
abs((power/maxPower) * 100)))
]]
local pos = (power/maxPower) / 2
local pos = ((power/maxPower) / 2) + 0.5
self:PositionMarker(1, pos)
end