All pastes #17114 Raw Edit

Mine

public c v1 · immutable
#17114 ·published 2005-07-07 04:08 UTC
rendered paste body
static void texture_panel_pytex(Tex *tex)			/*PYTEX*/{	uiBlock *block;	short xco, yco, a;	block= uiNewBlock(&curarea->uiblocks, "texture_panel_plugin", UI_EMBOSS, UI_HELV, curarea->win);	if(uiNewPanel(curarea, block, "PyTex", "Texture", 640, 0, 318, 204)==0) return;	uiSetButLock(tex->id.lib!=0, "Can't edit library data");/*	if (tex->src_ID->name != NULL) {		uiDefBut(block, TEX, B_NAMEPLUGIN, "",		0,180,318,24,tex->src_ID->name, 0.0, 159.0, 0, 0, ""); */			uiDefBut(block, BUT, B_LOADPYTEX, "Load Plugin", 0,204,137,24, 0, 0, 0, 0, 0, "");	uiDefBut(block, BUT, B_ADDNEWPYTEX, "Add New", 0, 180, 137, 24, 0, 0, 0, 0, 0, ""); 			}static void texture_panel_magic(Tex *tex){	uiBlock *block;		block= uiNewBlock(&curarea->uiblocks, "texture_panel_magic", UI_EMBOSS, UI_HELV, curarea->win);	if(uiNewPanel(curarea, block, "Magic", "Texture", 640, 0, 318, 204)==0) return;	uiSetButLock(tex->id.lib!=0, "Can't edit library data");	uiBlockBeginAlign(block);	uiDefButS(block, NUM, B_TEXPRV, "Depth:",		10, 90, 150, 19, &tex->noisedepth, 0.0, 10.0, 0, 0, "Sets the depth of the pattern");	uiDefButF(block, NUM, B_TEXPRV, "Turbulence:",	10, 70, 150, 19, &tex->turbul, 0.0, 200.0, 10, 0, "Sets the strength of the pattern");}