From 93be572ca3539d39a0797cd8befbb2478c2d4a1d Mon Sep 17 00:00:00 2001 From: Garux Date: Tue, 8 Aug 2017 20:45:21 +0300 Subject: [PATCH] * filterbar: removed barely used areaportal button, moved 'apply nodraw/nodrawnonsolid' functions to translucent button --- radiant/filterbar.cpp | 19 ++++++++++--------- setup/data/tools/bitmaps/f-areaportal.png | Bin 247 -> 0 bytes setup/data/tools/bitmaps/f-translucent.png | Bin 237 -> 193 bytes 3 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 setup/data/tools/bitmaps/f-areaportal.png diff --git a/radiant/filterbar.cpp b/radiant/filterbar.cpp index 01460eb6..823e98cf 100644 --- a/radiant/filterbar.cpp +++ b/radiant/filterbar.cpp @@ -56,7 +56,7 @@ const char* GetCaulkShader(){ return g_caulk_shader; } -gboolean Areaportals_button_press( GtkWidget *widget, GdkEventButton *event, gpointer data ){ +gboolean Translucent_button_press( GtkWidget *widget, GdkEventButton *event, gpointer data ){ if ( event->button == 3 && event->type == GDK_BUTTON_PRESS ) { if ( ButtonNum == 1 ){ ToggleActions %= 2; @@ -235,16 +235,17 @@ GtkToolbar* create_filter_toolbar(){ toolbar_append_toggle_button( toolbar, "Patches (CTRL + P)", "patch_wireframe.png", "FilterPatches" ); gtk_toolbar_append_space( GTK_TOOLBAR( toolbar ) ); - if ( g_pGameDescription->mGameType == "doom3" ) { - button = toolbar_append_toggle_button( toolbar, "Visportals (ALT + 3)\nRightClick: toggle tex\n\tnoDraw\n\tnoDrawNonSolid", "f-areaportal.png", "FilterVisportals" ); - } - else{ - button = toolbar_append_toggle_button( toolbar, "Areaportals (ALT + 3)\nRightClick: toggle tex\n\tnoDraw\n\tnoDrawNonSolid", "f-areaportal.png", "FilterAreaportals" ); - } - g_signal_connect( G_OBJECT( button ), "button_press_event", G_CALLBACK( Areaportals_button_press ), 0 ); +// if ( g_pGameDescription->mGameType == "doom3" ) { +// button = toolbar_append_toggle_button( toolbar, "Visportals (ALT + 3)\nRightClick: toggle tex\n\tnoDraw\n\tnoDrawNonSolid", "f-areaportal.png", "FilterVisportals" ); +// } +// else{ +// button = toolbar_append_toggle_button( toolbar, "Areaportals (ALT + 3)\nRightClick: toggle tex\n\tnoDraw\n\tnoDrawNonSolid", "f-areaportal.png", "FilterAreaportals" ); +// } +// g_signal_connect( G_OBJECT( button ), "button_press_event", G_CALLBACK( Translucent_button_press ), 0 ); - toolbar_append_toggle_button( toolbar, "Translucent (ALT + 4)", "f-translucent.png", "FilterTranslucent" ); + button = toolbar_append_toggle_button( toolbar, "Translucent (ALT + 4)\nRightClick: toggle tex\n\tnoDraw\n\tnoDrawNonSolid", "f-translucent.png", "FilterTranslucent" ); + g_signal_connect( G_OBJECT( button ), "button_press_event", G_CALLBACK( Translucent_button_press ), 0 ); button = toolbar_append_toggle_button( toolbar, "Liquids (ALT + 5)\nRightClick: toggle tex\n\twaterCaulk\n\tlavaCaulk\n\tslimeCaulk", "f-liquids.png", "FilterLiquids" ); g_signal_connect( G_OBJECT( button ), "button_press_event", G_CALLBACK( Liquids_button_press ), 0 ); diff --git a/setup/data/tools/bitmaps/f-areaportal.png b/setup/data/tools/bitmaps/f-areaportal.png deleted file mode 100644 index dd85eaf0e662a4d6bae280de90b9f4936af00bd5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 247 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s77>k44ofy`glX=O&z`&C3 z=LqiJ#!!HH~hK3gm45bDP46hOx7_4S6Fo+k- z*%fHRz`(#+;1OBOz`%DHgc*gTe~DWM4f^vEs0 delta 156 zcmX@e_?B^k3KwH>kh>GZx^prwCn^ftDI|LY`7$t6sWC7#v@kIIVqjosc)`F>YQVto zDuIE)Y6b&?c)^@qfi?^b44efXk;M!QY_CC>(Z_I}*F-l>R|8KM#}EtuCz`(%Z>FVdQ I&MBb@02hQWLI3~&