mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 12:44:31 +00:00
Add browse folder and browse file icons
This commit is contained in:
parent
22c20cea6e
commit
44d3ce2c11
9 changed files with 39 additions and 3 deletions
|
|
@ -39,6 +39,10 @@
|
|||
|
||||
void FBXImporterManager::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
fbx_path_browse->set_icon(get_editor_theme_icon(SNAME("FileBrowse")));
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_READY: {
|
||||
connect("confirmed", callable_mp(this, &FBXImporterManager::_path_confirmed));
|
||||
} break;
|
||||
|
|
@ -148,9 +152,9 @@ FBXImporterManager::FBXImporterManager() {
|
|||
fbx_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
hb->add_child(fbx_path);
|
||||
fbx_path_browse = memnew(Button);
|
||||
hb->add_child(fbx_path_browse);
|
||||
fbx_path_browse->set_text(TTR("Browse"));
|
||||
fbx_path_browse->connect("pressed", callable_mp(this, &FBXImporterManager::_browse_install));
|
||||
hb->add_child(fbx_path_browse);
|
||||
hb->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
hb->set_custom_minimum_size(Size2(400 * EDSCALE, 0));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue