Skip to content

Commit

Permalink
UI improvement
Browse files Browse the repository at this point in the history
Upload is now 99% of the progressbar rather than 75%. Convert process is now 1% rather than 25% (since we don't even have a callback on the convert process progress)
  • Loading branch information
zqsd committed Jan 23, 2014
1 parent 1228f71 commit dcca59f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/External Tools/Exporter/SketchfabExporterWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public float progress() {
if (www == null)
return 0.0f;

return 0.75f * www.uploadProgress + 0.25f * www.progress;
return 0.99f * www.uploadProgress + 0.01f * www.progress;
}

public string errored() {
Expand Down Expand Up @@ -449,8 +449,8 @@ void OnGUI() {
GUILayout.Label("Sketchfab settings", EditorStyles.boldLabel);
param_token = EditorGUILayout.TextField("API Token", param_token);
EditorGUILayout.BeginHorizontal();
EditorGUILayout.PrefixLabel("can be obtained on your dashboard");
if(GUILayout.Button("dashboard"))
EditorGUILayout.PrefixLabel("find your token");
if(GUILayout.Button("open dashboard"))
Application.OpenURL(dashboard_url);
EditorGUILayout.EndHorizontal();

Expand Down

0 comments on commit dcca59f

Please sign in to comment.