Esempio n. 1
0
    void OnGUI()
    {
        position = new Rect(position.x, position.y, 300, 145);

        GUILayout.Label("What would you like to do with the new heatmap data?");

        EditorGUILayout.Space();

        if (GUILayout.Button("Replace old data"))
        {
            CombineType = GA_HeatMapDataFilter.CombineHeatmapType.None;
            if (OnPicked != null)
            {
                OnPicked(this);
            }
            Close();
        }
        if (GUILayout.Button("Add to old data"))
        {
            CombineType = GA_HeatMapDataFilter.CombineHeatmapType.Add;
            if (OnPicked != null)
            {
                OnPicked(this);
            }
            Close();
        }
        if (GUILayout.Button("Subtract from old data"))
        {
            CombineType = GA_HeatMapDataFilter.CombineHeatmapType.Subtract;
            if (OnPicked != null)
            {
                OnPicked(this);
            }
            Close();
        }
        if (GUILayout.Button("Subtract from old data (no negative)"))
        {
            CombineType = GA_HeatMapDataFilter.CombineHeatmapType.SubtractZero;
            if (OnPicked != null)
            {
                OnPicked(this);
            }
            Close();
        }
        if (GUILayout.Button("Cancel download"))
        {
            Close();
        }
    }
    void OnGUI ()
	{
		position = new Rect(position.x, position.y, 300, 145);
		
		GUILayout.Label("What would you like to do with the new heatmap data?");
		
		EditorGUILayout.Space();
		
		if (GUILayout.Button("Replace old data"))
		{
			CombineType = GA_HeatMapDataFilter.CombineHeatmapType.None;
			if (OnPicked != null)
				OnPicked(this);
			Close();
		}
		if (GUILayout.Button("Add to old data"))
		{
			CombineType = GA_HeatMapDataFilter.CombineHeatmapType.Add;
			if (OnPicked != null)
				OnPicked(this);
			Close();
		}
		if (GUILayout.Button("Subtract from old data"))
		{
			CombineType = GA_HeatMapDataFilter.CombineHeatmapType.Subtract;
			if (OnPicked != null)
				OnPicked(this);
			Close();
		}
		if (GUILayout.Button("Subtract from old data (no negative)"))
		{
			CombineType = GA_HeatMapDataFilter.CombineHeatmapType.SubtractZero;
			if (OnPicked != null)
				OnPicked(this);
			Close();
		}
		if (GUILayout.Button("Cancel download"))
		{
			Close();
		}
    }