This commit is contained in:
Applevangelist
2026-03-01 14:00:27 +01:00
parent f1386dd229
commit 085330c930
4 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -3292,7 +3292,7 @@ do -- COORDINATE
local DirectionVec3 = FromCoordinate:GetDirectionVec3( self )
local AngleRadians = self:GetAngleRadians( DirectionVec3 )
local Distance = self:Get2DDistance( FromCoordinate )
return "BR, " .. self:GetBRText( AngleRadians, Distance, Settings, nil, MagVar, Precision )
return "BR " .. self:GetBRText( AngleRadians, Distance, Settings, nil, MagVar, Precision )
end
--- Return a Bearing string from a COORDINATE to the (self) COORDINATE.
+13 -2
View File
@@ -279,6 +279,8 @@
-- REQUESTSAR = "%s requests SAR at %s, beacon at %.2f KHz!",
-- REQUESTSARBEACON = "%s requests SAR at %s, beacon at %.2f KHz!",
-- KHZ = "kilo hertz",
-- FILLAT = "at",
-- FILLFOR = "for",
-- },
--
-- e.g. for Spanish:
@@ -377,6 +379,8 @@ CSAR.Messages = {
REQUESTSAR = "%s requests SAR at %s, beacon at %.2f KHz!",
REQUESTSARBEACON = "%s requests SAR at %s, beacon at %.2f KHz!",
KHZ = "kilo hertz",
FILLAT = "at",
FILLFOR = "for",
},
DE = {
HEARYOULONG = "%s: %s. Ich höre Sie! Endlich, das ist Musik in meinen Ohren!\nIch zünde eine Rauchgranate, wenn Sie %s entfernt sind.\nLanden Sie oder hovern Sie beim Rauch.",
@@ -414,6 +418,8 @@ CSAR.Messages = {
REQUESTSAR = "%s fordert SAR bei %s an, ADF %.2f KHz!",
REQUESTSARBEACON = "%s fordert SAR bei %s an, ADF %.2f KHz!",
KHZ = "Kilohertz",
FILLAT = "bei",
FILLFOR = "für",
},
FR = {
HEARYOULONG = "%s: %s. Je vous entends! Enfin, c'est de la musique dans mes oreilles!\nJe lancerai une fumée quand vous serez à %s.\nAtterrissez ou survolez la fumée.",
@@ -451,6 +457,8 @@ CSAR.Messages = {
REQUESTSAR = "%s demande un SAR à %s, balise à %.2f KHz!",
REQUESTSARBEACON = "%s demande un SAR à %s, balise à %.2f KHz!",
KHZ = "kilohertz",
FILLAT = "au",
FILLFOR = "pour",
},
}
@@ -2130,6 +2138,8 @@ function CSAR:_GetPositionOfWounded(_woundedGroup,_Unit)
-- attention this is the distance from the ASKING unit to target, not from RECCE to target!
local startcoordinate = _Unit:GetCoordinate()
_coordinatesText = _coordinate:ToStringBR(startcoordinate,settings)
local fillfor = self.gettext:GetEntry("FILLFOR",self.locale)
_coordinatesText = string.gsub(_coordinatesText,"for","")
end
end
end
@@ -2174,10 +2184,11 @@ function CSAR:_DisplayActiveSAR(_unitName)
else
distancetext = string.format("%.1fkm", _distance/1000.0)
end
local fillat = self.gettext:GetEntry("FILLAT",self.locale)
if _value.frequency == 0 or self.CreateRadioBeacons == false then--shagrat insert CASEVAC without Frequency
table.insert(_csarList, { dist = _distance, msg = string.format("%s at %s - %s ", _value.desc, _coordinatesText, distancetext) })
table.insert(_csarList, { dist = _distance, msg = string.format("%s %s %s - %s ", _value.desc, fillat, _coordinatesText, distancetext) })
else
table.insert(_csarList, { dist = _distance, msg = string.format("%s at %s - %.2f KHz ADF - %s ", _value.desc, _coordinatesText, _value.frequency / 1000, distancetext) })
table.insert(_csarList, { dist = _distance, msg = string.format("%s %s %s - %.2f KHz ADF - %s ", _value.desc, fillat, _coordinatesText, _value.frequency / 1000, distancetext) })
end
end
end
+4 -3
View File
@@ -5744,11 +5744,12 @@ function CTLD:_RefreshLoadCratesMenu(Group,Unit)
while i<=#list do
local left=#list-i+1
local label
if left>=needed then
label=string.format("%d. Load %s",lineIndex,cName)
local loadkey = self.gettext:GetEntry("MENU_LOAD_SINGLE",self.locale)
if left>=needed then
label=string.format("%d. %s %s",lineIndex,loadkey, cName)
i=i+needed
else
label=string.format("%d. Load %s (%d/%d)",lineIndex,cName,left,needed)
label=string.format("%d. %s %s (%d/%d)",lineIndex,loadkey, cName,left,needed)
i=#list+1
end
MENU_GROUP_COMMAND:New(Group,label,Group.MyLoadCratesMenu,self._LoadSingleCrateSet,self,Group,Unit,cName)
@@ -193,6 +193,7 @@ CTLD.Messages = {
MENU_SHOW_LOADABLE_CRATES = "Show loadable crates",
MENU_NO_CRATES_FOUND_RESCAN = "No crates found! Rescan?",
MENU_USE_C130_LOAD = "Use C-130 Load system",
MENU_LOAD_SINGLE = "Load",
-- ============================================================
-- Menu labels - Crates: Drop
-- ============================================================
@@ -442,6 +443,7 @@ CTLD.Messages = {
MENU_SHOW_LOADABLE_CRATES = "Ladbare Kisten anzeigen",
MENU_NO_CRATES_FOUND_RESCAN = "Keine Kisten gefunden! Neu scannen?",
MENU_USE_C130_LOAD = "C-130-Ladesystem verwenden",
MENU_LOAD_SINGLE = "Lade",
-- ============================================================
-- Menübezeichnungen - Kisten: Abwerfen
-- ============================================================
@@ -691,6 +693,7 @@ FR = {
MENU_SHOW_LOADABLE_CRATES = "Afficher caisses chargeables",
MENU_NO_CRATES_FOUND_RESCAN = "Aucune caisse trouvée ! Rescanner ?",
MENU_USE_C130_LOAD = "Utiliser le système de chargement C-130",
MENU_LOAD_SINGLE = "Charger",
-- ============================================================
-- Libellés de menu - Caisses : Larguer
-- ============================================================