M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.View.Menu.MenuViewContext Class Reference

Inherits TaleWorlds.CampaignSystem.GameState.IMenuContextHandler.

Public Member Functions

 MenuViewContext (ScreenBase screen, MenuContext menuContext)
 
void UpdateMenuContext (MenuContext menuContext)
 
void AddLayer (ScreenLayer layer)
 
void RemoveLayer (ScreenLayer layer)
 
FindLayer< T > ()
 
FindLayer< T > (string name)
 
void OnFrameTick (float dt)
 
void OnResume ()
 
void OnHourlyTick ()
 
void OnActivate ()
 
void OnDeactivate ()
 
void OnInitialize ()
 
void OnFinalize ()
 
void StopAllSounds ()
 
void OnMapConversationActivated ()
 
void OnMapConversationDeactivated ()
 
void OnGameStateDeactivate ()
 
void OnGameStateInitialize ()
 
void OnGameStateFinalize ()
 
void CloseCharacterDeveloper ()
 
MenuView AddMenuView< T > (params object[] parameters)
 
GetMenuView< T > ()
 
void RemoveMenuView (MenuView menuView)
 
void CloseTownManagement ()
 
void CloseRecruitVolunteers ()
 
void CloseTournamentLeaderboard ()
 
void CloseTroopSelection ()
 
void OnBackgroundMeshNameSet (string name)
 
void OnOpenTownManagement ()
 
void OnOpenRecruitVolunteers ()
 
void OnOpenTournamentLeaderboard ()
 
void OnOpenTroopSelection (TroopRoster fullRoster, TroopRoster initialSelections, Func< CharacterObject, bool > canChangeStatusOfTroop, Action< TroopRoster > onDone, int maxSelectableTroopCount, int minSelectableTroopCount=1)
 
void OnMenuCreate ()
 
void OnMenuActivate ()
 
void OnHourlyTick ()
 
void OnPanelSoundIDSet (string panelSoundID)
 
void OnAmbientSoundIDSet (string ambientSoundID)
 

Properties

MenuContext MenuContext [get]
 
List< MenuViewMenuViews [get]
 

Constructor & Destructor Documentation

◆ MenuViewContext()

SandBox.View.Menu.MenuViewContext.MenuViewContext ( ScreenBase  screen,
MenuContext  menuContext 
)

Member Function Documentation

◆ UpdateMenuContext()

void SandBox.View.Menu.MenuViewContext.UpdateMenuContext ( MenuContext  menuContext)

◆ AddLayer()

void SandBox.View.Menu.MenuViewContext.AddLayer ( ScreenLayer  layer)

◆ RemoveLayer()

void SandBox.View.Menu.MenuViewContext.RemoveLayer ( ScreenLayer  layer)

◆ FindLayer< T >() [1/2]

T SandBox.View.Menu.MenuViewContext.FindLayer< T > ( )
Type Constraints
T :ScreenLayer 

◆ FindLayer< T >() [2/2]

T SandBox.View.Menu.MenuViewContext.FindLayer< T > ( string  name)
Type Constraints
T :ScreenLayer 

◆ OnFrameTick()

void SandBox.View.Menu.MenuViewContext.OnFrameTick ( float  dt)

◆ OnResume()

void SandBox.View.Menu.MenuViewContext.OnResume ( )

◆ OnHourlyTick()

void SandBox.View.Menu.MenuViewContext.OnHourlyTick ( )

◆ OnActivate()

void SandBox.View.Menu.MenuViewContext.OnActivate ( )

◆ OnDeactivate()

void SandBox.View.Menu.MenuViewContext.OnDeactivate ( )

◆ OnInitialize()

void SandBox.View.Menu.MenuViewContext.OnInitialize ( )

◆ OnFinalize()

void SandBox.View.Menu.MenuViewContext.OnFinalize ( )

◆ StopAllSounds()

void SandBox.View.Menu.MenuViewContext.StopAllSounds ( )

◆ OnMapConversationActivated()

void SandBox.View.Menu.MenuViewContext.OnMapConversationActivated ( )

◆ OnMapConversationDeactivated()

void SandBox.View.Menu.MenuViewContext.OnMapConversationDeactivated ( )

◆ OnGameStateDeactivate()

void SandBox.View.Menu.MenuViewContext.OnGameStateDeactivate ( )

◆ OnGameStateInitialize()

void SandBox.View.Menu.MenuViewContext.OnGameStateInitialize ( )

◆ OnGameStateFinalize()

void SandBox.View.Menu.MenuViewContext.OnGameStateFinalize ( )

◆ CloseCharacterDeveloper()

void SandBox.View.Menu.MenuViewContext.CloseCharacterDeveloper ( )

◆ AddMenuView< T >()

MenuView SandBox.View.Menu.MenuViewContext.AddMenuView< T > ( params object[]  parameters)
Type Constraints
T :MenuView 
T :new() 

◆ GetMenuView< T >()

T SandBox.View.Menu.MenuViewContext.GetMenuView< T > ( )
Type Constraints
T :MenuView 

◆ RemoveMenuView()

void SandBox.View.Menu.MenuViewContext.RemoveMenuView ( MenuView  menuView)

◆ CloseTownManagement()

void SandBox.View.Menu.MenuViewContext.CloseTownManagement ( )

◆ CloseRecruitVolunteers()

void SandBox.View.Menu.MenuViewContext.CloseRecruitVolunteers ( )

◆ CloseTournamentLeaderboard()

void SandBox.View.Menu.MenuViewContext.CloseTournamentLeaderboard ( )

◆ CloseTroopSelection()

void SandBox.View.Menu.MenuViewContext.CloseTroopSelection ( )

Property Documentation

◆ MenuContext

MenuContext SandBox.View.Menu.MenuViewContext.MenuContext
get

◆ MenuViews

List<MenuView> SandBox.View.Menu.MenuViewContext.MenuViews
get