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


Python WorldObjectDeleted.unsubscribe方法代码示例

本文整理汇总了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)
开发者ID:BenjaminHarper,项目名称:unknown-horizons,代码行数:14,代码来源:statusiconmanager.py

示例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()
开发者ID:savionok,项目名称:unknown-horizons,代码行数:20,代码来源:buildingtool.py

示例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()
开发者ID:Daenor,项目名称:unknown-horizons,代码行数:22,代码来源:buildingtool.py

示例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()
开发者ID:Octavianuspg,项目名称:unknown-horizons,代码行数:8,代码来源:tearingtool.py


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