Permalink
Browse files

Fix missing UI_DISABLED state

  • Loading branch information...
1 parent c3c12d0 commit c3fd26d377ecd0b51302e39de9a08c2b6b1ca88a @Sancus Sancus committed Jul 18, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 Common/common.eve.py
View
@@ -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 c3fd26d

Please sign in to comment.