@@ -110,29 +110,29 @@ private void OnGUI()
110
110
}
111
111
112
112
// Add new rectangle
113
- if ( GUI . Button ( new Rect ( startX , startY + 100 , 110 .0f, 30.0f ) , "Add rectangle" ) )
113
+ if ( GUI . Button ( new Rect ( startX , startY + 100 , 150 .0f, 30.0f ) , "Add rectangle" ) )
114
114
{
115
115
tf2d . AddBox ( 0.1f , 0.1f , 0.8f , 0.8f , Color . white , 0.5f ) ;
116
116
needsRegenTexture = true ;
117
117
}
118
118
// Remove selected shape
119
119
if ( selectedBoxIndex != - 1 )
120
120
{
121
- if ( GUI . Button ( new Rect ( startX , startY + 140 , 110 .0f, 30.0f ) , "Remove selected shape" ) )
121
+ if ( GUI . Button ( new Rect ( startX , startY + 140 , 150 .0f, 30.0f ) , "Remove selected shape" ) )
122
122
{
123
123
tf2d . boxes . RemoveAt ( selectedBoxIndex ) ;
124
124
selectedBoxIndex = - 1 ;
125
125
needsRegenTexture = true ;
126
126
}
127
127
}
128
128
129
- if ( GUI . Button ( new Rect ( startX , startY + 180 , 110 .0f, 30.0f ) , "Save" ) )
129
+ if ( GUI . Button ( new Rect ( startX , startY + 180 , 150 .0f, 30.0f ) , "Save" ) )
130
130
{
131
131
string filepath = EditorUtility . SaveFilePanel ( "Save transfer function" , "" , "default.tf2d" , "tf2d" ) ;
132
132
if ( filepath != "" )
133
133
TransferFunctionDatabase . SaveTransferFunction2D ( tf2d , filepath ) ;
134
134
}
135
- if ( GUI . Button ( new Rect ( startX , startY + 220 , 110 .0f, 30.0f ) , "Load" ) )
135
+ if ( GUI . Button ( new Rect ( startX , startY + 220 , 150 .0f, 30.0f ) , "Load" ) )
136
136
{
137
137
string filepath = EditorUtility . OpenFilePanel ( "Save transfer function" , "" , "tf2d" ) ;
138
138
if ( filepath != "" )
0 commit comments