diff options
| author | Phil <cracker642@gmail.com> | 2010-09-11 22:15:07 (GMT) |
|---|---|---|
| committer | Phil <cracker642@gmail.com> | 2010-09-11 22:15:07 (GMT) |
| commit | e5e6006bc86e75a5d075fdccb3c1719352185bfc (patch) | |
| tree | dfe98e29a85245f20d643a4cb5048dbaffab4b76 /graphics.c | |
| parent | a20e247674b7ceb210c2d9e1335cd90d8d4a547c (diff) | |
| download | powder-e5e6006bc86e75a5d075fdccb3c1719352185bfc.zip powder-e5e6006bc86e75a5d075fdccb3c1719352185bfc.tar.gz | |
Added element type eraser, right click on the menu section to delete and then on the eraser button. the type to erase will have a light blue box
also added two wires, PWPO and PWNE purely for no reason, pressure sensitive wires, just ignore them unless you like it.
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -744,7 +744,11 @@ int draw_tool_xy(pixel *vid_buf, int x, int y, int b, unsigned pc) void draw_menu(pixel *vid_buf, int i, int hover) { - drawrect(vid_buf, XRES-2, (i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16), 14, 14, 255, 255, 255, 255); + if(i==SEC&&SEC!=0) + drawrect(vid_buf, XRES-2, (i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16), 14, 14, 0, 255, 255, 255); + else + drawrect(vid_buf, XRES-2, (i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16), 14, 14, 255, 255, 255, 255); + if(hover==i) { fillrect(vid_buf, XRES-2, (i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16), 14, 14, 255, 255, 255, 255); |
