All pastes #612179 Raw Edit

blenderhelp

public text v1 · immutable
·published 2007-07-10 07:12 UTC
rendered paste body
static void dwag_panel_properties(short cntrl) //ddwagnz Panel
{
       uiBlock *block;
       View3D *vd;
       float *curs;
       
       vd= G.vd;
       
       block= uiNewBlock(&curarea->uiblocks, "dwag_panel_properties", UI_EMBOSS, UI_HELV, curarea->win);
       uiPanelControl(UI_PNL_SOLID | UI_PNL_CLOSE | cntrl);
       uiSetPanelHandler(DWAG_HANDLER_PROPERTIES);
       if(uiNewPanel(curarea, block, "ddwagnz panel", "dwagnz", 340, 30, 318, 254)==0) return;
     
       /*apparently to force height*/
       uiNewPanelHeight(block, 264);
       
       if(G.f & (G_VERTEXPAINT|G_FACESELECT|G_TEXTUREPAINT|G_WEIGHTPAINT)) {
            	uiBlockSetFlag(block, UI_BLOCK_FRONTBUFFER); //some buffer shit
       }
       
       uiDefBut(block, LABEL, 1, "This is my first panel of this type XD"   10, 220,150, 19, NULL, 0.0, 0.0, 0, 0, "");
}