当前位置: 首页>>代码示例>>Python>>正文


Python MakeMenu.__init__方法代码示例

本文整理汇总了Python中system.makemenus.MakeMenu.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python MakeMenu.__init__方法的具体用法?Python MakeMenu.__init__怎么用?Python MakeMenu.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在system.makemenus.MakeMenu的用法示例。


在下文中一共展示了MakeMenu.__init__方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = 1
		#self.allowrepair = 1
		self.submaterials1 = skills.blacksmithing.METALS
		self.submaterial1missing = 1042081 # Ingots
		self.submaterial1noskill = 500586
		self.gumptype = 0x4f6ba469 # This should be unique
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:10,代码来源:carpentry.py

示例2: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = 1
		self.allowrepair = 1
		#self.allowenhance = 1
		self.submaterials1 = LEATHERS
		self.submaterial1missing = 1044463
		self.submaterial1noskill = 1049311
		self.gumptype = 0x4f1ba411 # This should be unique
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:11,代码来源:tailoring.py

示例3: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = True
		self.allowrepair = True
		self.submaterials1 = WOOD
		self.submaterial1missing = 1042081
		self.submaterial1noskill = 500298
		self.gumptype = 0x4f1bff56 # This should be unique
		self.requiretool = True
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:11,代码来源:bowcraft.py

示例4: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = True
		self.allowrepair = True
		self.submaterials1 = blacksmithing.METALS
		self.submaterials2 = GEMS
		self.submaterial1missing = 1044037
		self.submaterial1noskill = 1044268
		self.submaterial2missing = 1044240
		self.gumptype = 0x41afb410 # This should be unique
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:12,代码来源:tinkering.py

示例5: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = True
		self.allowrepair = True
		self.allowenhance = True
		self.submaterials1 = LEATHERS
		self.submaterial1missing = 1044463
		self.submaterial1noskill = 1049311
		self.gumptype = 0x4f1ba411 # This should be unique
		self.repairsound = 0x248 # Repair soundeffect
		self.requiretool = True
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:13,代码来源:tailoring.py

示例6: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = False
		self.allowrepair = False
		self.allowenhance = False
		self.allowsmelt = False
		self.submaterials1 = GRANITES
		self.submaterial1noskill = 1044268
		self.gumptype = 0x4f1ba414 # This should be unique
		self.requiretool = True
		self.checklearned = True
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:13,代码来源:masonry.py

示例7: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = 1
		self.allowrepair = 1
		#self.allowenhance = 1
		self.allowsmelt = 1
		self.submaterials1 = METALS
		self.submaterials2 = SCALES
		self.submaterial2missing = 1060884
		self.submaterial1missing = 1044037
		self.submaterial1noskill = 1044268
		self.gumptype = 0x4f1ba410 # This should be unique
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:14,代码来源:blacksmithing.py

示例8: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = True
		self.allowrepair = False
		self.submaterials1 = WOOD
		self.submaterials2 = CARPENTRYMETALS
		self.submaterial1missing = 1042081 # Boards
		self.submaterial1noskill = 500298
		self.submaterial2missing = 1042081 # Ingots
		self.submaterial2noskill = 500298
		self.gumptype = 0x466b5b1a # This should be unique
		self.requiretool = True
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:14,代码来源:carpentry.py

示例9: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = 0
		self.delay = 2000
		self.gumptype = 0x9ca51fca # This should be unique
		self.requiretool = True
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:8,代码来源:alchemy.py

示例10: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = True	
		self.gumptype = 0xce123456 # This should be unique
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:6,代码来源:inscription.py

示例11: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.gumptype = 0xf4132a42 # This should be unique
		self.name_makelast = "Select Last"
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:6,代码来源:polymorph.py

示例12: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
 def __init__(self, id, parent, title):
   MakeMenu.__init__(self, id, parent, title)
   self.allowmark = 1
   self.allowrepair = 1
   self.gumptype = 0x4f1ba412 # This should be unique
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:7,代码来源:bowcraft.py

示例13: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
	def __init__(self, id, parent, title):
		MakeMenu.__init__(self, id, parent, title)
		self.allowmark = False
		self.delay = 1250
		self.gumptype = 0xb10cae72 # This should be unique
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:7,代码来源:cooking.py

示例14: __init__

# 需要导入模块: from system.makemenus import MakeMenu [as 别名]
# 或者: from system.makemenus.MakeMenu import __init__ [as 别名]
 def __init__(self, id, parent, title):
     MakeMenu.__init__(self, id, parent, title)
     self.allowmark = True  # generally allow marking, but not all items are markable
     self.delay = 1250
     self.gumptype = 0xB10CAE72  # This should be unique
     self.requiretool = True  # Require a tool
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:8,代码来源:cooking.py


注:本文中的system.makemenus.MakeMenu.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。