Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix module activation woo #2

Merged
merged 1 commit into from

2 participants

@Sancus
Collaborator

No description provided.

@kg kg merged commit 730cdd0 into kg:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 18, 2011
  1. @Sancus

    Fix missing UI_DISABLED state

    Sancus authored
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.