progress bars

This commit is contained in:
asleal2 2018-04-25 23:16:41 -05:00
parent c6e0281a9b
commit 2f7f287033

View file

@ -16,27 +16,39 @@ public class GetGoals : MonoBehaviour {
public string prefKey; public string prefKey;
public float goalValue;
//Progress Bar...
public float barDisplay; //current progress
public Vector2 barPos;
Vector2 barSize = new Vector2(227,20);
void Start () { void Start () {
goalText.text = prefKey; //goalText.text = prefKey;
goalText.color = new Color(1f, 0.5f, 0.8f); goalText.color = new Color(0f, 0f, 0f);
goalText.transform.position = new Vector2(barPos.x + 45.0f,barPos.y + 55.0f);
//barPos.x = goalText.transform.position.x;
//barPos.y = goalText.transform.position.y + 10.0f;
//Debug.Log(barPos.x + " " + barPos.y);
//barPos.x = 0;
//barPos.y = 0;
currentDayStr = System.DateTime.Now.ToString("MM/dd/yyyy"); currentDayStr = System.DateTime.Now.ToString("MM/dd/yyyy");
goalDayStr = System.DateTime.Now.ToString("MM/dd/yyyy"); goalDayStr = System.DateTime.Now.ToString("MM/dd/yyyy");
Debug.Log(goalDayStr); Debug.Log(goalDayStr);
Debug.Log("hoauaouou"); Debug.Log("hauaouou");
if(prefKey == "daily") if(prefKey == "daily")
savePersistantGoalDate("daily"); savePersistantGoalDate("daily");
} }
public float goalValue;
//Progress Bar...
public float barDisplay; //current progress
public Vector2 barPos = new Vector2(20,190);
public Vector2 barSize = new Vector2(60,20);
//Texture the progress bar using these parameters //Texture the progress bar using these parameters
public Texture2D emptyTex; public Texture2D emptyTex;
public Texture2D fullTex; public Texture2D fullTex;