Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/file_draw.c
| Show First 20 Lines • Show All 1,097 Lines • ▼ Show 20 Lines | static void file_draw_invalid_library_hint(const bContext *C, | ||||
| /* Separate a bit further. */ | /* Separate a bit further. */ | ||||
| sy -= line_height * 2.2f; | sy -= line_height * 2.2f; | ||||
| { | { | ||||
| UI_icon_draw(sx, sy - UI_UNIT_Y, ICON_INFO); | UI_icon_draw(sx, sy - UI_UNIT_Y, ICON_INFO); | ||||
| const char *suggestion = TIP_( | const char *suggestion = TIP_( | ||||
| "Asset Libraries are local directories that can contain .blend files with assets inside.\n" | "Asset Libraries are local directories that can contain .blend files with assets inside.\n" | ||||
| "Manage Asset Libraries from the File Paths section in Preferences."); | "Manage Asset Libraries from the File Paths section in Preferences"); | ||||
| file_draw_string_multiline( | file_draw_string_multiline( | ||||
| sx + UI_UNIT_X, sy, suggestion, width - UI_UNIT_X, line_height, text_col, NULL, &sy); | sx + UI_UNIT_X, sy, suggestion, width - UI_UNIT_X, line_height, text_col, NULL, &sy); | ||||
| uiBlock *block = UI_block_begin(C, region, __func__, UI_EMBOSS); | uiBlock *block = UI_block_begin(C, region, __func__, UI_EMBOSS); | ||||
| uiBut *but = uiDefIconTextButO(block, | uiBut *but = uiDefIconTextButO(block, | ||||
| UI_BTYPE_BUT, | UI_BTYPE_BUT, | ||||
| "SCREEN_OT_userpref_show", | "SCREEN_OT_userpref_show", | ||||
| WM_OP_INVOKE_DEFAULT, | WM_OP_INVOKE_DEFAULT, | ||||
| Show All 36 Lines | |||||