public bool DoLayout(GUIStyle style)
        {
            var prevAddress = Value;
            var selected    = addressDropdown.DoLayout(style);

            if (selected)
            {
                lastSearch = Value;
                Place      = addresses.First(sd => sd.DisplayName == Value);
            }

            if (!selected && Value != prevAddress)
            {
                timeSinceLastWrite = 0;
                searched           = false;
            }

            return(selected);
        }
Exemplo n.º 2
0
        public bool DoLayout(GUIStyle style)
        {
            var prevAddress = Value;
            var selected    = addressDropdown.DoLayout(style);

            if (selected)
            {
                lastSearch = Value;
                var searchData = addresses.First(sd => sd.label == Value);
                this.LatLon      = searchData.coordinates.ToVector2d();
                this.BoundingBox = searchData.boundingBox;
            }

            if (!selected && Value != prevAddress)
            {
                timeSinceLastWrite = 0;
            }

            return(selected);
        }