diff options
author | Ton Roosendaal <ton@blender.org> | 2009-03-25 19:58:42 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-03-25 19:58:42 +0300 |
commit | 2e48c4059acf7405c6beb366df63ae563802e0ff (patch) | |
tree | 439c95e5d584d7fc6e9486bf5bd83c44d5bc3cce /source/blender/editors/space_buttons/space_buttons.c | |
parent | a26a3f423fd6503dc2fbcd5f105c766ac3288515 (diff) |
2.5
WIP commit for new system to draw widgets and use themes or styles.
Not really interesting stuff to see in code now, the current
structure will change quite a lot, this to make it hook up well
to the existing system.
What works quite well is a new full opengl vector method to draw
scalable and pixel-aligned anti-aliased buttons.
http://download.blender.org/institute/rt3.jpg
http://download.blender.org/institute/rt4.jpg
Diffstat (limited to 'source/blender/editors/space_buttons/space_buttons.c')
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index 1bc57b38abe..3205fea2a15 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -146,6 +146,7 @@ static void buttons_main_area_init(wmWindowManager *wm, ARegion *ar) { ListBase *keymap; +// ar->v2d.minzoom= ar->v2d.maxzoom= 1.0f; UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_PANELS_UI, ar->winx, ar->winy); /* own keymap */ @@ -171,13 +172,15 @@ static void buttons_main_area_draw(const bContext *C, ARegion *ar) /* swapbuffers indicator */ fac= BLI_frand(); glColor3f(fac, fac, fac); - glRecti(20, 2, 30, 12); + glRecti(20, v2d->cur.ymin+2, 30, v2d->cur.ymin+12); /* panels */ if(sbuts->mainb == CONTEXT_SCENE) buttons_scene(C, ar); else if(sbuts->mainb == CONTEXT_OBJECT) buttons_object(C, ar); + else + drawnewstuff(); if(sbuts->align) if(sbuts->re_align || sbuts->mainbo!=sbuts->mainb || sbuts->tabo!=sbuts->tab[sbuts->mainb]) |