Quantcast

Add status message while sending out missions. Requires localisation to be added.

WildCard_25 [03-24-19 - 05:55]
Add status message while sending out missions. Requires localisation to be added.
Filename
MissionControl.lua
ShipControl.lua
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)