Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_files.c
| Context not available. | |||||
| /* Buttons */ | /* Buttons */ | ||||
| uiBut *but; | uiBut *but; | ||||
| uiLayout *split = uiLayoutSplit(layout, 0.0f, true); | uiLayout *split = uiLayoutSplit(layout, 0.0f, true); | ||||
| uiLayoutSetScaleY(split, 1.2f); | |||||
| /* empty space */ | |||||
| col = uiLayoutColumn(split, false); | |||||
| uiItemS(col); | |||||
| col = uiLayoutColumn(split, false); | col = uiLayoutColumn(split, false); | ||||
| /* Allow reload if we have a saved file. | /* Allow reload if we have a saved file. | ||||
| Context not available. | |||||
| TIP_("Enable scripts")); | TIP_("Enable scripts")); | ||||
| UI_but_func_set(but, wm_block_autorun_warning_enable_scripts, block, NULL); | UI_but_func_set(but, wm_block_autorun_warning_enable_scripts, block, NULL); | ||||
| } | } | ||||
| UI_but_drawflag_disable(but, UI_BUT_TEXT_LEFT); | |||||
| /* empty space between buttons */ | |||||
| col = uiLayoutColumn(split, false); | |||||
| uiItemS(col); | |||||
| col = uiLayoutColumn(split, 1); | col = uiLayoutColumn(split, false); | ||||
| but = uiDefIconTextBut(block, | but = uiDefIconTextBut(block, | ||||
| UI_BTYPE_BUT, | UI_BTYPE_BUT, | ||||
| 0, | 0, | ||||
| Context not available. | |||||
| 0, | 0, | ||||
| TIP_("Continue using file without Python scripts")); | TIP_("Continue using file without Python scripts")); | ||||
| UI_but_func_set(but, wm_block_autorun_warning_ignore, block, NULL); | UI_but_func_set(but, wm_block_autorun_warning_ignore, block, NULL); | ||||
| UI_but_drawflag_disable(but, UI_BUT_TEXT_LEFT); | |||||
| UI_but_flag_enable(but, UI_BUT_ACTIVE_DEFAULT); | |||||
| UI_block_bounds_set_centered(block, 10); | UI_block_bounds_set_centered(block, 14 * U.dpi_fac); | ||||
| return block; | return block; | ||||
| } | } | ||||
| Context not available. | |||||