From bc0a5d2c534f231146741b34aae12e40b85d08b7 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 3 Sep 2014 10:21:00 +0100 Subject: [PATCH] Command buttons now fill the vertical space available --- .../Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs b/Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs index 3b96e313..87541f06 100644 --- a/Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs +++ b/Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs @@ -117,13 +117,16 @@ namespace Fungus.Script Rect buttonRect = position; buttonRect.width = 80; + buttonRect.y -= 2; + buttonRect.height += 5; Rect summaryRect = position; summaryRect.x += 85; summaryRect.width -= 85; string commandName = FungusScriptEditor.GetCommandName(command.GetType()); - if (GUI.Button(buttonRect, commandName, EditorStyles.miniButton)) + GUIStyle commandStyle = new GUIStyle(GUI.skin.box); + if (GUI.Button(buttonRect, commandName, commandStyle)) { fungusScript.selectedCommand = command; GUIUtility.keyboardControl = 0; // Fix for textarea not refeshing (change focus)