From 02d98a6cdfaee5d80f3ab71fb7a993d5ddf1beac Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 5 Mar 2016 00:49:21 +0200 Subject: [PATCH] Hackish serum placement offset. --- koperkapel/scenes/roach_management.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koperkapel/scenes/roach_management.py b/koperkapel/scenes/roach_management.py index f960a5e..e206e10 100644 --- a/koperkapel/scenes/roach_management.py +++ b/koperkapel/scenes/roach_management.py @@ -16,6 +16,7 @@ TOOLBAR_MID_Y = HEIGHT * 1 // 2 VEHICLE_MID_X = WIDTH * 3 // 8 VEHICLE_MID_Y = HEIGHT * 1 // 2 BUTTON_INSET = (20, 20) +SERUM_OFFSET = (0, 20) def inset_button(pos, d): @@ -71,7 +72,10 @@ class RoachesScene(Scene): self._inventory_pos %= len(serums) serum_actor = self._serums.add( big_serums.assemble(serums[self._inventory_pos])) - serum_actor.pos = self._inventory_pad.center + inv_pad_centre = self._inventory_pad.center + serum_actor.pos = ( + inv_pad_centre[0] + SERUM_OFFSET[0], + inv_pad_centre[1] + SERUM_OFFSET[1]) def _init_pads(self): self._roach_pad = self._pads.add( -- 2.34.1