- got rid of silly #define ..._BIT, #define ... (1<<..._BIT) stuff
- switched almost all uiDefBut(..., TOG|BIT|..) to use UiDefButBit and the name of the actual bit define instead of just a magic constant, this makes searching the code much nicer. most of the credit here goes to LetterRip who did almost all of the conversions, I mostly just checked them over.
This commit is contained in:
@@ -318,7 +318,7 @@ static void script_panel_scriptlink(void)
|
||||
block= uiNewBlock(&curarea->uiblocks, "script_panel_scriptlink", UI_EMBOSS, UI_HELV, curarea->win);
|
||||
if(uiNewPanel(curarea, block, "Scriptlinks", "Script", 0, 0, 318, 204)==0) return;
|
||||
|
||||
uiDefButI(block, TOG|BIT|13, REDRAWBUTSSCRIPT,
|
||||
uiDefButBitI(block, TOG, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT,
|
||||
"Enable Script Links", xco, 200, 150, 20, &G.f, 0, 0, 0, 0,
|
||||
"Enable execution of all assigned Script links");
|
||||
/* for proper alignment: */
|
||||
|
||||
Reference in New Issue
Block a user