# HG changeset patch # User Jeremy Thurgood # Date 1282507799 -7200 # Node ID 9fdbfbc02a60c375d5c1151a8a03fd0375190bb3 # Parent 088a101f5b945fe14c05bd0a413c1b2fd154ef9d Minor build script and inventory fixes. diff -r 088a101f5b94 -r 9fdbfbc02a60 gamelib/gamescreen.py --- a/gamelib/gamescreen.py Sun Aug 22 22:07:45 2010 +0200 +++ b/gamelib/gamescreen.py Sun Aug 22 22:09:59 2010 +0200 @@ -16,7 +16,7 @@ class InventoryView(PaletteView): - sel_color = Color("white") + sel_color = Color("yellow") sel_width = 2 def __init__(self, state, handbutton): @@ -29,9 +29,8 @@ return len(self.state.inventory) def draw_item(self, surface, item_no, rect): - d = -2 * self.sel_width - r = rect.inflate(d, d) - surface.blit(self.state.inventory[item_no].get_inventory_image(), r, None, BLEND_ADD) + item_image = self.state.inventory[item_no].get_inventory_image() + surface.blit(item_image, rect, None, BLEND_ADD) def click_item(self, item_no, event): self.selection = item_no @@ -43,6 +42,7 @@ def unselect(self): self.selection = None + class StateWidget(Widget): def __init__(self, state): diff -r 088a101f5b94 -r 9fdbfbc02a60 scripts/build_unix.sh --- a/scripts/build_unix.sh Sun Aug 22 22:07:45 2010 +0200 +++ b/scripts/build_unix.sh Sun Aug 22 22:09:59 2010 +0200 @@ -4,7 +4,7 @@ mkdir -p build/${GAME_NAME} dist -cp -r README.txt run_game.py gamelib data build/${GAME_NAME} +cp -r README.txt run_game.py gamelib Resources build/${GAME_NAME} cd build