Lines 107-112
Link Here
|
107 |
#include "blendef.h" |
107 |
#include "blendef.h" |
108 |
#include "butspace.h" |
108 |
#include "butspace.h" |
109 |
|
109 |
|
|
|
110 |
extern int button_enable_script_links_enabled; |
111 |
|
110 |
/* ************************ function prototypes ********************** */ |
112 |
/* ************************ function prototypes ********************** */ |
111 |
void draw_scriptlink(uiBlock *, ScriptLink *, int , int , int ) ; |
113 |
void draw_scriptlink(uiBlock *, ScriptLink *, int , int , int ) ; |
112 |
|
114 |
|
Lines 323-329
static void script_panel_scriptlink(void)
Link Here
|
323 |
block= uiNewBlock(&curarea->uiblocks, "script_panel_scriptlink", UI_EMBOSS, UI_HELV, curarea->win); |
325 |
block= uiNewBlock(&curarea->uiblocks, "script_panel_scriptlink", UI_EMBOSS, UI_HELV, curarea->win); |
324 |
if(uiNewPanel(curarea, block, "Scriptlinks", "Script", 0, 0, 318, 204)==0) return; |
326 |
if(uiNewPanel(curarea, block, "Scriptlinks", "Script", 0, 0, 318, 204)==0) return; |
325 |
|
327 |
|
326 |
uiDefButBitI(block, TOG, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT, |
328 |
uiDefButBitI(block, button_enable_script_links_enabled ? TOG : BUT, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT, |
327 |
"Enable Script Links", xco, 200, 150, 20, &G.f, 0, 0, 0, 0, |
329 |
"Enable Script Links", xco, 200, 150, 20, &G.f, 0, 0, 0, 0, |
328 |
"Enable execution of all assigned Script links and Space Handelers"); |
330 |
"Enable execution of all assigned Script links and Space Handelers"); |
329 |
/* for proper alignment: */ |
331 |
/* for proper alignment: */ |