public override void Update() { if (MouseOver && this.owner.mouseDown) { this.owner.ExitButton(); } label.isVisible = this.isVisible; box.isVisible = this.isVisible; label.Update(); box.Update(); }
public override void Update() { box.isVisible = this.isVisible; box.Update(); //Update stuff { //The total height in pixels that the players take up on the scroll menu // float messagePixelHeight = 5 + (playerLabels.Count * 25); //The max height the scrollbar can display // float maxDisplayHeight = this.size.y - 30; // float maxDisplayTransition = this.size.y - 40; // float difference = messagePixelHeight - maxDisplayHeight; //this.pos = Input.mousePosition; /* * if (difference < 0) * { * scrollValue = 0; * } */ //int i = 0; foreach (KeyValuePair <ulong, MUILabel> kvp in playerLabels) { MUILabel label = kvp.Value; //item.color = MonklandSteamManager.GameManager.readiedPlayers.Contains(kvp.Key) ? Color.green : Color.red; label.isVisible = this.isVisible; label.Update(); //i++; } } }