From c082f3da9da3803a937134101659d90952277fba Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 13 Jan 2011 18:36:51 +0200 Subject: [PATCH] Animate toolbar on load too - ShipItem --- gui/shipBrowser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index b2148ee22..dd2967189 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -1161,7 +1161,7 @@ class ShipItem(SBItem): self.animTimer = wx.Timer(self, self.animTimerId) self.animStep = 0 self.animPeriod = 10 - self.animDuration = 250 + self.animDuration = 150 self.Bind(wx.EVT_TIMER, self.OnTimer) self.animTimer.Start(self.animPeriod) @@ -1236,6 +1236,8 @@ class ShipItem(SBItem): self.toolbarx = rect.width - self.toolbar.GetWidth() - self.padding self.toolbary = (rect.height - self.toolbar.GetHeight()) / 2 + self.toolbarx = self.toolbarx + self.animCount + self.shipEffx = self.padding + (rect.height - self.shipEffBk.GetWidth())/2 self.shipEffy = (rect.height - self.shipEffBk.GetHeight())/2