feat(cellular): seed dev wildlife and tune budding playtests
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 4m27s
Foundation / postgres-tools (push) Successful in 30s
Foundation / server-image (push) Successful in 4m16s
Foundation / image (push) Successful in 4m54s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 4m27s
Foundation / postgres-tools (push) Successful in 30s
Foundation / server-image (push) Successful in 4m16s
Foundation / image (push) Successful in 4m54s
This commit is contained in:
@@ -1212,8 +1212,13 @@ void hud_vitals(const PanelView& v, FormBuffers& form, bool compact) {
|
||||
const float max_height =
|
||||
compact ? std::max(px(120), io.DisplaySize.y - px(220)) : io.DisplaySize.y * 0.43F;
|
||||
ImGui::SetNextWindowSizeConstraints({width, 0}, {width, max_height});
|
||||
// Keep table width stable when the constrained card gains its vertical scrollbar.
|
||||
ImGui::SetNextWindowContentSize(
|
||||
{width - 2 * ImGui::GetStyle().WindowPadding.x - ImGui::GetStyle().ScrollbarSize, 0});
|
||||
ImGui::Begin("Vitals", nullptr,
|
||||
hud_flags | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_AlwaysAutoResize);
|
||||
hud_flags | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_AlwaysAutoResize |
|
||||
(form.vitals_minimized ? ImGuiWindowFlags_None
|
||||
: ImGuiWindowFlags_AlwaysVerticalScrollbar));
|
||||
panel_heading("Your cell", form.vitals_minimized);
|
||||
if (form.vitals_minimized) {
|
||||
if (d)
|
||||
@@ -1349,12 +1354,35 @@ void hud_dock(const PanelView& v, FormBuffers& form, PanelActions& a, bool compa
|
||||
ImGui::BeginDisabled(!play || !play->can_act());
|
||||
if (action_button("Engulf", {each, px(44)}, {0.38F, 0.68F, 1.0F, 1}))
|
||||
a.cell_action = CellAction::engulf;
|
||||
ImGui::EndDisabled();
|
||||
ImGui::SameLine();
|
||||
if (action_button("Bud", {each, px(44)}, {0.82F, 0.53F, 0.96F, 1})) {
|
||||
const bool bud_ready = play && play->can_act() && d && bud_affordable(*d);
|
||||
ImGui::BeginDisabled(!bud_ready);
|
||||
if (action_button("Bud", {each, px(44)},
|
||||
bud_ready ? ImVec4{0.82F, 0.53F, 0.96F, 1} : ImVec4{0.5F, 0.5F, 0.5F, 1})) {
|
||||
a.cell_action = CellAction::bud;
|
||||
a.cell_become = form.bud_become && d && d->members == 1;
|
||||
}
|
||||
ImGui::EndDisabled();
|
||||
if (!bud_ready && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled)) {
|
||||
ImGui::BeginTooltip();
|
||||
if (d && bud_known(*d)) {
|
||||
ImGui::TextUnformatted("Resources needed to bud (required / available):");
|
||||
ImGui::Text("Energy: %s / %s", energy_text(d->bud_cost_energy_pj).c_str(),
|
||||
energy_text(d->reserve_energy_pj).c_str());
|
||||
for (std::size_t i = 0; i < d->bud_cost_matter_fg.size(); ++i)
|
||||
ImGui::Text("%s: %s / %s", nutrient_names.at(i + 1),
|
||||
mass_text(d->bud_cost_matter_fg[i]).c_str(),
|
||||
mass_text(d->reserve_matter_fg[i]).c_str());
|
||||
if (!play || !play->can_act())
|
||||
ImGui::TextUnformatted("Waiting for a connection, fresh state or pending action.");
|
||||
if (d->members > 1)
|
||||
ImGui::TextUnformatted("Includes the largest possible litter of internal cells.");
|
||||
} else {
|
||||
ImGui::TextUnformatted("Budding requirements are unavailable for this cell.");
|
||||
}
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
// Rules 13 (v14): continue as the bud, or grow the organism toward Emerge.
|
||||
if (d && d->members != 0 && play && play->life() != 0) {
|
||||
if (d->members == 1) {
|
||||
|
||||
Reference in New Issue
Block a user