|
@@ -633,35 +633,35 @@ Path2DEditor::Path2DEditor(EditorNode *p_editor) {
|
|
sep = memnew( VSeparator);
|
|
sep = memnew( VSeparator);
|
|
base_hb->add_child(sep);
|
|
base_hb->add_child(sep);
|
|
curve_edit = memnew( ToolButton );
|
|
curve_edit = memnew( ToolButton );
|
|
- curve_edit->set_icon(CanvasItemEditor::get_singleton()->get_icon("CurveEdit","EditorIcons"));
|
|
|
|
|
|
+ curve_edit->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveEdit","EditorIcons"));
|
|
curve_edit->set_toggle_mode(true);
|
|
curve_edit->set_toggle_mode(true);
|
|
curve_edit->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_edit->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_edit->set_tooltip(TTR("Select Points")+"\n"+TTR("Shift+Drag: Select Control Points")+"\n"+keycode_get_string(KEY_MASK_CMD)+TTR("Click: Add Point")+"\n"+TTR("Right Click: Delete Point"));
|
|
curve_edit->set_tooltip(TTR("Select Points")+"\n"+TTR("Shift+Drag: Select Control Points")+"\n"+keycode_get_string(KEY_MASK_CMD)+TTR("Click: Add Point")+"\n"+TTR("Right Click: Delete Point"));
|
|
curve_edit->connect("pressed",this,"_mode_selected",varray(MODE_EDIT));
|
|
curve_edit->connect("pressed",this,"_mode_selected",varray(MODE_EDIT));
|
|
base_hb->add_child(curve_edit);
|
|
base_hb->add_child(curve_edit);
|
|
curve_edit_curve = memnew( ToolButton );
|
|
curve_edit_curve = memnew( ToolButton );
|
|
- curve_edit_curve->set_icon(CanvasItemEditor::get_singleton()->get_icon("CurveCurve","EditorIcons"));
|
|
|
|
|
|
+ curve_edit_curve->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveCurve","EditorIcons"));
|
|
curve_edit_curve->set_toggle_mode(true);
|
|
curve_edit_curve->set_toggle_mode(true);
|
|
curve_edit_curve->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_edit_curve->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_edit_curve->set_tooltip(TTR("Select Control Points (Shift+Drag)"));
|
|
curve_edit_curve->set_tooltip(TTR("Select Control Points (Shift+Drag)"));
|
|
curve_edit_curve->connect("pressed",this,"_mode_selected",varray(MODE_EDIT_CURVE));
|
|
curve_edit_curve->connect("pressed",this,"_mode_selected",varray(MODE_EDIT_CURVE));
|
|
base_hb->add_child(curve_edit_curve);
|
|
base_hb->add_child(curve_edit_curve);
|
|
curve_create = memnew( ToolButton );
|
|
curve_create = memnew( ToolButton );
|
|
- curve_create->set_icon(CanvasItemEditor::get_singleton()->get_icon("CurveCreate","EditorIcons"));
|
|
|
|
|
|
+ curve_create->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveCreate","EditorIcons"));
|
|
curve_create->set_toggle_mode(true);
|
|
curve_create->set_toggle_mode(true);
|
|
curve_create->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_create->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_create->set_tooltip(TTR("Add Point (in empty space)")+"\n"+TTR("Split Segment (in curve)"));
|
|
curve_create->set_tooltip(TTR("Add Point (in empty space)")+"\n"+TTR("Split Segment (in curve)"));
|
|
curve_create->connect("pressed",this,"_mode_selected",varray(MODE_CREATE));
|
|
curve_create->connect("pressed",this,"_mode_selected",varray(MODE_CREATE));
|
|
base_hb->add_child(curve_create);
|
|
base_hb->add_child(curve_create);
|
|
curve_del = memnew( ToolButton );
|
|
curve_del = memnew( ToolButton );
|
|
- curve_del->set_icon(CanvasItemEditor::get_singleton()->get_icon("CurveDelete","EditorIcons"));
|
|
|
|
|
|
+ curve_del->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveDelete","EditorIcons"));
|
|
curve_del->set_toggle_mode(true);
|
|
curve_del->set_toggle_mode(true);
|
|
curve_del->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_del->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_del->set_tooltip(TTR("Delete Point"));
|
|
curve_del->set_tooltip(TTR("Delete Point"));
|
|
curve_del->connect("pressed",this,"_mode_selected",varray(MODE_DELETE));
|
|
curve_del->connect("pressed",this,"_mode_selected",varray(MODE_DELETE));
|
|
base_hb->add_child(curve_del);
|
|
base_hb->add_child(curve_del);
|
|
curve_close = memnew( ToolButton );
|
|
curve_close = memnew( ToolButton );
|
|
- curve_close->set_icon(CanvasItemEditor::get_singleton()->get_icon("CurveClose","EditorIcons"));
|
|
|
|
|
|
+ curve_close->set_icon(EditorNode::get_singleton()->get_gui_base()->get_icon("CurveClose","EditorIcons"));
|
|
curve_close->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_close->set_focus_mode(Control::FOCUS_NONE);
|
|
curve_close->set_tooltip(TTR("Close Curve"));
|
|
curve_close->set_tooltip(TTR("Close Curve"));
|
|
curve_close->connect("pressed",this,"_mode_selected",varray(ACTION_CLOSE));
|
|
curve_close->connect("pressed",this,"_mode_selected",varray(ACTION_CLOSE));
|