From f059ec88ed59eca9966b753cd7222f3f3299c301 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicol=C3=A1s=20Dimov?= Date: Fri, 24 Oct 2003 03:46:34 +0000 Subject: [PATCH 1/1] Con esto deberia compilar, avisen --- Constructor/canio.cpp | 2 +- Constructor/codo.cpp | 4 +-- Constructor/constructor.glade | 64 ++++++++++++++++++++++++++++++++++ Constructor/ico_tanque.png | Bin 0 -> 259 bytes Constructor/item_tanque.png | Bin 0 -> 415 bytes Constructor/tanque_e.png | Bin 0 -> 415 bytes Constructor/y.cpp | 2 +- 7 files changed, 68 insertions(+), 4 deletions(-) create mode 100644 Constructor/ico_tanque.png create mode 100644 Constructor/item_tanque.png create mode 100644 Constructor/tanque_e.png diff --git a/Constructor/canio.cpp b/Constructor/canio.cpp index 47c1450..73dd6f1 100644 --- a/Constructor/canio.cpp +++ b/Constructor/canio.cpp @@ -18,7 +18,7 @@ bool Canio::on_button_press_event(GdkEventButton *event) { int w, h; if ((event->type == GDK_BUTTON_PRESS) && ( event->button ==3)){ - image = null; //como hago para actualizar????? + image = null; image->render_to_drawable(get_window(),get_style()->get_black_gc(),0,0,0,0,image->get_width(),image->get_height(),Gdk::RGB_DITHER_NONE,0,0); imgActual++; switch (imgActual) { diff --git a/Constructor/codo.cpp b/Constructor/codo.cpp index a7f1502..6870e2d 100644 --- a/Constructor/codo.cpp +++ b/Constructor/codo.cpp @@ -8,7 +8,7 @@ Codo::Codo() imageO = Gdk::Pixbuf::create_from_file("codo_o.png"); null = Gdk::Pixbuf::create_from_file("null.png"); imgActual = 0; - image = imageN; + image = imageO; set_size_request(image->get_width(), image->get_height()); } @@ -19,7 +19,7 @@ Codo::~Codo() bool Codo::on_button_press_event(GdkEventButton *event) { if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 3)){ - image = null; //como hago para actualizar????? + image = null; image->render_to_drawable(get_window(),get_style()->get_black_gc(),0,0,0,0,image->get_width(),image->get_height(),Gdk::RGB_DITHER_NONE,0,0); imgActual++; switch (imgActual) { diff --git a/Constructor/constructor.glade b/Constructor/constructor.glade index d6cdbf0..8cdf98d 100644 --- a/Constructor/constructor.glade +++ b/Constructor/constructor.glade @@ -387,6 +387,70 @@ Empalme + + + + True + True + True + GTK_RELIEF_NORMAL + + + + True + 0.5 + 0.5 + 0 + 0 + + + + True + False + 2 + + + + True + ico_tanque.png + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + Tanque + True + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + + + 0 diff --git a/Constructor/ico_tanque.png b/Constructor/ico_tanque.png new file mode 100644 index 0000000000000000000000000000000000000000..2b883e91eb2e64705a7d0d87a10e2ecc1374e13d GIT binary patch literal 259 zcmeAS@N?(olHy`uVBq!ia0vp^3P5bY!3HD?)>PyJDYhhUcNd2LAh=-f^2tCE&H|6f zVg?3oArNM~bhqvgP>{XE)7O>#GMBgji^3e0uTnsv37#&FAr*7p-f-kPtRUd_F#TiP z*EBsE0>gQ3=<27 zfPzB<10#fS;BiCE|gW!U_%O?XxI14-? ziy0WW1wojxJ|%u4P>{XE)7O>#GMBgjJGb=K_?Zk0j5?k!jv*Cu-rjNSI-(%L5GecW zUwE0=-m_|s&mJy$#SkR+$AM*Ta*rur%39O%HJ^X3+m^i2KIQba{eRv>zw+T)z-q#J zfoT>~2BR|gW!U_%O?XxI14-? ziy0WW1wojxJ|%u4P>{XE)7O>#GMBgjo5kKb{&Nfrj5?k!jv*Cu-rjNSI-(%L5GecW zUwE0=-m_|s&mJy$#SkR+$AM*Ta*rur%39O%HJ^X3+m^i2KIQba{eRv>zw+T)z-q#J zfoT>~2BRtype == GDK_BUTTON_PRESS) && (event->button == 3 )){ - image = null; //como hago para actualizar????? + image = null; image->render_to_drawable(get_window(),get_style()->get_black_gc(),0,0,0,0,image->get_width(),image->get_height(),Gdk::RGB_DITHER_NONE,0,0); imgActual++; switch (imgActual) { -- 2.43.0