You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Add new editor and default theme (WIP)
This commit is contained in:
committed by
Rémi Verschelde
parent
5993a5fac9
commit
f045efe007
@@ -3123,6 +3123,7 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
||||
editor_selection->connect("selection_changed", this, "update");
|
||||
|
||||
hb = memnew(HBoxContainer);
|
||||
hb->add_style_override("bg", editor->get_gui_base()->get_stylebox("panel", "PanelContainer"));
|
||||
add_child(hb);
|
||||
hb->set_area_as_parent_rect();
|
||||
|
||||
@@ -3299,6 +3300,8 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
||||
animation_hb->hide();
|
||||
|
||||
key_loc_button = memnew(Button("loc"));
|
||||
key_loc_button = memnew(Button("loc"));
|
||||
key_loc_button->set_flat(true);
|
||||
key_loc_button->set_toggle_mode(true);
|
||||
key_loc_button->set_pressed(true);
|
||||
key_loc_button->set_focus_mode(FOCUS_NONE);
|
||||
@@ -3307,6 +3310,7 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
||||
key_loc_button->connect("pressed", this, "_popup_callback", varray(ANIM_INSERT_POS));
|
||||
animation_hb->add_child(key_loc_button);
|
||||
key_rot_button = memnew(Button("rot"));
|
||||
key_rot_button->set_flat(true);
|
||||
key_rot_button->set_toggle_mode(true);
|
||||
key_rot_button->set_pressed(true);
|
||||
key_rot_button->set_focus_mode(FOCUS_NONE);
|
||||
@@ -3315,13 +3319,14 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
||||
key_rot_button->connect("pressed", this, "_popup_callback", varray(ANIM_INSERT_ROT));
|
||||
animation_hb->add_child(key_rot_button);
|
||||
key_scale_button = memnew(Button("scl"));
|
||||
key_scale_button->set_flat(true);
|
||||
key_scale_button->set_toggle_mode(true);
|
||||
key_scale_button->set_focus_mode(FOCUS_NONE);
|
||||
key_scale_button->add_color_override("font_color", Color(1, 0.6, 0.6));
|
||||
key_scale_button->add_color_override("font_color_pressed", Color(0.6, 1, 0.6));
|
||||
key_scale_button->connect("pressed", this, "_popup_callback", varray(ANIM_INSERT_SCALE));
|
||||
animation_hb->add_child(key_scale_button);
|
||||
key_insert_button = memnew(Button);
|
||||
key_insert_button = memnew(ToolButton);
|
||||
key_insert_button->set_focus_mode(FOCUS_NONE);
|
||||
key_insert_button->connect("pressed", this, "_popup_callback", varray(ANIM_INSERT_KEY));
|
||||
key_insert_button->set_tooltip(TTR("Insert Keys"));
|
||||
|
||||
Reference in New Issue
Block a user