Browse files

Merge pull request #2 from Sancus/master

fix module activation woo
  • Loading branch information...
2 parents c3c12d0 + c3fd26d commit 730cdd04e357b03be53a5854ac76c0554221fabe @kg committed Jul 17, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 Common/common.eve.py
View
6 Common/common.eve.py
@@ -339,6 +339,8 @@ def getTypeAttributes(typeID, obj=None):
def canActivateOrDeactivateModule(module, targetID=None):
import uix
+ import triui
+
from common.eve.state import isItemInsideForceField
moduleInfo = module.sr.moduleInfo
@@ -392,7 +394,9 @@ def canActivateOrDeactivateModule(module, targetID=None):
if getattr(module, "blockClick", 0) != 0:
return (False, "module clicks blocked")
- if module.state == uix.UI_DISABLED:
+ #UI_DISABLED is a constant that equals 1
+ #CCP appears to like to move these state constants
+ if module.state == triui.UI_DISABLED:
return (False, "button disabled")
return None

0 comments on commit 730cdd0

Please sign in to comment.