diff --git a/isometric-park-fna/UI/ContractWindow.cs b/isometric-park-fna/UI/ContractWindow.cs --- a/isometric-park-fna/UI/ContractWindow.cs +++ b/isometric-park-fna/UI/ContractWindow.cs @@ -61,6 +61,31 @@ ImGui.Separator(); + switch (status) + { + case ContractStatus.Proposed: + ImGui.TextColored(new Num.Vector4(0.25f, 0.25f, 0.95f, 1f), status.ToString()); + break; + case ContractStatus.Active: + case ContractStatus.Accepted: + ImGui.TextColored(new Num.Vector4(0.25f, 0.95f, 0.25f, 1f), status.ToString()); + break; + case ContractStatus.Rejected: + case ContractStatus.Broken: + case ContractStatus.Expired: + // if (ContractsWindow.show_all) + // { + + // ImGui.TextColored(new Num.Vector4(0.95f, 0.25f, 0.25f, 1f), contract.status.ToString()); + // } + ImGui.TextColored(new Num.Vector4(0.95f, 0.25f, 0.25f, 1f), status.ToString()); + break; + case ContractStatus.Completed: + ImGui.TextColored(new Num.Vector4(0.25f, 0.25f, 0.25f, 1f), status.ToString()); + break; + default: + break; + } ImGui.Text(string.Format("Amount: ${0}/mo.", amount)); if (delta_trees != null) @@ -118,7 +143,6 @@ } - ImGui.Separator(); if (ImGui.Button("Okay")) { newShow = false;