feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -80,7 +80,7 @@ bool TileSetEditor::_can_drop_data_fw(const Point2 &p_point, const Variant &p_da
|
|||
if (String(d["type"]) == "files") {
|
||||
Vector<String> files = d["files"];
|
||||
|
||||
if (files.size() == 0) {
|
||||
if (files.is_empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -784,7 +784,7 @@ void TileSetEditor::remove_expanded_editor() {
|
|||
return;
|
||||
}
|
||||
|
||||
Node *original_parent = Object::cast_to<Node>(ObjectDB::get_instance(expanded_editor_parent));
|
||||
Node *original_parent = ObjectDB::get_instance<Node>(expanded_editor_parent);
|
||||
if (original_parent) {
|
||||
expanded_editor->remove_meta("reparented");
|
||||
expanded_editor->reparent(original_parent);
|
||||
|
|
@ -846,6 +846,7 @@ TileSetEditor::TileSetEditor() {
|
|||
source_sort_button->set_flat(false);
|
||||
source_sort_button->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
source_sort_button->set_tooltip_text(TTR("Sort Sources"));
|
||||
source_sort_button->set_accessibility_name(TTRC("Sort Sources"));
|
||||
|
||||
PopupMenu *p = source_sort_button->get_popup();
|
||||
p->connect(SceneStringName(id_pressed), callable_mp(this, &TileSetEditor::_set_source_sort));
|
||||
|
|
@ -896,6 +897,7 @@ TileSetEditor::TileSetEditor() {
|
|||
sources_advanced_menu_button->get_popup()->add_item(TTR("Open Atlas Merging Tool"));
|
||||
sources_advanced_menu_button->get_popup()->add_item(TTR("Manage Tile Proxies"));
|
||||
sources_advanced_menu_button->get_popup()->connect(SceneStringName(id_pressed), callable_mp(this, &TileSetEditor::_sources_advanced_menu_id_pressed));
|
||||
sources_advanced_menu_button->set_accessibility_name(TTRC("Advanced"));
|
||||
sources_bottom_actions->add_child(sources_advanced_menu_button);
|
||||
sources_bottom_actions->add_child(source_sort_button);
|
||||
|
||||
|
|
@ -914,6 +916,8 @@ TileSetEditor::TileSetEditor() {
|
|||
// No source selected.
|
||||
no_source_selected_label = memnew(Label);
|
||||
no_source_selected_label->set_text(TTR("No TileSet source selected. Select or create a TileSet source.\nYou can create a new source by using the Add button on the left or by dropping a tileset texture onto the source list."));
|
||||
no_source_selected_label->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
|
||||
no_source_selected_label->set_text_overrun_behavior(TextServer::OVERRUN_TRIM_ELLIPSIS);
|
||||
no_source_selected_label->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
no_source_selected_label->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
no_source_selected_label->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||
|
|
@ -953,8 +957,9 @@ TileSetEditor::TileSetEditor() {
|
|||
|
||||
patterns_help_label = memnew(Label);
|
||||
patterns_help_label->set_text(TTR("Add new patterns in the TileMap editing mode."));
|
||||
patterns_help_label->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
|
||||
patterns_help_label->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||
patterns_help_label->set_anchors_and_offsets_preset(Control::PRESET_CENTER);
|
||||
patterns_help_label->set_anchors_and_offsets_preset(Control::PRESET_HCENTER_WIDE);
|
||||
patterns_item_list->add_child(patterns_help_label);
|
||||
|
||||
// Expanded editor
|
||||
|
|
@ -978,6 +983,8 @@ void TileSourceInspectorPlugin::_show_id_edit_dialog(Object *p_for_source) {
|
|||
|
||||
Label *label = memnew(Label(TTR("Warning: Modifying a source ID will result in all TileMaps using that source to reference an invalid source instead. This may result in unexpected data loss. Change this ID carefully.")));
|
||||
label->set_autowrap_mode(TextServer::AUTOWRAP_WORD);
|
||||
// Workaround too tall popup window due to text autowrapping. See GH-83546.
|
||||
label->set_custom_minimum_size(Vector2i(400, 0));
|
||||
vbox->add_child(label);
|
||||
|
||||
id_input = memnew(SpinBox);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue