Help in changing the GUI looks!
I downloaded a project from internet. Now I want to change the looks of the lobby a little. But I am a complete newbie to programming. So i want it to look little more attractive. My ideas are included in the photo. In available servers, the button should be changed to Connect and the text Host to Servers. On clicking dirctt connect tab, it should act like the button in the GUI script below. In the logo space i should be able to upload my Logo!
Here's the GUI Script.
using UnityEngine; using System.Collections;
public class HUD : MonoBehaviour { public PlayerVitals pv; public Weapon wep;
// Use this for initialization
void Start()
{
if (!GetComponent<NetworkView>().isMine)
{
this.enabled = false;
}
}
// Update is called once per frame
void OnGUI()
{
if (GetComponent<NetworkView>().isMine)
{
GUI.Label(new Rect(20, Screen.height - 40, 100, 40), "Health: " + pv.hitPoints.ToString("F0"));
GUI.Label(new Rect(20, Screen.height - 20, 150, 40), "Ammo: " + wep.bulletsLeftRead + " / " + wep.bulletsPerMagRead + " | " + wep.magsLeftRead);
}
else
{
this.enabled = false;
}
}
}
Thanks in advance!!
Your answer
Follow this Question
Related Questions
GUI question, need some help 0 Answers
Trouble with GUI Button Level switching. 0 Answers
How to load font into variable 0 Answers
How to instantiate (MonoBehaviour) script multiple times and call void? 1 Answer
Custom Editor GUILayout.Width isn't working when using variables, but works when not 1 Answer