From 864a9ca3d517a826a6c1fec67712a05c36f0334c Mon Sep 17 00:00:00 2001 From: Alexander Bass Date: Wed, 7 Jun 2023 16:07:03 -0400 Subject: [PATCH] general cleanup --- assets/faces.png | Bin 1757 -> 1719 bytes minesweeper.html | 2 +- src/gui.rs | 4 +- src/gui/highlighter.rs | 30 +++++------ src/gui/settings_menu.rs | 65 ++++++++++------------ src/gui/seven_segment.rs | 31 +++++++++++ src/gui/texture_store.rs | 8 +-- src/gui/tile_render.rs | 89 +++++++++++++++---------------- src/gui/top_menu/flag_counter.rs | 31 +++++------ src/gui/top_menu/timer.rs | 31 +++++------ src/logic/game_board.rs | 38 ++++++------- src/sprite_loader.rs | 6 +-- src/util.rs | 15 +++++- 13 files changed, 184 insertions(+), 166 deletions(-) create mode 100644 src/gui/seven_segment.rs diff --git a/assets/faces.png b/assets/faces.png index 968fdbd40376c40bbfe9ce65bfabf8662a52bd1c..c2bb0dd838c93e7212d3dc28ff0f62d6bb8f25b3 100644 GIT binary patch delta 1695 zcmV;Q24MN!4Yv)DEPoRKooSs(uK)l532;bRa{vGf6951U69E94oEQKA23JW$K~#8N z?OY2|#u}gkH_OT z>W`0)gy{c3et&;YiJ$m?eSIzbH!wi_|9yk+a#;)%1Cto|HGj#@HZxM^eS3S`hT)kV zasIP);Gc%SI`A`RW5u4Hfo~m{D%7cwWxwauc+Jj#;nz+$cAe|LI&h57+FcCX%0MOX zt@M}kVj#xAvWHl`he|(v{EZ#O+}+vvFZ`GurX?`)6qv86gvJgDS(Tmt!jGKt_ch@J zmWc1Y9`f??6@LKjtwi=6-nA<`|AjyHGE(Rsn3I1cEq(VSDP2dZuV3Qvofkg-9k&{{ zke&a+|EYn9{#_loN4!;z)S;;>pVW;JLhrmC$j*P^|7>*ES5*Jz4&0JI>b7V?a~nwV zpth~+sLS$w?c^ZEEbX;o(AHZqID1k@GL?WAqlZ=~emH@90b5Cy#DRjfl5Qyw+E_2y()O*2ZMNOn_C~i& zAb&`~n>xM(p)u!a)YGv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