Skip to content

Add UNDO button to Future Missions #896

@peyre

Description

@peyre

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.

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

No one assigned

    Labels

    EnhancementA request for a game enhancement.Low PriorityNot crucial to take care of right away

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions