本文整理汇总了Python中system.makemenus.CraftItemAction.getmaterialshtml方法的典型用法代码示例。如果您正苦于以下问题:Python CraftItemAction.getmaterialshtml方法的具体用法?Python CraftItemAction.getmaterialshtml怎么用?Python CraftItemAction.getmaterialshtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类system.makemenus.CraftItemAction
的用法示例。
在下文中一共展示了CraftItemAction.getmaterialshtml方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getmaterialshtml
# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import getmaterialshtml [as 别名]
def getmaterialshtml(self, player, arguments):
materialshtml = CraftItemAction.getmaterialshtml(self, player, arguments)
if self.runes > 0:
materialshtml += "%s: %u<br>" % (tr('Unmarked Runes'), self.runes)
return materialshtml
示例2: getmaterialshtml
# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import getmaterialshtml [as 别名]
def getmaterialshtml(self, player, arguments):
materialshtml = CraftItemAction.getmaterialshtml(self, player, arguments)
if self.water:
materialshtml += tr("Water: 1<br>")
return materialshtml
示例3: getmaterialshtml
# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import getmaterialshtml [as 别名]
def getmaterialshtml(self, player, arguments):
materialshtml = CraftItemAction.getmaterialshtml(self, player, arguments)
if self.cloth > 0:
materialshtml += "%s: %u<br>" % (tr('Cloth'), self.cloth)
return materialshtml
示例4: getmaterialshtml
# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import getmaterialshtml [as 别名]
def getmaterialshtml(self, player, arguments):
materialshtml = CraftItemAction.getmaterialshtml(self, player, arguments)
if self.water:
materialshtml += tr("Water: 1<br>")
if self.flour:
materialshtml += tr("Flour: %i<br>" % self.flouramount)
return materialshtml