Skip to content

Commit

Permalink
fix tool layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Photon0525 committed Mar 29, 2023
1 parent ee905a3 commit 4e72633
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions Export/LayaAir3D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,13 @@ void OnEnable()

void OnGUI()
{
//����
//????
ExportConfig.initConfig();
LanguageConfig.configLanguage();

GUILayout.Space(10);

GUILayout.BeginHorizontal();
GUILayout.Space(24);
GUIContent c22 = new GUIContent(LanguageConfig.str_LayaAirExport, exporttu);
if (GUILayout.Button(c22, GUILayout.Height(30), GUILayout.Width(position.width - 48)))
{
LayaAir3Export.ExportScene();
}
GUILayout.EndHorizontal();

GUILayout.Space(15);
GUILayout.BeginHorizontal();
GUILayout.Space(24);
Expand Down Expand Up @@ -95,7 +88,7 @@ void OnGUI()

}

//��
//??
GUILayout.BeginHorizontal();
GUILayout.Space(25);
GUILayout.Box("", GUILayout.Height(1), GUILayout.Width(position.width - 50));
Expand Down Expand Up @@ -151,7 +144,7 @@ void OnGUI()
GUILayout.EndVertical();
}
//---------------------------------------OtherSetting------------------------------------------
//��
//??
GUILayout.BeginHorizontal();
GUILayout.Space(25);
GUILayout.Box("", GUILayout.Height(1), GUILayout.Width(position.width - 50));
Expand Down Expand Up @@ -181,10 +174,10 @@ void OnGUI()
}


//��
//??
GUILayout.BeginHorizontal();
GUILayout.Space(25);
GUILayout.Box("", GUILayout.Height(1), GUILayout.Width(position.width - 50));
GUILayout.Space(21);
GUILayout.Box("", GUILayout.Height(1), GUILayout.Width(position.width - 60));
GUILayout.EndHorizontal();

GUILayout.EndScrollView();
Expand All @@ -200,7 +193,7 @@ void OnGUI()

GUILayout.BeginHorizontal();
GUILayout.Space(21);
GUILayout.Label(LanguageConfig.str_SavePath, GUILayout.Width(65));
GUILayout.Label(LanguageConfig.str_SavePath, GUILayout.Width(69), GUILayout.ExpandWidth(false));
string savePath = ExportConfig.SAVEPATH;
savePath = GUILayout.TextField(savePath, GUILayout.Height(21));

Expand All @@ -220,6 +213,16 @@ void OnGUI()
}
GUILayout.Space(21);
GUILayout.EndHorizontal();
GUILayout.Space(21);

GUILayout.BeginHorizontal();
GUILayout.Space(21);
GUIContent c22 = new GUIContent(LanguageConfig.str_LayaAirExport, exporttu);
if (GUILayout.Button(c22, GUILayout.Height(30), GUILayout.Width(position.width - 45)))
{
LayaAir3Export.ExportScene();
}
GUILayout.EndHorizontal();

GUILayout.Space(30);
ExportConfig.saveConfiguration();
Expand Down

0 comments on commit 4e72633

Please sign in to comment.