mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Modified editor strings to be translatable in the future
This commit is contained in:
parent
c7e8def446
commit
567cb691ec
96 changed files with 2135 additions and 2103 deletions
|
|
@ -92,7 +92,7 @@ void CollisionPolygonEditor::_menu_option(int p_option) {
|
|||
|
||||
void CollisionPolygonEditor::_wip_close() {
|
||||
|
||||
undo_redo->create_action("Create Poly3D");
|
||||
undo_redo->create_action(TTR("Create Poly3D"));
|
||||
undo_redo->add_undo_method(node,"set_polygon",node->get_polygon());
|
||||
undo_redo->add_do_method(node,"set_polygon",wip);
|
||||
undo_redo->add_do_method(this,"_polygon_draw");
|
||||
|
|
@ -200,7 +200,7 @@ bool CollisionPolygonEditor::forward_spatial_input_event(Camera* p_camera,const
|
|||
|
||||
if (poly.size() < 3) {
|
||||
|
||||
undo_redo->create_action("Edit Poly");
|
||||
undo_redo->create_action(TTR("Edit Poly"));
|
||||
undo_redo->add_undo_method(node,"set_polygon",poly);
|
||||
poly.push_back(cpoint);
|
||||
undo_redo->add_do_method(node,"set_polygon",poly);
|
||||
|
|
@ -282,7 +282,7 @@ bool CollisionPolygonEditor::forward_spatial_input_event(Camera* p_camera,const
|
|||
|
||||
ERR_FAIL_INDEX_V(edited_point,poly.size(),false);
|
||||
poly[edited_point]=edited_point_pos;
|
||||
undo_redo->create_action("Edit Poly");
|
||||
undo_redo->create_action(TTR("Edit Poly"));
|
||||
undo_redo->add_do_method(node,"set_polygon",poly);
|
||||
undo_redo->add_undo_method(node,"set_polygon",pre_move_edit);
|
||||
undo_redo->add_do_method(this,"_polygon_draw");
|
||||
|
|
@ -316,7 +316,7 @@ bool CollisionPolygonEditor::forward_spatial_input_event(Camera* p_camera,const
|
|||
if (closest_idx>=0) {
|
||||
|
||||
|
||||
undo_redo->create_action("Edit Poly (Remove Point)");
|
||||
undo_redo->create_action(TTR("Edit Poly (Remove Point)"));
|
||||
undo_redo->add_undo_method(node,"set_polygon",poly);
|
||||
poly.remove(closest_idx);
|
||||
undo_redo->add_do_method(node,"set_polygon",poly);
|
||||
|
|
@ -559,8 +559,8 @@ CollisionPolygonEditor::CollisionPolygonEditor(EditorNode *p_editor) {
|
|||
options = memnew( MenuButton );
|
||||
add_child(options);
|
||||
options->set_area_as_parent_rect();
|
||||
options->set_text("Polygon");
|
||||
//options->get_popup()->add_item("Parse BBCODE",PARSE_BBCODE);
|
||||
options->set_text(TTR("Polygon"));
|
||||
//options->get_popup()->add_item(TTR("Parse BBCODE"),PARSE_BBCODE);
|
||||
options->get_popup()->connect("item_pressed", this,"_menu_option");
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue