Skip to content
Browse files

Always show building preview for consistency

  • Loading branch information...
1 parent cac3ad1 commit 4fd3f78437d3a879ac28887a097c82fc58543688 @nihathrael nihathrael committed Mar 19, 2012
View
7 horizons/gui/mousetools/buildingtool.py
@@ -81,10 +81,9 @@ def __init__(self, session, building, ship=None, build_related=None):
else:
self._build_logic = SettlementBuildingToolLogic(self)
- if self._class.show_buildingtool_preview_tab:
- self.load_gui()
- self.gui.show()
- self.session.ingame_gui.minimap_to_front()
+ self.load_gui()
+ self.gui.show()
+ self.session.ingame_gui.minimap_to_front()
self.session.gui.on_escape = self.on_escape
View
2 horizons/world/building/building.py
@@ -44,8 +44,6 @@ class BasicBuilding(ComponentHolder, ConcreteObject):
buildable_upon = False # whether we can build upon this building
is_building = True
tearable = True
- show_buildingtool_preview_tab = True # whether to show the tab of the building. not shown for
- # e.g. paths. the tab hides a part of the map.
layer = LAYERS.OBJECTS
View
1 horizons/world/building/path.py
@@ -85,7 +85,6 @@ def recalculate_orientation(self):
class Road(Path, BasicBuilding, BuildableLine):
"""Actual buildable road."""
- show_buildingtool_preview_tab = False
layer = LAYERS.FIELDS
class Bridge(BasicBuilding, BuildableSingle):

0 comments on commit 4fd3f78

Please sign in to comment.
Something went wrong with that request. Please try again.