Revision 0321602 by Ton Roosendaal October 17, 2003, 14:02 (GMT) |
- The basic layer for Themes in place! - currently only implemented for 3d window - create as many themes you like, and name them - default theme is not editable, and always will be defined at startup (initTheme) - saves in .B.blend - themes for spaces can become local too, so you can set individual 3d windows at theme 'Maya' or so. (to be implemented) - it uses alpha as well...! API: This doesnt use the old method with BFCOLORID blahblah. The API is copied from OpenGL conventions (naming) as much as possible: - void BIF_ThemeColor(ScrArea *sa, int colorid) sets a color... id's are in BIF_resources.h (TH_GRID, TH_WIRE, etc) - void BIF_ThemeColorShade(ScrArea *sa, int colorid, int offset) sets a color with offset, no more weird COLORSHADE_LGREY stuff - void BIF_GetThemeColor3fv(ScrArea *sa, int colorid, float *col) like opengl, this gives you in *col the three rgb values - void BIF_GetThemeColor4ubv(ScrArea *sa, int colorid, char *col) or the one to get 4 bytes ThemeColor calls for globals (UI etc) can also call NULL for *sa... this is to be implemented still. Next step: cleaning up interface.c for all weird colorcalls. |
Revision 00cf36d by Ton Roosendaal October 17, 2003, 00:49 (GMT) |
- accidentally removed 2 lines in this file that made previewrender not showing up... |
Revision 7a79565 by Ton Roosendaal October 16, 2003, 20:36 (GMT) |
- fixed edge selecting... :) |
Revision 1f226c9 by Ton Roosendaal October 16, 2003, 16:13 (GMT) |
- bone selection armatures fixed! |
Revision 77b37c9 by Ton Roosendaal October 16, 2003, 12:03 (GMT) |
- fix for drawing buttons in fileselectors, it used an old exception and special 'EMBOSSF' drawing function. Now complies to standard. |
Revision a7cd8b5 by Ton Roosendaal October 16, 2003, 09:56 (GMT) |
- fixed correct drawing of frontbuffer vertices... it still gives some nice increased interactivity when selecting in slow drawing situations. nevertheless, can be worked on later once, to make it less hackish. :) |
Revision 5d1438a by Ton Roosendaal October 16, 2003, 09:39 (GMT) |
- fixed editing vertices again! I had to clean up very old calls to switch matrices for 3d windows. To make it more clear, I've introduced defines for the infamous persp() function: persp(PERSP_WIN); sets matrices at pixel level window persp(PERSP_VIEW); restores matrices back to 3d drawing persp(PERSP_STORE); only called once, to store correct matrices I will now check on frontbuffer drawing of vertices... it's very doubtful if it's used still correctly, was only meant for visual speed in the early nineties you know. :) |
Revision c761878 by Ton Roosendaal October 16, 2003, 00:17 (GMT) |
- further work on view3d panels: - you can close them (x icon) or press ESC - option to open panel at mouse location (try Nkey) - using 'collapse' (triangle icon) stows header in bottom - opening again restores at old location - dragging panels or zooming clips nicely with window evaluate: an 'auto close' when mouse goes outside panel Warning: vertex selecting still broken! :) It's 2 am now, bedtime... |
Revision d518ca6 by Roel Spruit October 15, 2003, 19:39 (GMT) |
added interface_panel.c to msvc 6 projectfile |
Revision 10333bd by Ton Roosendaal October 15, 2003, 19:23 (GMT) |
- removed all #include "interface.h" from files. this is a local/internal include only (use BIF_interface.h instead) - split up interface.c in two files: NEW: interface_panel.c - removed the temporal text files WARN: FIX AUTOMAKE AND MSVC! |
Revision 478f615 by Ton Roosendaal October 15, 2003, 17:41 (GMT) |
- fixed drawing errors in constraint panel - join 3d window could crash... unchecked pointer in interface.c - setting align in buttonswin caused stripes to draw in view3d-panels - fixed events for new 'background and view settings menu' |
October 15, 2003, 16:28 (GMT) |
- Added ICON_MENU_PANEL |
October 15, 2003, 16:28 (GMT) |
- Added icon to indicate floating panels in menus: ICON_MENU_PANEL - Added it plus tiny edits to view3d menus |
Revision 44344b3 by Ton Roosendaal October 15, 2003, 16:01 (GMT) |
- More code for handling Panels in other windows. Added the 'Nkey' object menu as Panel now. Live updates, whoohoo! closing them, minimizing, etc will follow. first bring back vertex selection :) |
October 15, 2003, 15:23 (GMT) |
- Various cosmetic fixes to menu buts in headers, alignment etc. - Make text fields' text black when deselected, white when selected (editing) |
October 15, 2003, 13:47 (GMT) |
- Modified drawing of ICONROW controls to be clearer, more consistent and logical. (ICONROWs haven't scrolled left/right in years! More detailed tweaking of headerbuttons positions can come when more menus are finished - added text labels to the drawtype menu in 3d view header |
Revision 3bf09a5 by Ton Roosendaal October 15, 2003, 12:51 (GMT) |
- fixed warnings in drawmesh.c - with mouse in Panel, padplus/minus defines scaling of Panel... dunno if this is the correct key. thats for later to worry! Forgot to mention in previous commit: - Panels now have a uiSetPanelStyle() API call. Is under construction... now for test purposes mostly. |
Revision 6480956 by Ton Roosendaal October 15, 2003, 12:26 (GMT) |
- expanded internal windowmanager that it allows button panels in any window (type) - each SpaceData struct (not the window!) can get 'block handlers' assigned, basically event codes that invoke drawing button panels. - this is saved in files, and Panels behave in any window like it does now in buttonswindow - it also means that a 'space window' should leave with a matrix set for buttons level - try it in view3d header menu, 'view'->'backdrop'. this opens the old viewbuttons - it all works non blocking! instant updates of viewbuttons visible in 3d window now. Not done yet: - checking and fixing frontbuffer drawing (select a wireframe draws over) - temporally vertices cannot be selected, is my next project - closing or hiding Panels... - styling stuff... i committed for others to review as well. Have fun. this is certainly a huge improvement over the old viewbuttons! |
Revision 0c1bad3 by Ton Roosendaal October 14, 2003, 21:01 (GMT) |
- another improvement in button panels align: after 'home' it puts the panels always in the left/top corner. it did a centre first... - fixed color print error with AA fonts in textbuttons |
Revision 9b343a9 by Ton Roosendaal October 14, 2003, 20:13 (GMT) |
- cleared a flag in reading Panels back, could cause errors... |
|
|
|


Master Commits
MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021