7 protected bool m_bInit;
8 protected Managed m_Owner;
11 protected void Activate()
13 SCR_HintManagerComponent hintManager = SCR_HintManagerComponent.GetInstance();
17 if (!hintManager.WasShown(
m_Info))
20 GetGame().GetCallqueue().CallLater(SCR_HintManagerComponent.ShowHint, 1,
false,
m_Info,
false,
false);
24 ExitCondition(
m_Owner, hintManager);
29 protected void Deactivate()
31 SCR_HintManagerComponent hintManager = SCR_HintManagerComponent.GetInstance();
38 if (hintManager.WasShown(
m_Info))
39 ExitCondition(
m_Owner, hintManager);
46 void InitCondition(Managed owner, SCR_HintManagerComponent hintManager)
48 if (!hintManager.WasShown(m_Info))
52 OnInitCondition(owner);
60 void ExitCondition(Managed owner, SCR_HintManagerComponent hintManager)
65 OnExitCondition(owner);
70 protected void OnInitCondition(Managed owner);
73 protected void OnExitCondition(Managed owner);
81 m_Info.Log(
"Cannot initialize hint condition, hint type is undefined! ", LogLevel.WARNING);
86 class SCR_BaseContainerHintCondition : BaseContainerCustomTitle
91 BaseContainer info = source.GetObject(
"m_Info");
96 info.Get(
"m_Type",
type);
97 title =
typename.EnumToString(
EHint,
type);
102 info.Get(
"Name", name);
103 title +=
string.Format(
" (\"%1\")", name);