-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Labels
EnhancementA request for a game enhancement.A request for a game enhancement.Low PriorityNot crucial to take care of right awayNot crucial to take care of right away
Description
I think it would be handy if, when you purchase a launch pad, Future Missions would put up an UNDO button (until you click on the pad to schedule a mission). Several times I've clicked in the wrong spot and bought a pad accidentally. I've been working on that this morning, but for some reason it keeps erroring out on compiling once I add code to actually perform the undo.
for (i = 1; i < 3; i++) {
if (x >= 110 && y >= 51 + i * 51 && x <= 141 && y <= 62 + i * 51 && PadPurchase[i] > 0 && mousebuttons > 0) { // Undo pad purchase
InBox(110, 51 + i * 51, 141, 62 + i * 51);
PadPurchase[i] = 0;
Data->P[plr].Cash += 20;
Data->P[plr].Spend[0][3] -= 20;
Data->P[plr].LaunchFacility[i] = 0;
draw_string(111, 49 + i * 51, "PURCHASE LAUNCH FACILITY");
draw_string(111, 57 + i * 51, "FOR: 20 MB'S ");
if (Data->P[plr].Cash > 19) {
display::graphics.setForegroundColor(11);
}
draw_string(0, 0, "(OF ");
draw_number(0, 0, Data->P[plr].Cash);
draw_string(0, 0, ")");
display::graphics.setForegroundColor(9);
draw_string(113, 75 + i * 51, "PURCHASE FACILITY");*/
}
}
Metadata
Metadata
Assignees
Labels
EnhancementA request for a game enhancement.A request for a game enhancement.Low PriorityNot crucial to take care of right awayNot crucial to take care of right away