Example #1
0
        void LoadLayout(HUDLayoutSave saveState)
        {
            foreach (var savedRule in saveState.Rules)
            {
                RosTopicState topicState = m_Connection.GetOrCreateTopic(savedRule.Topic, savedRule.RosMessageName, savedRule.IsService);
                VisualizationTopicsTabEntry vis;
                if (!m_Topics.TryGetValue(savedRule.Topic, out vis))
                {
                    vis = new VisualizationTopicsTabEntry(topicState, m_FillTexture);
                    m_Topics.Add(savedRule.Topic, vis);
                }

                vis.LoadSaveState(savedRule);
            }
        }