예제 #1
0
 void IInitializable.Initialize()
 {
     _controls = new HierchicalMaterialControl();
     _controls.FocusedMatControls.AddExtraControls("Material", new MatTab(_schemaLoader));
     _controls.Object = _context.MaterialName;
     _context.OnChange += OnActiveMaterialChange;
     _controlHostService.RegisterControl(
         _controls,
         new ControlInfo("Material inspector".Localize(), "Properties for the picked material".Localize(), StandardControlGroup.Right),
         null);
 }
예제 #2
0
 void IInitializable.Initialize()
 {
     m_controls = new HierchicalMaterialControl();
     m_controls.FocusedMatControls.AddExtraControls("Material", new MatTab());
     Context.OnChange += OnActiveMaterialChange;
     m_controlHostService.RegisterControl(
         m_controls,
         new ControlInfo("Material inspector", "Properties for the picked material", StandardControlGroup.Right),
         null);
 }