Esempio n. 1
0
        /// <summary>
        /// if a textpanel's name is in outputText, write the detected grids.
        /// </summary>
        /// <param name="block">the IMyTextPanel to test</param>
        /// <returns>false, this is a fake collector</returns>
        bool action_outputPanel(IMyTerminalBlock block)
        {
            StringBuilder writeToPanel;

            if (outputText.TryGetValue(block.DisplayNameText, out writeToPanel))
            {
                IMyTextPanel panel = block as IMyTextPanel;
                panel.SetCustomName(panel.DisplayNameText + writeToPanel + ']');
            }

            return(false);            // fake collector
        }