From: Simon Cross Date: Fri, 4 Mar 2016 22:49:21 +0000 (+0200) Subject: Hackish serum placement offset. X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=02d98a6cdfaee5d80f3ab71fb7a993d5ddf1beac;p=koperkapel.git Hackish serum placement offset. --- 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(