added a tiny bit more space to docks and script tab

This commit is contained in:
Juan Linietsky 2015-06-24 18:57:14 -03:00
parent b4190ed2b9
commit 29b2e811f6
4 changed files with 5 additions and 2 deletions

View file

@ -4274,7 +4274,7 @@ EditorNode::EditorNode() {
//dock_select_popoup->set_(Size2(20,20));
for(int i=0;i<DOCK_SLOT_MAX;i++) {
dock_slot[i]->set_custom_minimum_size(Size2(250,250));
dock_slot[i]->set_custom_minimum_size(Size2(230,220));
dock_slot[i]->set_v_size_flags(Control::SIZE_EXPAND_FILL);
dock_slot[i]->set_popup(dock_select_popoup);
dock_slot[i]->connect("pre_popup_pressed",this,"_dock_pre_popup",varray(i));

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

View file

@ -1711,7 +1711,8 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
script_list = memnew( ItemList );
script_split->add_child(script_list);
script_list->set_custom_minimum_size(Size2(140,0));
script_list->set_custom_minimum_size(Size2(70,0));
script_split->set_split_offset(70);
tab_container = memnew( TabContainer );
tab_container->set_tabs_visible(false);

View file

@ -33,6 +33,7 @@
#include "scene/gui/tab_container.h"
#include "scene/gui/text_edit.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/tool_button.h"
#include "scene/gui/tree.h"
#include "scene/main/timer.h"
#include "script_language.h"
@ -165,6 +166,7 @@ class ScriptEditor : public VBoxContainer {
GotoLineDialog *goto_line_dialog;
ConfirmationDialog *erase_tab_confirm;
ScriptEditorDebugger* debugger;
ToolButton *scripts_visible;
void _tab_changed(int p_which);
void _menu_option(int p_optin);