Add close button to mission dialog

This commit is contained in:
Cong 2017-05-16 21:59:20 +10:00
parent 1ade5e6c38
commit c6dc19d842
2 changed files with 11 additions and 0 deletions

View File

@ -8,5 +8,15 @@
"y" : 635, "y" : 635,
"w" : 280, "w" : 280,
"h": 34 "h": 34
},
{
"name" : "close",
"group" : "starSystem",
"type" : "WT_BUTTON",
"text" : "X",
"x" : 1060,
"y" : 98,
"w" : 34,
"h": 34
} }
] ]

View File

@ -129,6 +129,7 @@ void initGalacticMap(void)
initBackground(); initBackground();
getWidget("close", "starSystem")->action = resume;
startMissionButton = getWidget("startMission", "starSystem"); startMissionButton = getWidget("startMission", "starSystem");
startMissionButton->action = startMission; startMissionButton->action = startMission;