3 protected const ResourceName DEBUG_CONFIG =
"{9D381AA96A15D6B4}Configs/GroupIdentity/MilitarySymbolConfig.conf";
5 [
Attribute(
desc:
"Initial military symbol data. When undefined, it has to be set by script.")]
8 protected Widget m_Widget;
21 config = core.GetSymbols();
26 Print(
"Cannot show military symbol, config not found!", LogLevel.WARNING);
31 config.CreateWidgets(symbol, m_Widget);
35 override void HandlerAttached(Widget w)
43 Resource resource = Resource.Load(DEBUG_CONFIG);
44 if (!resource.IsValid())
46 Print(
"Invalid config " + DEBUG_CONFIG, LogLevel.WARNING);
51 Update(m_MilitarySymbol, config);
53 Update(m_MilitarySymbol);
59 override void HandlerDeattached(Widget w)