From 273d2ab9d492fc6855302b69b7219a95f77644aa Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Mon, 7 Aug 2017 21:55:24 -0500 Subject: [PATCH] Several ui improvements (mostly margins) Improved colors Added some missing icons --- editor/animation_editor.cpp | 27 +++-- editor/editor_audio_buses.cpp | 12 +- editor/editor_log.cpp | 9 +- editor/editor_plugin_settings.cpp | 9 +- editor/editor_profiler.cpp | 7 +- editor/editor_themes.cpp | 6 +- editor/filesystem_dock.cpp | 1 - .../icons/2x/icon_audio_stream_player_3_d.png | Bin 0 -> 763 bytes editor/icons/2x/icon_bus_vu_frozen.png | Bin 1673 -> 1945 bytes editor/icons/2x/icon_connect.png | Bin 251 -> 876 bytes editor/icons/2x/icon_native_script.png | Bin 0 -> 698 bytes editor/icons/icon_audio_stream_player_3_d.png | Bin 0 -> 433 bytes editor/icons/icon_bus_vu_frozen.png | Bin 868 -> 925 bytes editor/icons/icon_connect.png | Bin 170 -> 445 bytes editor/icons/icon_native_script.png | Bin 0 -> 392 bytes .../source/icon_audio_stream_player_3_d.svg | 114 ++++++++++++++++++ editor/icons/source/icon_bus_vu_frozen.svg | 17 +-- ...tive_script.svg => icon_native_script.svg} | 0 editor/project_settings_editor.cpp | 17 +-- editor/property_editor.cpp | 25 ++-- editor/scene_tree_editor.cpp | 6 +- editor/script_editor_debugger.cpp | 19 +-- editor/script_editor_debugger.h | 2 +- 23 files changed, 187 insertions(+), 84 deletions(-) create mode 100644 editor/icons/2x/icon_audio_stream_player_3_d.png create mode 100644 editor/icons/2x/icon_native_script.png create mode 100644 editor/icons/icon_audio_stream_player_3_d.png create mode 100644 editor/icons/icon_native_script.png create mode 100644 editor/icons/source/icon_audio_stream_player_3_d.svg rename editor/icons/source/{icon_g_d_native_script.svg => icon_native_script.svg} (100%) diff --git a/editor/animation_editor.cpp b/editor/animation_editor.cpp index 45da3656952..3675948b1df 100644 --- a/editor/animation_editor.cpp +++ b/editor/animation_editor.cpp @@ -1091,11 +1091,11 @@ void AnimationKeyEditor::_track_editor_draw() { int sep = get_constant("vseparation", "Tree"); int hsep = get_constant("hseparation", "Tree"); Color color = get_color("font_color", "Tree"); - Color sepcolor = get_color("light_color_1", "Editor"); - Color timecolor = get_color("dark_color_2", "Editor"); + Color sepcolor = Color(1, 1, 1, 0.2); + Color timecolor = Color(1, 1, 1, 0.2); Color hover_color = Color(1, 1, 1, 0.05); Color select_color = Color(1, 1, 1, 0.1); - Color invalid_path_color = Color(1, 0.6, 0.4, 0.5); + Color invalid_path_color = get_color("error_color", "Editor"); Color track_select_color = get_color("highlight_color", "Editor"); Ref remove_icon = get_icon("Remove", "EditorIcons"); @@ -1156,11 +1156,12 @@ void AnimationKeyEditor::_track_editor_draw() { int settings_limit = size.width - right_separator_ofs; int name_limit = settings_limit * name_column_ratio; - te->draw_line(ofs + Point2(name_limit, 0), ofs + Point2(name_limit, size.height), color); - te->draw_line(ofs + Point2(settings_limit, 0), ofs + Point2(settings_limit, size.height), color); + Color linecolor = Color(1, 1, 1, 0.2); + te->draw_line(ofs + Point2(name_limit, 0), ofs + Point2(name_limit, size.height), linecolor); + te->draw_line(ofs + Point2(settings_limit, 0), ofs + Point2(settings_limit, size.height), linecolor); te->draw_texture(hsize_icon, ofs + Point2(name_limit - hsize_icon->get_width() - hsep, (h - hsize_icon->get_height()) / 2)); - te->draw_line(ofs + Point2(0, h), ofs + Point2(size.width, h), color); + te->draw_line(ofs + Point2(0, h), ofs + Point2(size.width, h), linecolor); // draw time float keys_from; @@ -1180,7 +1181,7 @@ void AnimationKeyEditor::_track_editor_draw() { int end_px = (l - h_scroll->get_value()) * scale; int begin_px = -h_scroll->get_value() * scale; - Color notimecol = get_color("light_color_1", "Editor"); + Color notimecol = get_color("dark_color_2", "Editor"); { @@ -1276,7 +1277,7 @@ void AnimationKeyEditor::_track_editor_draw() { if ((sc / step) != (prev_sc / step) || (prev_sc < 0 && sc >= 0)) { int scd = sc < 0 ? prev_sc : sc; - te->draw_line(ofs + Point2(name_limit + i, 0), ofs + Point2(name_limit + i, h), color); + te->draw_line(ofs + Point2(name_limit + i, 0), ofs + Point2(name_limit + i, h), linecolor); te->draw_string(font, ofs + Point2(name_limit + i + 3, (h - font->get_height()) / 2 + font->get_ascent()).floor(), String::num((scd - (scd % step)) / double(SC_ADJ), decimals), sub ? color_time_dec : color_time_sec, zoomw - i); } } @@ -1335,7 +1336,7 @@ void AnimationKeyEditor::_track_editor_draw() { te->draw_line(ofs + Point2(0, y + h), ofs + Point2(size.width, y + h), sepcolor); Point2 icon_ofs = ofs + Point2(size.width, y + (h - remove_icon->get_height()) / 2).floor(); - icon_ofs.y += 4; + icon_ofs.y += 4 * EDSCALE; /* icon_ofs.x-=remove_icon->get_width(); @@ -1353,7 +1354,7 @@ void AnimationKeyEditor::_track_editor_draw() { */ track_ofs[0] = size.width - icon_ofs.x; icon_ofs.x -= down_icon->get_width(); - te->draw_texture(down_icon, icon_ofs); + te->draw_texture(down_icon, icon_ofs - Size2(0, 4 * EDSCALE)); int wrap_type = animation->track_get_interpolation_loop_wrap(idx) ? 1 : 0; icon_ofs.x -= hsep; @@ -1366,7 +1367,7 @@ void AnimationKeyEditor::_track_editor_draw() { track_ofs[1] = size.width - icon_ofs.x; icon_ofs.x -= down_icon->get_width(); - te->draw_texture(down_icon, icon_ofs); + te->draw_texture(down_icon, icon_ofs - Size2(0, 4 * EDSCALE)); int interp_type = animation->track_get_interpolation_type(idx); ERR_CONTINUE(interp_type < 0 || interp_type >= 3); @@ -1385,7 +1386,7 @@ void AnimationKeyEditor::_track_editor_draw() { icon_ofs.x -= hsep; icon_ofs.x -= down_icon->get_width(); - te->draw_texture(down_icon, icon_ofs); + te->draw_texture(down_icon, icon_ofs - Size2(0, 4 * EDSCALE)); icon_ofs.x -= hsep; icon_ofs.x -= cont_icon[umode]->get_width(); @@ -3745,7 +3746,7 @@ AnimationKeyEditor::AnimationKeyEditor() { history = EditorNode::get_singleton()->get_editor_history(); ec = memnew(Control); - ec->set_custom_minimum_size(Size2(0, 150)); + ec->set_custom_minimum_size(Size2(0, 150) * EDSCALE); add_child(ec); ec->set_v_size_flags(SIZE_EXPAND_FILL); diff --git a/editor/editor_audio_buses.cpp b/editor/editor_audio_buses.cpp index 08b093aecbb..219f05ef95d 100644 --- a/editor/editor_audio_buses.cpp +++ b/editor/editor_audio_buses.cpp @@ -1061,20 +1061,19 @@ EditorAudioBuses::EditorAudioBuses() { top_hb = memnew(HBoxContainer); add_child(top_hb); + file = memnew(ToolButton); + file->set_text("default_bus_layout.tres"); + top_hb->add_child(file); + file->connect("pressed", this, "_select_layout"); + add = memnew(Button); top_hb->add_child(add); - ; add->set_text(TTR("Add Bus")); add->connect("pressed", this, "_add_bus"); top_hb->add_spacer(); - file = memnew(ToolButton); - file->set_text("default_bus_layout.tres"); - top_hb->add_child(file); - file->connect("pressed", this, "_select_layout"); - load = memnew(Button); load->set_text(TTR("Load")); top_hb->add_child(load); @@ -1096,6 +1095,7 @@ EditorAudioBuses::EditorAudioBuses() { _new->connect("pressed", this, "_new_layout"); bus_scroll = memnew(ScrollContainer); + bus_scroll->add_style_override("panel", memnew(StyleBoxEmpty)); bus_scroll->set_v_size_flags(SIZE_EXPAND_FILL); bus_scroll->set_enable_h_scroll(true); bus_scroll->set_enable_v_scroll(false); diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index addffd6ea33..5ada5f9095f 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -168,15 +168,10 @@ EditorLog::EditorLog() { HBoxContainer *hb = memnew(HBoxContainer); vb->add_child(hb); title = memnew(Label); - title->set_text(TTR(" Output:")); + title->set_text(TTR("Output:")); title->set_h_size_flags(SIZE_EXPAND_FILL); hb->add_child(title); - //pd = memnew( PaneDrag ); - //hb->add_child(pd); - //pd->connect("dragged",this,"_dragged"); - //pd->set_default_cursor_shape(Control::CURSOR_MOVE); - clearbutton = memnew(Button); hb->add_child(clearbutton); clearbutton->set_text(TTR("Clear")); @@ -184,7 +179,7 @@ EditorLog::EditorLog() { ec = memnew(Control); vb->add_child(ec); - ec->set_custom_minimum_size(Size2(0, 180)); + ec->set_custom_minimum_size(Size2(0, 180) * EDSCALE); ec->set_v_size_flags(SIZE_EXPAND_FILL); pc = memnew(PanelContainer); diff --git a/editor/editor_plugin_settings.cpp b/editor/editor_plugin_settings.cpp index 63bee330928..712a3ac0014 100644 --- a/editor/editor_plugin_settings.cpp +++ b/editor/editor_plugin_settings.cpp @@ -193,15 +193,16 @@ EditorPluginSettings::EditorPluginSettings() { plugin_list->set_column_expand(1, false); plugin_list->set_column_expand(2, false); plugin_list->set_column_expand(3, false); - plugin_list->set_column_min_width(1, 100); - plugin_list->set_column_min_width(2, 250); - plugin_list->set_column_min_width(3, 80); + plugin_list->set_column_min_width(1, 100 * EDSCALE); + plugin_list->set_column_min_width(2, 250 * EDSCALE); + plugin_list->set_column_min_width(3, 80 * EDSCALE); plugin_list->set_hide_root(true); plugin_list->connect("item_edited", this, "_plugin_activity_changed"); - MarginContainer *mc = memnew(MarginContainer); + VBoxContainer *mc = memnew(VBoxContainer); mc->add_child(plugin_list); mc->set_v_size_flags(SIZE_EXPAND_FILL); + mc->set_h_size_flags(SIZE_EXPAND_FILL); add_child(mc); diff --git a/editor/editor_profiler.cpp b/editor/editor_profiler.cpp index 64cf275c3a5..78bc99caae7 100644 --- a/editor/editor_profiler.cpp +++ b/editor/editor_profiler.cpp @@ -129,10 +129,11 @@ String EditorProfiler::_get_time_as_text(Metric &m, float p_time, int p_calls) { Color EditorProfiler::_get_color_from_signature(const StringName &p_signature) const { + Color bc = get_color("error_color", "Editor"); double rot = ABS(double(p_signature.hash()) / double(0x7FFFFFFF)); Color c; - c.set_hsv(rot, 1, 1); - return c; + c.set_hsv(rot, bc.get_s(), bc.get_v()); + return c.linear_interpolate(get_color("base_color", "Editor"), 0.07); } void EditorProfiler::_item_edited() { @@ -387,7 +388,6 @@ void EditorProfiler::_update_frame() { if (plot_sigs.has(m.categories[i].signature)) { category->set_checked(0, true); - category->set_custom_bg_color(0, Color(0, 0, 0)); category->set_custom_color(0, _get_color_from_signature(m.categories[i].signature)); } @@ -411,7 +411,6 @@ void EditorProfiler::_update_frame() { if (plot_sigs.has(it.signature)) { item->set_checked(0, true); - item->set_custom_bg_color(0, Color(0, 0, 0)); item->set_custom_color(0, _get_color_from_signature(it.signature)); } } diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 807aed42671..156f00f6a36 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -163,7 +163,7 @@ Ref create_editor_theme() { theme->set_color("light_color_1", "Editor", light_color_1); theme->set_color("light_color_2", "Editor", light_color_2); - Color success_color = highlight_color.linear_interpolate(Color(0, 1, .8), 0.8); + Color success_color = highlight_color.linear_interpolate(Color(.6, 1, .6), 0.8); Color warning_color = highlight_color.linear_interpolate(Color(1, 1, .2), 0.8); Color error_color = highlight_color.linear_interpolate(Color(1, .2, .2), 0.8); theme->set_color("success_color", "Editor", success_color); @@ -382,12 +382,12 @@ Ref create_editor_theme() { theme->set_stylebox("SceneTabBG", "EditorStyles", make_empty_stylebox(6, 5, 6, 5)); theme->set_icon("close", "Tabs", title_hl_close_icon); - // Separatos (no separatos) + // Separators (no separators) theme->set_stylebox("separator", "HSeparator", make_line_stylebox(separator_color, border_width)); theme->set_stylebox("separator", "VSeparator", make_line_stylebox(separator_color, border_width, 0, true)); // Debugger - Ref style_panel_debugger = make_flat_stylebox(dark_color_2, 0, 4, 0, 0); + Ref style_panel_debugger = make_flat_stylebox(dark_color_2, 4, 4, 4, 4); theme->set_stylebox("DebuggerPanel", "EditorStyles", style_panel_debugger); Ref style_tab_fg_debugger = make_flat_stylebox(dark_color_2, 10, 5, 10, 5); diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 77ca1a51450..7e900980448 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1737,7 +1737,6 @@ FileSystemDock::FileSystemDock(EditorNode *p_editor) { file_list_vb->set_v_size_flags(SIZE_EXPAND_FILL); path_hb = memnew(HBoxContainer); - path_hb->add_child(memnew(Control)); file_list_vb->add_child(path_hb); button_back = memnew(ToolButton); diff --git a/editor/icons/2x/icon_audio_stream_player_3_d.png b/editor/icons/2x/icon_audio_stream_player_3_d.png new file mode 100644 index 0000000000000000000000000000000000000000..917719f54b95404217a82d734e1e214249121ebb GIT binary patch literal 763 zcmV8Kcs+=@1dM*`Ho?la6Z66wJo%d<#+r*f12QR@u)?Z4BJXqyz(mLlJ7=+byH}J7^Z*DoH5@@C-ns3|R>ycsiy%ovS>Z5iq`Z8sBCOeXOZ9 zk-pKUY)(FeR>0GEm+t~$m6#Si;K8=_cL^Grb+Y2ZQp+01Q9fDW*-Kk{#y=JoSG0l5 zH`(5PIWCh}wgM78Ah(x!*|)Rxw(eY4Jc~H2tZBN^8rEh)QQC=IUbMX3(Cp3@^+$!nTJ8t!~ol24uhc*^Lf{{ zJDphUOvS*!y+8vG-$y5Yf=5cz^u=CcUP_wgf>4xm)ZhO(wUFL|`yVEIEFng+_q>1} zkU_8Od8H<+Fq(3fc19otSr{cbrL42K= z&*m7gg!%+PYoI)^QlfZH6K+<3#5E=gHoz1uQuq}U`5wdcDL555vFHeO+!iYQh9$(6 z(~;wM3KUK<(G8(#4SwQ)PuoY63!TJ#0ib4VG|OWmM2FShK=Gt$z6MbL+teeMc}O1| td>#~6wsYs0W(NUN06YS&%l?f1;}@`WCtPL#t7`xN002ovPDHLkV1iPoSbP8g literal 0 HcmV?d00001 diff --git a/editor/icons/2x/icon_bus_vu_frozen.png b/editor/icons/2x/icon_bus_vu_frozen.png index 367322b21ccfb82669671bf5cecff34b181d502a..94d5d335d6a48f12ee423864f22dbde444a5fd58 100644 GIT binary patch delta 1913 zcmV-<2Zs2G4Ve#+HGcFOMxr8OERIt?s>I%_h@pR;PdRUnUj7eJ^kzVZ&d?b|L@}4AN>4xnuB4LaOZ3(VMBcVGk^Z+yC2)z-!sGFZX5uF z3B>yL$3yW&UcTK#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6Zsu>3=*C`<4JR)(G zNvn&dfR+=$ki0-_9+8*(#=rb4&M5_R+I_8-7r=tDV-;u5*DoRh;wYdR1zw(lzk?_s z2Oy{2o3)4t7SlnYa=l>vC=j@;7k?0=US>Volubbe3g#V{gL+Dtc5hZ{$IE%Jm?@i; z<_j)5BC_QP4CChot#(|Nr(l?O)c6z#7z|AJUa3)_7zzkXRPcz_kODENkBGh6tXV-t z3XDNjvy3_gW`R|+txa%Bm(S~%s#)6$3i1@}FDVE(lL|n(cViU_5JbT$5r5G+Zw19U zqp)*G+LTR6?koRlJ`X&r7U|yg3I$T!lnpncY9<8Mj$6H;pdtkbnlG@dv{R!1fxlsq zZ4>GRM#asVwR%B8o`QpUhoHG*gVN5m>a1DJ$!uKttlEpFVCm_Pe{MO@=TNTk<)<1fqzqG&DJj>qH-dmIw)Gbz{^qa_2E41R4!OfJ6CFXLEx!e z$eS>C49jtOfi()eJO$6Fh=^RC&|o;e+6j$CISRgc zanR+Uy#Qpod#OS}4*YGq(!}NZ&6**wUSO?WP>`oU2c0y&Q%YdSM7qn`*>sAj7wD8T ltJiNY$V6hBxNJH{{R97dJOiB}-;MwP002ovPDHLkV1mo>?8*QD diff --git a/editor/icons/2x/icon_connect.png b/editor/icons/2x/icon_connect.png index e3f4b8fd1232ee5b9db43eab975e62ef594a2fc9..2a36b1716a7b81b81b301e4b5cb93d34a101f43f 100644 GIT binary patch delta 836 zcmV-K1H1hD0qh2lHGcykNklL2)nLh(37_-3apDQ$$cfL~*4c5&VHjVVKM`Z5AdjEGimj?r~uw zH`htq*jHTG4+e6+@7!~~oa9^vn8)u9Y9$0gu!Wf~0!Rb+0DoW{zz8!xC8CG6Z9gHR zXwD4yzCQ+F#S~}9nfXd0kvNyhWX67lfd=YCbjh-;lbKBBZMz0UOJ_tw04g)6k!0qf zFbqdZrP7{u4YZs<1I1!7(bd(p#ImeD%d*xn^9BH$0W6L!NOZAUtsWj69Q^XX7>Glq zQdwB9*Y`5>34bE$k4d?cOeS~t_V#|969Wwti^W7bojwZS41f+pzFn);c1$;kSs7@+ z^Sre}i0c3fO~r}+v~By~PZ`kefi3`J07?LEhhccLP$-nmeAjimrIdF8tk-#F-qY9D z_fOjfrdY!Wz-7y_PG_^(@fZ`20IbyLnv`-?s}*gzhJRDQ0&pOTqSvFNqg!>MP$;}n zO6>&jNu$$Y7@lcWY&Q2mr&8)h5ClhbGM~@CAfi)7?*4MQ9DAv?G+^8IEyrME z%%2dB<2(Rx+@SaAzjIGd&j)6{qbFFFwP8jET-VL|zJJa4{fWuvhUa+$dX8<|7XZA{ zC>cf3wx;4j+}C4fo_+$Z>t>~t&j9QK&^h^R7k@%Lc3n5y$RnbNng2G9Z`K2))N{kY z01W(KKuS3bV42ASSSqDF+jLlndq$3a0U?T_k{%P$@@WkK_#=jEV51&%baVuU-n8q? z{LaujXJTL~upV@GcfZHCcf|&p8us`1e>U{mObpzQ;l6cezH4&Yjaixe+@5X{p63k+ zAw3=gSZYXbrIhPu^8y-&A108`=SRXYTnFGk022TvnEBtiXg-g50Kiv>vMnp#@T$20 O0000O>oY66GAuuJ7D!GHpVErJ1CQ%fwlCEgrzj_ z`Et|bDgiufH%D9prIedR!uQ(HIM4+bAZ|k~(mC)u4p>#WmPg4QZ~@&W;oo$D?*bQ~ z*#%d=`~zR<(FG?(tQfI?*4iEzCKHfSy3|^?z!4a&g*fx&4pf*WMM{ua1^@s607*qo IM6N<$f}KiM6#xJL diff --git a/editor/icons/2x/icon_native_script.png b/editor/icons/2x/icon_native_script.png new file mode 100644 index 0000000000000000000000000000000000000000..31cc130867c3704fd6ac02ee7e4a57cb0f00548f GIT binary patch literal 698 zcmV;r0!96aP)$VG3nL(cCX(5D{*5WwUwOY+D>Ltqn0JxYHgb-8O!T>~6H4c(;)1VmvY#zA)M06Rz z7b1G=`~LZKj+v*LG4ljezu&JD(F*__BHFR_G46q6z#{;aMEV2ZJ~Qu2DYu#Vq0vl; z>x04InNsQwGv5ZVmZVMqT-91X%>_uNtdnY<2mk<%&+{~ZO)2H2o06sFaYw1Noh@&`;-vKzPR;x4tU<)GRjI^t@eqyTieg6tGKhE<60IjtE zO8g7LFnn#xMN#yssGl0YWWRJwn2lz$`O8+{Xf%EjQ6Ye`f5WAP$}6zV#IoxD`3#)W z8g_dC;FA#IFp8psMx!y;)m+qP7C<_V9mm;nUH5wlfSEq?Eom1d;qW) g1i^)QZox9~7qZp`9B;K$e*gdg07*qoM6N<$f)+A5_y7O^ literal 0 HcmV?d00001 diff --git a/editor/icons/icon_audio_stream_player_3_d.png b/editor/icons/icon_audio_stream_player_3_d.png new file mode 100644 index 0000000000000000000000000000000000000000..60e3528ffd75b6c82a1e36d201b8483bb35a92e2 GIT binary patch literal 433 zcmV;i0Z#sjP)1YK9{@Cf zY;JSfF|D(_X{|ekg=1K8TPR@E)AbuSlNtJI@NAUL#U)}?hf+I0%_qPL-`xE#fE*$d zUn}HID;-pK3`-odJRK7hU{5!UrbH@r6zl}R#@j(V8qK~hSF^_OMRCft?W}@oUt}u$ b3jfwShhu!(0+q{I00000NkvXXu0mjfE%LzS literal 0 HcmV?d00001 diff --git a/editor/icons/icon_bus_vu_frozen.png b/editor/icons/icon_bus_vu_frozen.png index 1a6ca6e76710158b3f9a8936bc04880546a70f48..4e9b8f4b4bb3d2b13e18cc64b7f1297f74b89129 100644 GIT binary patch delta 884 zcmV-)1B?9R2Av0xHh)q{L_t(&fyJ5OYt2y@$G^{SMADMmT5B&z5=oMjBuPq=$e$pQ zBrRG?!yTh_va}>w@+U}15-%i)BzeIjFGSMqwth=X%d(xXH&{C(&)MCR^Xhi%{?7f} z@AG}0?>QIv-%EbI*ng7&z$)YC^u|8v1b{ie-zp+N`Rga9?teoV zfz%s&n>qoYn0$BKzN;3KEQrwyB=lN} z08E%w5O@^Q;eY$1_NE%4S9dH(y31Tc|f_iz&q7-2q5E}v^ z4hY8{e+e{393gdJ^Wp}Et4muy_GCE23)F$ll~e_qReul{6*``l=9CsGI#+F0{M)Pp>nM@te%K%0jfM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*7pP1k^>u=JR>Qdw;Rb{QlrKVzQM~zH4+B01E&B07*qoM6N<$f?7Sr?f?J) delta 124 zcmdnXyozyxX(>azr;B5VMQ?I~M8<&*-wy|y+3)f2@EA)g9^4? zX+g0c=1*{&kzKH}A>)8kS5i*mfkOuz=1eYR?Aq%Pq>%La(1YGqb)a6O9XYOSJ7OlV cnWk_sFf8j5ujH@%Y`_2np00i_>zopr0M{ljHUIzs diff --git a/editor/icons/icon_native_script.png b/editor/icons/icon_native_script.png new file mode 100644 index 0000000000000000000000000000000000000000..ea4fe06704495dea1058863b034d45dd8aa535de GIT binary patch literal 392 zcmV;30eAk1P)K-tc;#RBpgFmauA^WS z5Rra7o~^qmbsk0g&bdL+K}<}50Nev7z)?)U15@B4)(ow+cK~{ArB?g!-iPSwGIM$u z7l02Td~S`+hUvtyMZLvevEzjWP2y?wl*mqw_#2vQJ#44uC}nVX|7SZhF1m zPieHAlRG$2N?kP?4S?&S=Zv%Q5|vV?aUWJ)lg>p>F0k`&RA{%`ua%Q60q^}w6uSLO ms6u`Rix9$Oxm=F-75D{mxPZe*hlQ2^0000 + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/editor/icons/source/icon_bus_vu_frozen.svg b/editor/icons/source/icon_bus_vu_frozen.svg index 0324076402c..40577a1a77e 100644 --- a/editor/icons/source/icon_bus_vu_frozen.svg +++ b/editor/icons/source/icon_bus_vu_frozen.svg @@ -15,7 +15,7 @@ viewBox="0 0 16 128" id="svg2" version="1.1" - inkscape:version="0.92.1 r" + inkscape:version="0.92+devel unknown" inkscape:export-filename="/home/djrm/Projects/godot/tools/editor/icons/icon_vu_empty.png" inkscape:export-xdpi="90" inkscape:export-ydpi="90" @@ -56,8 +56,8 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="5.6568543" - inkscape:cx="9.4951314" - inkscape:cy="71.853257" + inkscape:cx="14.809902" + inkscape:cy="65.349668" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" @@ -69,8 +69,8 @@ inkscape:snap-bbox-midpoints="true" inkscape:snap-object-midpoints="true" inkscape:snap-center="true" - inkscape:window-width="1600" - inkscape:window-height="836" + inkscape:window-width="1920" + inkscape:window-height="1016" inkscape:window-x="0" inkscape:window-y="27" inkscape:window-maximized="1" @@ -78,7 +78,8 @@ inkscape:snap-intersection-paths="false" inkscape:object-nodes="false" inkscape:snap-smooth-nodes="false" - inkscape:snap-midpoints="false"> + inkscape:snap-midpoints="false" + inkscape:document-rotation="0"> image/svg+xml - + @@ -102,7 +103,7 @@ id="layer1" transform="translate(0,-924.3622)"> diff --git a/editor/icons/source/icon_g_d_native_script.svg b/editor/icons/source/icon_native_script.svg similarity index 100% rename from editor/icons/source/icon_g_d_native_script.svg rename to editor/icons/source/icon_native_script.svg diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 6238cad14d9..019ed47e814 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -1534,14 +1534,14 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) { VBoxContainer *vbc = memnew(VBoxContainer); input_base->add_child(vbc); - vbc->set_anchor_and_margin(MARGIN_TOP, ANCHOR_BEGIN, 5); - vbc->set_anchor_and_margin(MARGIN_BOTTOM, ANCHOR_END, 5); - vbc->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 5); - vbc->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 5); + vbc->set_anchor_and_margin(MARGIN_TOP, ANCHOR_BEGIN, 0); + vbc->set_anchor_and_margin(MARGIN_BOTTOM, ANCHOR_END, 0); + vbc->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 0); + vbc->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 0); l = memnew(Label); vbc->add_child(l); - l->set_position(Point2(6, 5)); + l->set_position(Point2(6, 5) * EDSCALE); l->set_text(TTR("Action:")); hbc = memnew(HBoxContainer); @@ -1632,6 +1632,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) { //translations TabContainer *translations = memnew(TabContainer); + translations->add_style_override("panel", memnew(StyleBoxEmpty)); translations->set_tab_align(TabContainer::ALIGN_LEFT); translations->set_name(TTR("Localization")); tab_container->add_child(translations); @@ -1648,7 +1649,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) { Button *addtr = memnew(Button(TTR("Add.."))); addtr->connect("pressed", this, "_translation_file_open"); thb->add_child(addtr); - MarginContainer *tmc = memnew(MarginContainer); + VBoxContainer *tmc = memnew(VBoxContainer); tvb->add_child(tmc); tmc->set_v_size_flags(SIZE_EXPAND_FILL); translation_list = memnew(Tree); @@ -1672,7 +1673,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) { Button *addtr = memnew(Button(TTR("Add.."))); addtr->connect("pressed", this, "_translation_res_file_open"); thb->add_child(addtr); - MarginContainer *tmc = memnew(MarginContainer); + VBoxContainer *tmc = memnew(VBoxContainer); tvb->add_child(tmc); tmc->set_v_size_flags(SIZE_EXPAND_FILL); translation_remap = memnew(Tree); @@ -1694,7 +1695,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) { addtr->connect("pressed", this, "_translation_res_option_file_open"); translation_res_option_add_button = addtr; thb->add_child(addtr); - tmc = memnew(MarginContainer); + tmc = memnew(VBoxContainer); tvb->add_child(tmc); tmc->set_v_size_flags(SIZE_EXPAND_FILL); translation_remap_options = memnew(Tree); diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index a3a10c6c5a7..0777b6950e5 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -45,7 +45,6 @@ #include "pair.h" #include "print_string.h" #include "project_settings.h" -#include "project_settings.h" #include "property_selector.h" #include "scene/gui/label.h" #include "scene/main/viewport.h" @@ -321,7 +320,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant:: CheckBox *c = checks20[0]; c->set_text("True"); - checks20gc->set_position(Vector2(4, 4)); + checks20gc->set_position(Vector2(4, 4) * EDSCALE); c->set_pressed(v); c->show(); @@ -434,14 +433,14 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant:: } else if (hint == PROPERTY_HINT_EXP_EASING) { - easing_draw->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 5); - easing_draw->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 5); - easing_draw->set_anchor_and_margin(MARGIN_TOP, ANCHOR_BEGIN, 5); - easing_draw->set_anchor_and_margin(MARGIN_BOTTOM, ANCHOR_END, 30); - type_button->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 3); - type_button->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 3); - type_button->set_anchor_and_margin(MARGIN_TOP, ANCHOR_END, 25); - type_button->set_anchor_and_margin(MARGIN_BOTTOM, ANCHOR_END, 7); + easing_draw->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 5 * EDSCALE); + easing_draw->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 5 * EDSCALE); + easing_draw->set_anchor_and_margin(MARGIN_TOP, ANCHOR_BEGIN, 5 * EDSCALE); + easing_draw->set_anchor_and_margin(MARGIN_BOTTOM, ANCHOR_END, 30 * EDSCALE); + type_button->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 3 * EDSCALE); + type_button->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 3 * EDSCALE); + type_button->set_anchor_and_margin(MARGIN_TOP, ANCHOR_END, 25 * EDSCALE); + type_button->set_anchor_and_margin(MARGIN_BOTTOM, ANCHOR_END, 7 * EDSCALE); type_button->set_text(TTR("Preset..")); type_button->get_popup()->clear(); type_button->get_popup()->add_item(TTR("Linear"), EASING_LINEAR); @@ -524,7 +523,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant:: action_buttons[0]->set_anchor(MARGIN_TOP, ANCHOR_END); action_buttons[0]->set_anchor(MARGIN_RIGHT, ANCHOR_END); action_buttons[0]->set_anchor(MARGIN_BOTTOM, ANCHOR_END); - action_buttons[0]->set_begin(Point2(70, button_margin - 5)); + action_buttons[0]->set_begin(Point2(70 * EDSCALE, button_margin - 5 * EDSCALE)); action_buttons[0]->set_end(Point2(margin, margin)); action_buttons[0]->set_text(TTR("Close")); action_buttons[0]->show(); @@ -872,7 +871,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant:: break; menu->clear(); - menu->set_size(Size2(1, 1)); + menu->set_size(Size2(1, 1) * EDSCALE); if (p_name == "script" && hint_text == "Script" && owner->cast_to()) { menu->add_icon_item(get_icon("Script", "EditorIcons"), TTR("New Script"), OBJ_MENU_NEW_SCRIPT); @@ -921,7 +920,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant:: if (!RES(v).is_null()) { - menu->add_icon_item(get_icon("EditResource", "EditorIcons"), "Edit", OBJ_MENU_EDIT); + menu->add_icon_item(get_icon("Edit", "EditorIcons"), "Edit", OBJ_MENU_EDIT); menu->add_icon_item(get_icon("Del", "EditorIcons"), "Clear", OBJ_MENU_CLEAR); menu->add_icon_item(get_icon("Duplicate", "EditorIcons"), "Make Unique", OBJ_MENU_MAKE_UNIQUE); RES r = v; diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index 390d13e64e1..94ef712c251 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -185,19 +185,19 @@ bool SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) { if (part_of_subscene) { //item->set_selectable(0,marked_selectable); - item->set_custom_color(0, Color(0.8, 0.4, 0.20)); + item->set_custom_color(0, get_color("error_color", "Editor").linear_interpolate(get_color("warning_color", "Editor"), 0.4)); } else if (marked.has(p_node)) { item->set_selectable(0, marked_selectable); - item->set_custom_color(0, Color(0.8, 0.1, 0.10)); + item->set_custom_color(0, get_color("error_color", "Editor")); } else if (!marked_selectable && !marked_children_selectable) { Node *node = p_node; while (node) { if (marked.has(node)) { item->set_selectable(0, false); - item->set_custom_color(0, Color(0.8, 0.1, 0.10)); + item->set_custom_color(0, get_color("error_color", "Editor")); break; } node = node->get_parent(); diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index f4ed430d3dd..b8c531bbce4 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -637,7 +637,6 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da } else if (p_msg == "profile_sig") { //cache a signature - print_line("SIG: " + String(Variant(p_data))); profiler_signature[p_data[1]] = p_data[0]; } else if (p_msg == "profile_frame" || p_msg == "profile_total") { @@ -796,8 +795,9 @@ void ScriptEditorDebugger::_performance_draw() { r.position += graph_sb->get_offset(); r.size -= graph_sb->get_minimum_size(); int pi = which[i]; - Color c = Color(0.7, 0.9, 0.5); + Color c = get_color("success_color", "Editor"); c.set_hsv(Math::fmod(c.get_h() + pi * 0.7654, 1), c.get_s(), c.get_v()); + //c = c.linear_interpolate(get_color("base_color", "Editor"), 0.9); c.a = 0.8; perf_draw->draw_string(graph_font, r.position + Point2(0, graph_font->get_ascent()), perf_items[pi]->get_text(0), c, r.size.x); @@ -848,6 +848,8 @@ void ScriptEditorDebugger::_notification(int p_what) { error_stack->connect("item_selected", this, "_error_stack_selected"); vmem_refresh->set_icon(get_icon("Reload", "EditorIcons")); + reason->add_color_override("font_color", get_color("error_color", "Editor")); + } break; case NOTIFICATION_PROCESS: { @@ -1615,13 +1617,10 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor) { HBoxContainer *hbc = memnew(HBoxContainer); vbc->add_child(hbc); - reason = memnew(LineEdit); + reason = memnew(Label); reason->set_text(""); - reason->set_editable(false); hbc->add_child(reason); - reason->add_color_override("font_color", Color(1, 0.4, 0.0, 0.8)); reason->set_h_size_flags(SIZE_EXPAND_FILL); - //reason->set_clip_text(true); hbc->add_child(memnew(VSeparator)); @@ -1647,8 +1646,6 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor) { docontinue->set_tooltip(TTR("Continue")); docontinue->connect("pressed", this, "debug_continue"); - //hbc->add_child( memnew( VSeparator) ); - back = memnew(Button); hbc->add_child(back); back->set_tooltip(TTR("Inspect Previous Instance")); @@ -1690,10 +1687,6 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor) { breaked = false; tabs->add_child(dbg); - //tabs->move_child(vbc,0); - - hbc = memnew(HBoxContainer); - vbc->add_child(hbc); } { //errors @@ -1821,7 +1814,7 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor) { vmem_vb->add_child(vmem_hb); vmem_refresh->connect("pressed", this, "_video_mem_request"); - MarginContainer *vmmc = memnew(MarginContainer); + VBoxContainer *vmmc = memnew(VBoxContainer); vmem_tree = memnew(Tree); vmem_tree->set_v_size_flags(SIZE_EXPAND_FILL); vmem_tree->set_h_size_flags(SIZE_EXPAND_FILL); diff --git a/editor/script_editor_debugger.h b/editor/script_editor_debugger.h index 907c267d492..d255d73167d 100644 --- a/editor/script_editor_debugger.h +++ b/editor/script_editor_debugger.h @@ -89,7 +89,7 @@ class ScriptEditorDebugger : public Control { TabContainer *tabs; - LineEdit *reason; + Label *reason; ScriptEditorDebuggerVariables *variables; Button *step;