Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix missing UI_DISABLED state

  • Loading branch information...
commit c3fd26d377ecd0b51302e39de9a08c2b6b1ca88a 1 parent c3c12d0
@Sancus Sancus authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.