本文整理汇总了Python中horizons.messaging.WorldObjectDeleted.unsubscribe方法的典型用法代码示例。如果您正苦于以下问题:Python WorldObjectDeleted.unsubscribe方法的具体用法?Python WorldObjectDeleted.unsubscribe怎么用?Python WorldObjectDeleted.unsubscribe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类horizons.messaging.WorldObjectDeleted
的用法示例。
在下文中一共展示了WorldObjectDeleted.unsubscribe方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: end
# 需要导入模块: from horizons.messaging import WorldObjectDeleted [as 别名]
# 或者: from horizons.messaging.WorldObjectDeleted import unsubscribe [as 别名]
def end(self):
self.tooltip_instance = None
self.tooltip_icon.hide_tooltip()
self.tooltip_icon = None
self.renderer = None
self.icons = None
AddStatusIcon.unsubscribe(self.on_add_icon_message)
HoverInstancesChanged.unsubscribe(self.on_hover_instances_changed)
RemoveStatusIcon.unsubscribe(self.on_remove_icon_message)
WorldObjectDeleted.unsubscribe(self.on_worldobject_deleted_message)
示例2: remove
# 需要导入模块: from horizons.messaging import WorldObjectDeleted [as 别名]
# 或者: from horizons.messaging.WorldObjectDeleted import unsubscribe [as 别名]
def remove(self):
WorldObjectDeleted.unsubscribe(self._on_worldobject_deleted)
self._remove_listeners()
self._remove_building_instances()
self._remove_coloring()
self._build_logic.remove(self.session)
self._buildable_tiles = None
self._transparencified_instances = None
self._related_buildings_selected_tiles = None
self._related_buildings = None
self._highlighted_buildings = None
self._build_logic = None
self.buildings = None
if self.gui is not None:
self.session.view.remove_change_listener(self.draw_gui)
self.gui.hide()
ExtScheduler().rem_all_classinst_calls(self)
super(BuildingTool, self).remove()
示例3: remove
# 需要导入模块: from horizons.messaging import WorldObjectDeleted [as 别名]
# 或者: from horizons.messaging.WorldObjectDeleted import unsubscribe [as 别名]
def remove(self):
self.session.ingame_gui.resource_overview.close_construction_mode()
WorldObjectDeleted.unsubscribe(self._on_worldobject_deleted)
self._remove_listeners()
self._remove_building_instances()
self._remove_coloring()
self._build_logic.remove(self.session)
self._buildable_tiles = None
self._transparencified_instances = None
self._related_buildings_selected_tiles = None
self._related_buildings = None
self._highlighted_buildings = None
self._build_logic = None
self.buildings = None
if self.__class__.gui is not None:
self.__class__.gui.hide()
ExtScheduler().rem_all_classinst_calls(self)
SettlementInventoryUpdated.discard(self.update_preview)
PlayerInventoryUpdated.discard(self.update_preview)
super(BuildingTool, self).remove()
示例4: remove
# 需要导入模块: from horizons.messaging import WorldObjectDeleted [as 别名]
# 或者: from horizons.messaging.WorldObjectDeleted import unsubscribe [as 别名]
def remove(self):
self._mark()
self.tear_tool_active = False
horizons.globals.fife.set_cursor_image("default")
WorldObjectDeleted.unsubscribe(self._on_object_deleted)
super(TearingTool, self).remove()