Beispiel #1
0
		void DownloadResources(int mouseX, int mouseY) {
			if (fetcher != null) return;
			
			fetcher = game.fetcher;
			fetcher.DownloadItems(game.Downloader, SetStatus);
			selectedWidget = null;
			
			widgets[view.yesIndex].Visible = false;
			widgets[view.noIndex].Visible = false;
			widgets[view.textIndex].Visible = false;
			widgets[view.cancelIndex].Visible = true;
			widgets[view.sliderIndex].Visible = true;
			Resize();
		}
        void DownloadResources(int mouseX, int mouseY)
        {
            if (game.Downloader == null)
            {
                game.Downloader = new AsyncDownloader("null");
            }
            if (fetcher != null)
            {
                return;
            }

            fetcher = game.fetcher;
            fetcher.DownloadItems(game.Downloader, SetStatus);
            selectedWidget = null;
            Resize();
        }