I am having a bit of trouble formatting the contents of my window. When I display the buttons I want in my window, the top button is always right at the top of the window. Heres the code for the window:
private void DisplaySkillsWindow(int windowID)
{
for (int i = 0; i < _player.GetAbilityLength(); i++)
GUI.Button(new Rect(10, 30 * i, 100, 20), new GUIContent(_player.GetAbility(i).Name,
"Base Damage : " + _player.GetAbility(i).BaseDamage + "
Elemental Damage : " + _player.GetAbility(i).ElementalDamage));
GUI.Label(new Rect(125, 40, 150, 100), GUI.tooltip);
}
It also happens in my other window with the character’s attributes. I’m sure that it is just a minor overlook on my part, but I can’t seem to figure out what that is. Thanks guys.