Add toolbar buttons for 'additive selection' as well as 'auto-expand selection'.

This commit is contained in:
Marco Cawthorne 2021-12-30 16:51:53 -08:00
parent eb4580ccbe
commit c4655a19e1
Signed by: eukara
GPG key ID: C196CD8BA993248A
4 changed files with 51 additions and 0 deletions

View file

@ -63,6 +63,8 @@ all:
cp -vf ./bitmaps/scalelockx.xpm ../build/bitmaps/scalelockx.xpm cp -vf ./bitmaps/scalelockx.xpm ../build/bitmaps/scalelockx.xpm
cp -vf ./bitmaps/scalelocky.xpm ../build/bitmaps/scalelocky.xpm cp -vf ./bitmaps/scalelocky.xpm ../build/bitmaps/scalelocky.xpm
cp -vf ./bitmaps/scalelockz.xpm ../build/bitmaps/scalelockz.xpm cp -vf ./bitmaps/scalelockz.xpm ../build/bitmaps/scalelockz.xpm
cp -vf ./bitmaps/select_additive.xpm ../build/bitmaps/select_additive.xpm
cp -vf ./bitmaps/select_autoexpand.xpm ../build/bitmaps/select_autoexpand.xpm
cp -vf ./bitmaps/selection_csgmerge.xpm ../build/bitmaps/selection_csgmerge.xpm cp -vf ./bitmaps/selection_csgmerge.xpm ../build/bitmaps/selection_csgmerge.xpm
cp -vf ./bitmaps/selection_csgsubtract.xpm ../build/bitmaps/selection_csgsubtract.xpm cp -vf ./bitmaps/selection_csgsubtract.xpm ../build/bitmaps/selection_csgsubtract.xpm
cp -vf ./bitmaps/selection_makehollow.xpm ../build/bitmaps/selection_makehollow.xpm cp -vf ./bitmaps/selection_makehollow.xpm ../build/bitmaps/selection_makehollow.xpm

View file

@ -0,0 +1,22 @@
/* XPM */
static char * select_additive_xpm[] = {
"16 16 3 1",
" c None",
". c #46E3FB",
"+ c #23727E",
" ",
" .............. ",
" . . ",
" . . ",
" . . . ",
" . .+ . ",
" . .+ . ",
" . ....... . ",
" . ++.++++ . ",
" . .+ . ",
" . .+ . ",
" . + . ",
" . . ",
" . . ",
" .............. ",
" "};

View file

@ -0,0 +1,22 @@
/* XPM */
static char * select_autoexpand_xpm[] = {
"16 16 3 1",
" c None",
". c #46E3FB",
"+ c #2C909F",
" ",
" .............. ",
" . . ",
" . .. . ",
" . .. +.. . ",
" . ..+ ..+ . ",
" . ..+ ..+ . ",
" . ......+ . ",
" . ..++..+ . ",
" . ..+ ..+ . ",
" . ..+ ..+ . ",
" . ..+ ..+ . ",
" . ++ ++ . ",
" . . ",
" .............. ",
" "};

View file

@ -2453,6 +2453,11 @@ ui::Toolbar create_main_toolbar()
toolbar_append_button(toolbar, "Refresh Assets", "refresh_models.xpm", toolbar_append_button(toolbar, "Refresh Assets", "refresh_models.xpm",
"RefreshReferences"); "RefreshReferences");
toolbar_append_toggle_button(toolbar, "Auto-Expand Selection", "select_autoexpand.xpm",
"ToggleExpansion");
toolbar_append_toggle_button(toolbar, "Additive Selection", "select_additive.xpm",
"ToggleAddSelect");
PluginToolbar_AddToMain(toolbar); PluginToolbar_AddToMain(toolbar);