|
@@ -29,7 +29,7 @@ namespace BansheeEditor
|
|
|
{
|
|
{
|
|
|
Title = "About";
|
|
Title = "About";
|
|
|
Width = 400;
|
|
Width = 400;
|
|
|
- Height = 350;
|
|
|
|
|
|
|
+ Height = 400;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void OnInitialize()
|
|
private void OnInitialize()
|
|
@@ -46,9 +46,11 @@ namespace BansheeEditor
|
|
|
GUILabel linkedInTitle = new GUILabel(new LocEdString("LinkedIn"), GUIOption.FixedWidth(150));
|
|
GUILabel linkedInTitle = new GUILabel(new LocEdString("LinkedIn"), GUIOption.FixedWidth(150));
|
|
|
GUIButton linkedInBtn = new GUIButton(new LocEdString("Profile"));
|
|
GUIButton linkedInBtn = new GUIButton(new LocEdString("Profile"));
|
|
|
|
|
|
|
|
- GUIToggle contactFoldout = new GUIToggle(new LocEdString("Author contact"), EditorStyles.Foldout);
|
|
|
|
|
- GUIToggle thirdPartyFoldout = new GUIToggle(new LocEdString("Used third party libraries"), EditorStyles.Foldout);
|
|
|
|
|
- GUIToggle noticesFoldout = new GUIToggle(new LocEdString("Third party notices"), EditorStyles.Foldout);
|
|
|
|
|
|
|
+ GUIToggleGroup foldoutGroup = new GUIToggleGroup(true);
|
|
|
|
|
+ GUIToggle contactFoldout = new GUIToggle(new LocEdString("Author contact"), foldoutGroup, EditorStyles.Foldout);
|
|
|
|
|
+ GUIToggle thirdPartyFoldout = new GUIToggle(new LocEdString("Used third party libraries"), foldoutGroup, EditorStyles.Foldout);
|
|
|
|
|
+ GUIToggle noticesFoldout = new GUIToggle(new LocEdString("Third party notices"), foldoutGroup, EditorStyles.Foldout);
|
|
|
|
|
+ GUIToggle collaboratorsFoldout = new GUIToggle(new LocEdString("Collaborators"), foldoutGroup, EditorStyles.Foldout);
|
|
|
|
|
|
|
|
GUILabel freeTypeNotice = new GUILabel(new LocEdString(
|
|
GUILabel freeTypeNotice = new GUILabel(new LocEdString(
|
|
|
"Portions of this software are copyright (C) 2015 The FreeType Project (www.freetype.org). " +
|
|
"Portions of this software are copyright (C) 2015 The FreeType Project (www.freetype.org). " +
|
|
@@ -106,10 +108,19 @@ namespace BansheeEditor
|
|
|
noticesLayout.AddElement(freeTypeNotice);
|
|
noticesLayout.AddElement(freeTypeNotice);
|
|
|
noticesLayout.AddSpace(10);
|
|
noticesLayout.AddSpace(10);
|
|
|
noticesLayout.AddElement(fbxSdkNotice);
|
|
noticesLayout.AddElement(fbxSdkNotice);
|
|
|
|
|
+
|
|
|
|
|
+ mainLayout.AddSpace(5);
|
|
|
|
|
+ mainLayout.AddElement(collaboratorsFoldout);
|
|
|
|
|
+ GUILayoutY collaboratorsLayout = mainLayout.AddLayoutY();
|
|
|
|
|
+ CreateCollaboratorGUI(collaboratorsLayout, "Danijel Ribic", "Logo, UI icons, 3D models & textures");
|
|
|
|
|
+
|
|
|
mainLayout.AddFlexibleSpace();
|
|
mainLayout.AddFlexibleSpace();
|
|
|
|
|
|
|
|
contactLayout.Active = false;
|
|
contactLayout.Active = false;
|
|
|
- contactFoldout.OnToggled += x => contactLayout.Active = x;
|
|
|
|
|
|
|
+ contactFoldout.OnToggled += x =>
|
|
|
|
|
+ {
|
|
|
|
|
+ contactLayout.Active = x;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
thirdPartyLayout.Active = false;
|
|
thirdPartyLayout.Active = false;
|
|
|
thirdPartyFoldout.OnToggled += x => thirdPartyLayout.Active = x;
|
|
thirdPartyFoldout.OnToggled += x => thirdPartyLayout.Active = x;
|
|
@@ -117,6 +128,9 @@ namespace BansheeEditor
|
|
|
noticesLayout.Active = false;
|
|
noticesLayout.Active = false;
|
|
|
noticesFoldout.OnToggled += x => noticesLayout.Active = x;
|
|
noticesFoldout.OnToggled += x => noticesLayout.Active = x;
|
|
|
|
|
|
|
|
|
|
+ collaboratorsLayout.Active = false;
|
|
|
|
|
+ collaboratorsFoldout.OnToggled += x => collaboratorsLayout.Active = x;
|
|
|
|
|
+
|
|
|
emailLabel.Text = "[email protected]";
|
|
emailLabel.Text = "[email protected]";
|
|
|
linkedInBtn.OnClick += () => { System.Diagnostics.Process.Start("http://hr.linkedin.com/in/markopintera"); };
|
|
linkedInBtn.OnClick += () => { System.Diagnostics.Process.Start("http://hr.linkedin.com/in/markopintera"); };
|
|
|
}
|
|
}
|
|
@@ -142,6 +156,19 @@ namespace BansheeEditor
|
|
|
licenseBtn.OnClick += () => { System.Diagnostics.Process.Start(licensePath); };
|
|
licenseBtn.OnClick += () => { System.Diagnostics.Process.Start(licensePath); };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private void CreateCollaboratorGUI(GUILayoutY layout, string name, string area)
|
|
|
|
|
+ {
|
|
|
|
|
+ GUILabel nameLabel = new GUILabel(new LocEdString(name), GUIOption.FixedWidth(150));
|
|
|
|
|
+ GUILabel areaLabel = new GUILabel(new LocEdString(area), GUIOption.FixedWidth(220));
|
|
|
|
|
+
|
|
|
|
|
+ GUILayoutX horzLayout = layout.AddLayoutX();
|
|
|
|
|
+ horzLayout.AddSpace(10);
|
|
|
|
|
+ horzLayout.AddElement(nameLabel);
|
|
|
|
|
+ horzLayout.AddSpace(10);
|
|
|
|
|
+ horzLayout.AddElement(areaLabel);
|
|
|
|
|
+ horzLayout.AddSpace(10);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private void OnEditorUpdate()
|
|
private void OnEditorUpdate()
|
|
|
{
|
|
{
|
|
|
emailLabel.Text = "[email protected]";
|
|
emailLabel.Text = "[email protected]";
|