From c6dc19d842c964b3495121883dd9c957cf0d085b Mon Sep 17 00:00:00 2001 From: Cong Date: Tue, 16 May 2017 21:59:20 +1000 Subject: [PATCH] Add close button to mission dialog --- data/widgets/starSystem.json | 10 ++++++++++ src/galaxy/galacticMap.c | 1 + 2 files changed, 11 insertions(+) diff --git a/data/widgets/starSystem.json b/data/widgets/starSystem.json index d5632b3..dd7b950 100644 --- a/data/widgets/starSystem.json +++ b/data/widgets/starSystem.json @@ -8,5 +8,15 @@ "y" : 635, "w" : 280, "h": 34 + }, + { + "name" : "close", + "group" : "starSystem", + "type" : "WT_BUTTON", + "text" : "X", + "x" : 1060, + "y" : 98, + "w" : 34, + "h": 34 } ] diff --git a/src/galaxy/galacticMap.c b/src/galaxy/galacticMap.c index 51b9b93..5f5e92f 100644 --- a/src/galaxy/galacticMap.c +++ b/src/galaxy/galacticMap.c @@ -129,6 +129,7 @@ void initGalacticMap(void) initBackground(); + getWidget("close", "starSystem")->action = resume; startMissionButton = getWidget("startMission", "starSystem"); startMissionButton->action = startMission;