From fb5a98b72ab79949d1da7f75a3d6150c2906ef40 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Mon, 30 Aug 2021 14:48:06 +0200 Subject: gui: tech representation, menu, tile & unit info, attack info --- game/view.cpp | 55 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 8 deletions(-) (limited to 'game/view.cpp') diff --git a/game/view.cpp b/game/view.cpp index d00fd2a..095a99a 100644 --- a/game/view.cpp +++ b/game/view.cpp @@ -11,6 +11,36 @@ void View::process (Gst &gst, vec2 cam, vec2 mouse, int *mheld) { cursor_entity = -1; back = -1; opt = -1; + hover_ground = -1; + + bool hfound = false; + for (int y=0; yunit == 1) { @@ -104,8 +143,8 @@ void View::process (Gst &gst, vec2 cam, vec2 mouse, int *mheld) { for (int y=0; y