FlightControl-Master / MOOSE

Mission Object Oriented Scripting Environment (MOOSE) for lua mission scripting design in DCS World
http://flightcontrol-master.github.io/MOOSE/
GNU General Public License v3.0
290 stars 94 forks source link

MESSAGE:ToCoalition does not show category string #2059

Closed ojemineh closed 9 months ago

ojemineh commented 9 months ago

In all message-functions (MESSAGE:ToClient, MESSAGE:ToGroup, MESSAGE:ToUnit, MESSAGE:ToCountry, MESSAGE:ToAll) a given category is taken into account - not in MESSAGE:ToCoalition.

for example:

in MESSAGE:ToClient [Line 210] in "Core/Message.lua" the string is build like this

trigger.action.outTextForUnit( Unit:GetID(), self.MessageCategory .. self.MessageText:gsub("\n$",""):gsub("\n$",""), self.MessageDuration , self.ClearScreen)

while in MESSAGE:ToCoalition [Line 371] the trigger action looks like this

trigger.action.outTextForCoalition( CoalitionSide, self.MessageText:gsub( "\n$", "" ):gsub( "\n$", "" ), self.MessageDuration, self.ClearScreen )

so :ToCoalition will never show a given category.

bug or feature?

Applevangelist commented 9 months ago

More of a bug

Applevangelist commented 9 months ago

fixed