From 55e7b35290f51cad42443e9fe6eebd769b6d2e56 Mon Sep 17 00:00:00 2001 From: WildCard_25 Date: Sun, 24 Mar 2019 16:55:08 +1100 Subject: [PATCH] Add status message while sending out missions. Requires localisation to be added. --- MissionControl.lua | 4 ++++ ShipControl.lua | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/MissionControl.lua b/MissionControl.lua index 994d7b0..e265e22 100644 --- a/MissionControl.lua +++ b/MissionControl.lua @@ -268,6 +268,8 @@ function module:OnClick_Run(this,button) do local elapsed=0 local co=coroutine.wrap(self.RunMission) + GMC.list.widget:SetFormattedTitle(L["Sending..."]) + GMC.list.widget:SetTitleColor(C.Yellow()) self:Unhook(GMC.runButton,'OnUpdate') self:RawHookScript(GMC.runButton,'OnUpdate',function(this,ts) elapsed=elapsed+ts @@ -276,6 +278,8 @@ function module:OnClick_Run(this,button) local rc=co(self) if (not rc) then self:Unhook(GMC.runButton,'OnUpdate') + GMC.list.widget:SetTitle(READY) + GMC.list.widget:SetTitleColor(C.Green()) --GMC.logoutButton:Enable() if not ns.quick and addon:GetBoolean("AUTOLOGOUT") then addon:LogoutPopout(5) diff --git a/ShipControl.lua b/ShipControl.lua index 3c168e9..9a0d5f4 100644 --- a/ShipControl.lua +++ b/ShipControl.lua @@ -321,6 +321,8 @@ function module:OnClick_Run(this,button) do local elapsed=0 local co=coroutine.wrap(self.RunMission) + GMC.list.widget:SetFormattedTitle(L["Sending..."]) + GMC.list.widget:SetTitleColor(C.Yellow()) self:Unhook(GMC.runButton,'OnUpdate') self:RawHookScript(GMC.runButton,'OnUpdate',function(this,ts) elapsed=elapsed+ts @@ -329,6 +331,8 @@ function module:OnClick_Run(this,button) local rc=co(self) if (not rc) then self:Unhook(GMC.runButton,'OnUpdate') + GMC.list.widget:SetTitle(READY) + GMC.list.widget:SetTitleColor(C.Green()) --GMC.logoutButton:Enable() if not ns.quick and addon:GetBoolean("SAUTOLOGOUT") then addon:LogoutPopup(5) -- 1.7.9.5