Skip to content

Commit

Permalink
[TASK] Enable the ruonds score ui (nadeo) and move it. Move the wu wi…
Browse files Browse the repository at this point in the history
…dget (nadeo).
  • Loading branch information
tomvlk committed Jun 18, 2017
1 parent 537fb98 commit e080701
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyplanet/apps/contrib/live_rankings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ async def on_start(self):
self.instance.signal_manager.listen(tm_signals.give_up, self.player_giveup)
self.instance.signal_manager.listen(tm_signals.scores, self.scores)

# Make sure we hide rounds_scores.
self.instance.ui_manager.properties.set_visibility('round_scores', False)
# Make sure we move the rounds_scores and other gui elements.
self.instance.ui_manager.properties.set_attribute('round_scores', 'pos', '-126.5 87. 150.')
self.instance.ui_manager.properties.set_visibility('checkpoint_ranking', False)
self.instance.ui_manager.properties.set_attribute('multilap_info', 'pos', '107., 88., 5.')

Expand Down
3 changes: 2 additions & 1 deletion pyplanet/apps/core/pyplanet/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ async def on_start(self):
await self.setting.on_start()
await self.dev.on_start()

# Hide live infos (and move it in case something else activates it).
# Change some ui elements positions and visibility.
self.instance.ui_manager.properties.set_visibility('live_info', False)
self.instance.ui_manager.properties.set_attribute('live_info', 'pos', '-125. 84. 5.')
self.instance.ui_manager.properties.set_attribute('warmup', 'pos', '86., 87., 5.')

# Display logo.
await self.logo.display()
Expand Down

0 comments on commit e080701

Please sign in to comment.