/////// void DrawUI() { //cd button if (GUI.Button(new Rect(350, 550, 200, 40), "")) { vS.PlayClickY(); if (vT.vLvl / 10 >= 1) { vT.EARN(vT.vLvl / 10, vT.vLvl); } else { vT.EARN(1, vT.vLvl); } if (!vW.vStarted) { vN.AddNotif("Cooldown Decreased by " + vT.vLvl * 20 + " ms!\n1u Earned!\n1 Exp Earned!\nPrimitive Research Unlocked!"); vC.Switch(); } vW.vStarted = true; vW.Clicka(vT.vLvl * 20); } GUI.DrawTexture(new Rect(360, 560, 180, 20), vProgressFrame, ScaleMode.StretchToFill, true, 10.0F); float wwu = fWidth(180F, vW.vF, vT.vWaveFreq, true); GUI.DrawTexture(new Rect(361, 561, wwu, 18), vProgressBar, ScaleMode.StretchToFill, true, 10.0F); GUI.Label(new Rect(416, 560, 200, 50), "<size=14><color=black>Next Wave</color></size>"); GUI.Label(new Rect(415, 559, 200, 50), "<size=14><color=#52CC00>Next Wave</color></size>"); //money GUI.Box(new Rect(750, -10, 400, 60), ""); GUI.Label(new Rect(760, 10, 200, 50), "<size=18><color=black>" + Mathfx.Shorten(vT.vMoney) + "u </color></size>"); GUI.Label(new Rect(760, 9, 200, 50), "<size=18><color=#52CC00>" + Mathfx.Shorten(vT.vMoney) + "u </color></size>"); //health////////////////// //white background //GUI.DrawTexture(new Rect(250,0,400,60), vWhite,ScaleMode.StretchToFill, true, 10.0F); GUI.Box(new Rect(250, -10, 400, 60), ""); //progress bar GUI.DrawTexture(new Rect(260, 11, 180, 25), vProgressFrame, ScaleMode.StretchToFill, true, 10.0F); float wwu2 = fWidth(180F, vT.vHealth, vT.vMaxHealth, false); GUI.DrawTexture(new Rect(261, 12, wwu2, 23), vProgressBar, ScaleMode.StretchToFill, true, 10.0F); //text GUI.Label(new Rect(326, 13, 200, 50), "<size=14><color=black>" + vT.vHealth.ToString("F1") + "HP</color></size>"); GUI.Label(new Rect(325, 12, 200, 50), "<size=14><color=#52CC00>" + vT.vHealth.ToString("F1") + "HP</color></size>"); //explvl////////////// GUI.DrawTexture(new Rect(460, 11, 180, 25), vProgressFrame, ScaleMode.StretchToFill, true, 10.0F); float wwu3 = fWidth(180F, vT.vCurrExp, vT.vExpLeft, false); GUI.DrawTexture(new Rect(461, 12, wwu3, 23), vProgressBar, ScaleMode.StretchToFill, true, 10.0F); //text GUI.Label(new Rect(526, 13, 200, 50), "<size=14><color=black>Level " + vT.vLvl + "</color></size>"); GUI.Label(new Rect(525, 12, 200, 50), "<size=14><color=#52CC00>Level " + vT.vLvl + "</color></size>"); }