X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/cd508589aa50ba1a706b8b9f07c9f4c8d6daee4c..dfabbe2822ffdfb241105cff491b4331096e4af3:/Client/src/item_tank.cpp diff --git a/Client/src/item_tank.cpp b/Client/src/item_tank.cpp index 28cd576..daeb4e7 100644 --- a/Client/src/item_tank.cpp +++ b/Client/src/item_tank.cpp @@ -44,3 +44,18 @@ std::string ViewTank::get_extra() return s; } +bool ViewTank::on_image_expose_event(GdkEventExpose *e) +{ + Glib::RefPtr colormap = Gtk::Widget::get_default_colormap(); + colormap->alloc_color(color); + gc->set_foreground(color); + gc->set_background(color); + gc->set_line_attributes(6, Gdk::LINE_SOLID, Gdk::CAP_NOT_LAST, Gdk::JOIN_MITER); + int w,h; + w = image.get_width(); + h = image.get_height(); + // TODO : hacer que dibuje arcos en el sentido del codo! + if (actual_flow == 0) return true; + image.get_window()->draw_arc(gc, 1, w/2-7, h/2-7, 14, 14, 0, 360*64); + return true; +}