Browse Source

Command buttons now fill the vertical space available

master
chrisgregan 11 years ago
parent
commit
bc0a5d2c53
  1. 5
      Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs

5
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)

Loading…
Cancel
Save