Exemplo n.º 1
0
        /// <summary>
        /// Initialize the Window
        /// </summary>
        /// <param name="objectLayerNode">NanoXMLNode of the MapObjectLayer from with MapObject will be read</param>
        public static void Init(NanoXMLNode objectLayerNode)
        {
            // Get existing open window or if none, make a new one:
            TiledMapObjectsWindow window = (TiledMapObjectsWindow)EditorWindow.GetWindow(typeof(TiledMapObjectsWindow));

            _objectLayerNode = objectLayerNode;
            string name = objectLayerNode.GetAttribute("name") != null?
                          objectLayerNode.GetAttribute("name").Value:
                          "ObjectLayer";

            window.title = name;
            window.RebuildObjectsProperties();
        }
 void ShowObjectsWindow(NanoXMLNode objectLayerNode)
 {
     TiledMapObjectsWindow.Init(objectLayerNode);
 }