//must be called OnGUIStart callback function public void OnGUIStart() { tab_menu.position = new Vector2(10, upper_border_margin + 10); tab_menu.tab_height = 40; tab_menu.tab_width = 150; tab_menu.spacing = 2; tab_menu.font_size = 25; tab_menu.draw_background = true; tab_menu.SetAlignment(TabMenu.TabMenuAlignment.VerticalDown); tab_menu.OnGUIStart(); ReCalculateRect(); LabelStyle = new GUIStyle(GUI.skin.label); LabelStyle.fontSize = 20; LabelStyle.fontStyle = FontStyle.Bold; LabelStyle.alignment = TextAnchor.MiddleLeft; LabelStyle.richText = true; WindowStyle = new GUIStyle(GUI.skin.window); WindowStyle.fontSize = 20; WindowStyle.fontStyle = FontStyle.BoldAndItalic; WindowStyle.alignment = TextAnchor.UpperCenter; WindowStyle.richText = true; ButtonStyle = new GUIStyle(GUI.skin.button); ButtonStyle.fontSize = 20; ButtonStyle.fontStyle = FontStyle.Bold; ButtonStyle.alignment = TextAnchor.MiddleLeft; default_alpha_value = GUI.color.a; }
protected override void OnGUIStart() { tab_menu.OnGUIStart(); button_style = tab_menu.tab_style; for (int i = 0; i < 3; i++) { consoles[i].OnGUIStart(); } }