#SCENERY; SET_SCENERY

* enhancements
This commit is contained in:
Applevangelist
2022-10-19 12:26:26 +02:00
parent 9cd2346cd5
commit 6d92bff3e9
5 changed files with 180 additions and 29 deletions

View File

@@ -918,6 +918,7 @@ do
-- @field #boolean buddylasing
-- @field Ops.PlayerRecce#PLAYERRECCE PlayerRecce
-- @field #number Coalition
-- @field Core.Menu#MENU_MISSION MenuParent
-- @extends Core.Fsm#FSM
---
@@ -1229,6 +1230,7 @@ PLAYERTASKCONTROLLER = {
buddylasing = false,
PlayerRecce = nil,
Coalition = nil,
MenuParent = nil,
}
---
@@ -1395,7 +1397,7 @@ PLAYERTASKCONTROLLER.Messages = {
--- PLAYERTASK class version.
-- @field #string version
PLAYERTASKCONTROLLER.version="0.1.43"
PLAYERTASKCONTROLLER.version="0.1.44"
--- Create and run a new TASKCONTROLLER instance.
-- @param #PLAYERTASKCONTROLLER self
@@ -3052,7 +3054,7 @@ function PLAYERTASKCONTROLLER:_BuildMenus(Client,enforced,fromsuccess)
end
else
-- 1) new player#
topmenu = MENU_GROUP_DELAYED:New(group,menuname,nil)
topmenu = MENU_GROUP_DELAYED:New(group,menuname,self.MenuParent)
self.PlayerMenu[playername] = topmenu
self.PlayerMenu[playername]:SetTag(timer.getAbsTime())
end
@@ -3237,6 +3239,16 @@ function PLAYERTASKCONTROLLER:SetMenuName(Name)
return self
end
--- [User] Set the top menu to be a sub-menu of another MENU entry.
-- @param #PLAYERTASKCONTROLLER self
-- @param Core.Menu#MENU_MISSION Menu
-- @return #PLAYERTASKCONTROLLER self
function PLAYERTASKCONTROLLER:SetParentName(Menu)
self:T(self.lid.."SetParentName")
self.MenuParent = Menu
return self
end
--- [User] Set up INTEL detection
-- @param #PLAYERTASKCONTROLLER self
-- @param #string RecceName This name will be used to build a detection group set. All groups with this string somewhere in their group name will be added as Recce.