diff options
author | Ton Roosendaal <ton@blender.org> | 2005-08-15 23:46:09 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-08-15 23:46:09 +0400 |
commit | f1609dde1151c8b5645cf142be99a349b0482753 (patch) | |
tree | 2d0ab2c3dd0aa495c0f12ad0055a583f72f9650a /source/blender/include/BIF_interface.h | |
parent | 6bc3f4746bc5325d8e1ff54469ebb6929bf3bdb2 (diff) |
Added new button type: ROUNDBOX
This replaces drawing with uiRoundBox() or glRect() in button Panels,
which just fails for dynamic constructed button views where Panels are
sometimes invisible. Also eliminates hack with PanelPop().
Error was visible with new Modifier panel, entering/exiting EditMode.
Done Modifier and Constraints.
Syntax:
The last 4 free variables in the uiDefBut() call are:
- float, corner-rounding (0.0-pixels),
- not used,
- short: roundbox type (bits, 1 2 4 8 for clockwise corners starting left/top)
- short: color shade offset (color range 0-255)
Diffstat (limited to 'source/blender/include/BIF_interface.h')
-rw-r--r-- | source/blender/include/BIF_interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/include/BIF_interface.h b/source/blender/include/BIF_interface.h index db3e7c487bf..875bdbf3564 100644 --- a/source/blender/include/BIF_interface.h +++ b/source/blender/include/BIF_interface.h @@ -150,6 +150,7 @@ struct ScrArea; #define ICONTEXTROW (25<<9) #define HSVCUBE (26<<9) #define PULLDOWN (27<<9) +#define ROUNDBOX (28<<9) #define BUTTYPE (31<<9) |