TF2D editor: Changed button sizes
This commit is contained in:
Родитель
b0124c585d
Коммит
a72619d049
|
@ -110,7 +110,7 @@ namespace UnityVolumeRendering
|
|||
}
|
||||
|
||||
// Add new rectangle
|
||||
if (GUI.Button(new Rect(startX, startY + 100, 110.0f, 30.0f), "Add rectangle"))
|
||||
if (GUI.Button(new Rect(startX, startY + 100, 150.0f, 30.0f), "Add rectangle"))
|
||||
{
|
||||
tf2d.AddBox(0.1f, 0.1f, 0.8f, 0.8f, Color.white, 0.5f);
|
||||
needsRegenTexture = true;
|
||||
|
@ -118,7 +118,7 @@ namespace UnityVolumeRendering
|
|||
// Remove selected shape
|
||||
if (selectedBoxIndex != -1)
|
||||
{
|
||||
if (GUI.Button(new Rect(startX, startY + 140, 110.0f, 30.0f), "Remove selected shape"))
|
||||
if (GUI.Button(new Rect(startX, startY + 140, 150.0f, 30.0f), "Remove selected shape"))
|
||||
{
|
||||
tf2d.boxes.RemoveAt(selectedBoxIndex);
|
||||
selectedBoxIndex = -1;
|
||||
|
@ -126,13 +126,13 @@ namespace UnityVolumeRendering
|
|||
}
|
||||
}
|
||||
|
||||
if(GUI.Button(new Rect(startX, startY + 180, 110.0f, 30.0f), "Save"))
|
||||
if(GUI.Button(new Rect(startX, startY + 180, 150.0f, 30.0f), "Save"))
|
||||
{
|
||||
string filepath = EditorUtility.SaveFilePanel("Save transfer function", "", "default.tf2d", "tf2d");
|
||||
if(filepath != "")
|
||||
TransferFunctionDatabase.SaveTransferFunction2D(tf2d, filepath);
|
||||
}
|
||||
if(GUI.Button(new Rect(startX, startY + 220, 110.0f, 30.0f), "Load"))
|
||||
if(GUI.Button(new Rect(startX, startY + 220, 150.0f, 30.0f), "Load"))
|
||||
{
|
||||
string filepath = EditorUtility.OpenFilePanel("Save transfer function", "", "tf2d");
|
||||
if(filepath != "")
|
||||
|
|
Загрузка…
Ссылка в новой задаче