Disable buildingd layouts graph
This commit is contained in:
@@ -345,8 +345,8 @@ void grow_job_queue::create_region_list(
|
|||||||
while (fe) {
|
while (fe) {
|
||||||
Vector<Vector2i> position_candidates;
|
Vector<Vector2i> position_candidates;
|
||||||
if (positions.empty()) {
|
if (positions.empty()) {
|
||||||
int target_distance =
|
float dsq = fe->get().second;
|
||||||
(int)(Math::sqrt(fe->get().second) * 0.7f) + 1;
|
int target_distance = (int)(Math::sqrt(dsq) * 0.7f) + 1;
|
||||||
positions.push_back(current_position);
|
positions.push_back(current_position);
|
||||||
distances.push_back(target_distance);
|
distances.push_back(target_distance);
|
||||||
regions.push_back(fe->get().first);
|
regions.push_back(fe->get().first);
|
||||||
|
|||||||
@@ -320,12 +320,14 @@ void MainTabs::_notification(int which)
|
|||||||
SceneTree::get_singleton()->get_current_scene());
|
SceneTree::get_singleton()->get_current_scene());
|
||||||
} else
|
} else
|
||||||
building_layouts_editor = nullptr;
|
building_layouts_editor = nullptr;
|
||||||
|
#if 0
|
||||||
BuildingLayoutGraphUI *pv = nullptr;
|
BuildingLayoutGraphUI *pv = nullptr;
|
||||||
if (!Engine::get_singleton()->is_editor_hint()) {
|
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||||
pv = memnew(BuildingLayoutGraphUI(
|
pv = memnew(BuildingLayoutGraphUI(
|
||||||
this, building_layouts_editor));
|
this, building_layouts_editor));
|
||||||
handlers.push_back(pv);
|
handlers.push_back(pv);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
for (i = 0; i < (int)(sizeof(items) / sizeof(items[0])); i++) {
|
for (i = 0; i < (int)(sizeof(items) / sizeof(items[0])); i++) {
|
||||||
VBoxContainer *tab = memnew(VBoxContainer);
|
VBoxContainer *tab = memnew(VBoxContainer);
|
||||||
tab->set_name(items[i].title);
|
tab->set_name(items[i].title);
|
||||||
@@ -616,11 +618,13 @@ void MainTabs::_notification(int which)
|
|||||||
args_data.size());
|
args_data.size());
|
||||||
} break;
|
} break;
|
||||||
case 6: {
|
case 6: {
|
||||||
|
#if 0
|
||||||
if (!Engine::get_singleton()->is_editor_hint()) {
|
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||||
assert(pv);
|
assert(pv);
|
||||||
pv->setup_layout_tab(tab,
|
pv->setup_layout_tab(tab,
|
||||||
items[i].header);
|
items[i].header);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user