Merge branch 'master' of https://github.com/godotengine/godot
This commit is contained in:
commit
225a1b26f4
|
@ -839,7 +839,7 @@ void TextEdit::_notification(int p_what) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cursor.column==str.length() && cursor.line==line) {
|
if (cursor.column==str.length() && cursor.line==line && (char_ofs+char_margin)>=xmargin_beg) {
|
||||||
|
|
||||||
cursor_pos=Point2i( char_ofs+char_margin, ofs_y );
|
cursor_pos=Point2i( char_ofs+char_margin, ofs_y );
|
||||||
VisualServer::get_singleton()->canvas_item_add_rect(ci,Rect2(cursor_pos, Size2i(1,get_row_height())),cache.font_color);
|
VisualServer::get_singleton()->canvas_item_add_rect(ci,Rect2(cursor_pos, Size2i(1,get_row_height())),cache.font_color);
|
||||||
|
|
|
@ -1321,10 +1321,18 @@ void EditorNode::_dialog_action(String p_file) {
|
||||||
case FILE_EXPORT_TILESET: {
|
case FILE_EXPORT_TILESET: {
|
||||||
|
|
||||||
Ref<TileSet> ml;
|
Ref<TileSet> ml;
|
||||||
if (file_export_lib_merge->is_pressed() && FileAccess::exists(p_file)) {
|
if (FileAccess::exists(p_file)) {
|
||||||
ml=ResourceLoader::load(p_file,"TileSet");
|
ml=ResourceLoader::load(p_file,"TileSet");
|
||||||
|
|
||||||
|
if (!file_export_lib_merge->is_pressed()) {
|
||||||
|
ml->clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (ml.is_null()) {
|
if (ml.is_null()) {
|
||||||
|
|
||||||
|
if (file_export_lib_merge->is_pressed()) {
|
||||||
current_option=-1;
|
current_option=-1;
|
||||||
//accept->get_cancel()->hide();
|
//accept->get_cancel()->hide();
|
||||||
accept->get_ok()->set_text("I see..");
|
accept->get_ok()->set_text("I see..");
|
||||||
|
@ -1333,9 +1341,6 @@ void EditorNode::_dialog_action(String p_file) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ml.is_null()) {
|
|
||||||
ml = Ref<TileSet>( memnew( TileSet ));
|
ml = Ref<TileSet>( memnew( TileSet ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2413,7 +2413,7 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
|
||||||
debug_menu->get_popup()->add_item("Continue",DEBUG_CONTINUE);
|
debug_menu->get_popup()->add_item("Continue",DEBUG_CONTINUE);
|
||||||
debug_menu->get_popup()->add_separator();
|
debug_menu->get_popup()->add_separator();
|
||||||
debug_menu->get_popup()->add_check_item("Show Debugger",DEBUG_SHOW);
|
debug_menu->get_popup()->add_check_item("Show Debugger",DEBUG_SHOW);
|
||||||
debug_menu->get_popup()->add_check_item("Keep Debuger Open",DEBUG_SHOW_KEEP_OPEN);
|
debug_menu->get_popup()->add_check_item("Keep Debugger Open",DEBUG_SHOW_KEEP_OPEN);
|
||||||
debug_menu->get_popup()->connect("item_pressed", this,"_menu_option");
|
debug_menu->get_popup()->connect("item_pressed", this,"_menu_option");
|
||||||
|
|
||||||
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_NEXT), true);
|
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_NEXT), true);
|
||||||
|
|
|
@ -569,8 +569,8 @@ void ScriptEditorDebugger::_notification(int p_what) {
|
||||||
|
|
||||||
ppeer->set_stream_peer(connection);
|
ppeer->set_stream_peer(connection);
|
||||||
|
|
||||||
|
|
||||||
show();
|
show();
|
||||||
|
emit_signal("show_debugger",true);
|
||||||
|
|
||||||
dobreak->set_disabled(false);
|
dobreak->set_disabled(false);
|
||||||
tabs->set_current_tab(0);
|
tabs->set_current_tab(0);
|
||||||
|
@ -770,6 +770,7 @@ void ScriptEditorDebugger::_stack_dump_frame_selected() {
|
||||||
|
|
||||||
void ScriptEditorDebugger::_hide_request() {
|
void ScriptEditorDebugger::_hide_request() {
|
||||||
|
|
||||||
|
hide();
|
||||||
emit_signal("show_debugger",false);
|
emit_signal("show_debugger",false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue