From 014367e70a121b18e9b8ceb0f363c0e20087cdc2 Mon Sep 17 00:00:00 2001 From: Jeremy Thurgood Date: Fri, 16 May 2014 16:52:17 +0200 Subject: [PATCH] Better (or maybe worse) tile selection indicator. --- data/images/board/tile_selected.png | Bin 247 -> 1376 bytes naja/widgets/tile.py | 16 ++++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/data/images/board/tile_selected.png b/data/images/board/tile_selected.png index 4622c84116281009768cc14af230f46d0542c8fe..477f31b01e6a35a200e29848e1acdbc76773d9bd 100644 GIT binary patch delta 1369 zcmV-f1*ZD<0pJRd7=H)`000120{Mpk00bmyLqkwWLqi}?a&Km7Y-IodI1zQlu6?AXrC-ip8&0Q(L(k8m-0#Nt31RN*1N**eWFCIyZ@_8wcCzwyIBifj0*H z0YKRU4@f*A4F+O++4jJ+NmGX^s!2$D=)?~pChY}P;k$NXCx27KT=n|PIo~X-eVh__(Z?q} zP9Z-Dj?gOW6@RS=yaqhH*k&)cVP69n$dln!ZX3EHW|6b4l3{Ys;V+MIw=w?@E}M1q z>|KLc`<$h@W4I5A-YfQ0zKK8Awe%eDOR!(Bxk+Jv1^AEp(tHAVA5rwFl6`dE=SN>( ztrXq{-UWNnaHk7R`)YMDdmI?C(e)+kn8+hI*L7zSvwx%)fbUlLwAf?lk*LU1Y2abt z!AgCqnO~Z5R_27=%d=XU%mO2iWWT4)byOBQPEhjvKz%5PQO?=#8h`rDkN$?5uuCiSBTvvVG+XTxAO{m@ zbvM#Jr)z6J><&E22D|vq?Y?Vkbo_DijopiF$2PET#mZ8e< zcESmGBON_l0n;T7>u=y$(ArYkv7@Ex`GL?QCc!_*KFrd&;n1r7qW-CFs9&fT)ZaU5 zgnt=3rX+nTeJlMaeJ6b{{Y;8Pod(y& zRKbhpuXfcI6;Cqz3RHyZ!0HyS%%BL5cA zW%EB-0C9M18!Hn4000SaNLh0L01FcU01FcV0GgZ_0002uNkl%MQXY3ltF+`h-;3f1CZ%pT5;3ngK)S*Lqmhw^bh;D{BZDQ zznQ@gYh7ML)kI8{7 z5*h3zp1!W^_gMJ_SUIF$PQM3KAz9)YQR1ARo12OPpghU}jTcGS>E4R{~R}uoU453fe9Q|Kh`Uq6U;OXk;vd$@? F2>`YPN1*@! diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py index 89a4b4c..3d53f1b 100644 --- a/naja/widgets/tile.py +++ b/naja/widgets/tile.py @@ -33,21 +33,21 @@ class TileWidget(Widget): x, y = abs(self.board_pos[0] - 2), abs(self.board_pos[1] - 2) if (x + y) % 2 == 0: - bg = resources.get_image('board/tile_2.png', - transforms=(EIGHT_BIT,)) + bg_name = 'board/tile_2.png' else: - bg = resources.get_image('board/tile_1.png', - transforms=(EIGHT_BIT,)) + bg_name = 'board/tile_1.png' + bg = resources.get_image(bg_name, transforms=(EIGHT_BIT,)) overlays = [] legal_move = (self.board_pos in self.state.player.legal_moves()) if self.state.gameboard.player_mode == EXAMINE and legal_move: - overlays.append(resources.get_image('board/tile_available.png', - transforms=(EIGHT_BIT,))) + overlays.append(resources.get_image( + 'board/tile_available.png', transforms=(EIGHT_BIT,))) if self.highlighted: - overlays.append(resources.get_image('board/tile_selected.png', - transforms=(EIGHT_BIT,))) + overlays.append(resources.get_image( + 'board/tile_selected.png', + transforms=(EIGHT_BIT, blender(PALETTE.PINK)))) self.surface = pygame.surface.Surface(TILE_SIZE) self.surface.blit(bg, (0, 0)) -- 2.34.1