Skip to content

Commit

Permalink
Bumped package verison
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonradivoev committed Jan 30, 2021
1 parent 8898496 commit edded54
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 20 deletions.
4 changes: 1 addition & 3 deletions Editor/GitManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ namespace UniGit
{
public class GitManager : IDisposable
{
public const string Version = "1.4.3";

private Repository repository;
private Repository repository;
private readonly GitSettingsJson gitSettings;
private readonly UniGitData gitData;
private readonly object statusRetriveLock = new object();
Expand Down
16 changes: 7 additions & 9 deletions Editor/GitSettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class GitSettingsWindow : GitUpdatableWindow, IHasCustomMenu
private VisualElement settingsWindowElement;
private VisualElement settingsTabsElement;
private VisualElement tabsToolbar;
private Button helpButton;
private Button donateButton;
private VisualElement helpButton;
private VisualElement donateButton;

#endregion

Expand Down Expand Up @@ -219,14 +219,12 @@ protected override void ConstructGUI(VisualElement root)
settingsWindowElement = root.Q("SettingsWindow");
settingsTabsElement = root.Q("SettingsTabs");
tabsToolbar = root.Q("TabsToolbar");
helpButton = root.Q<Button>("HelpSettings");
helpButton.tooltip = "Help";
donateButton = root.Q<Button>("Donate");
donateButton.tooltip = "Donate";
helpButton = root.Q<VisualElement>("HelpSettings");
donateButton = root.Q<VisualElement>("Donate");

helpButton.clickable.clicked += () => GitLinks.GoTo(GitLinks.SettingsWindowHelp);
donateButton.clickable.clicked += () => GitLinks.GoTo(GitLinks.Donate);
}
helpButton.RegisterCallback<ClickEvent>(e => GitLinks.GoTo(GitLinks.SettingsWindowHelp));
donateButton.RegisterCallback<ClickEvent>(e => GitLinks.GoTo(GitLinks.Donate));
}

protected override void OnGitUpdate(GitRepoStatus status, string[] paths)
{
Expand Down
4 changes: 2 additions & 2 deletions Editor/UI/SettingsWindow.uxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<Instance template="InvalidRepository" name="InvalidRepository"/>
<VisualElement name="SettingsWindow">
<editor:Toolbar name="TabsToolbar">
<Button name="Donate" class="smallIconButton" />
<Button name="HelpSettings" class="smallIconButton" />
<VisualElement name="Donate" class="smallIconButton" tooltip="Donate" />
<VisualElement name="HelpSettings" class="smallIconButton" tooltip="Help" />
</editor:Toolbar>
<VisualElement name="SettingsTabs">

Expand Down
2 changes: 1 addition & 1 deletion Editor/UI/SettingsWindowSheet.uss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#Donate{
position: absolute;
right: 4px;
background-image: resource("Icons/donate");
background-image: resource("PreviewPackageInUse");
}

#HelpSettings{
Expand Down
8 changes: 5 additions & 3 deletions Editor/Utils/GitAboutWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using LibGit2Sharp;
using UnityEditor;
using UnityEngine;
using PackageInfo = UnityEditor.PackageManager.PackageInfo;

namespace UniGit.Utils
{
Expand Down Expand Up @@ -49,11 +50,12 @@ private void OnGUI()
{
var version = GlobalSettings.Version;

GUILayout.Label(GitGUI.GetTempContent("UniGit"), "TL Selection H1");
GUILayout.Label(GitGUI.GetTempContent("UniGit"), "LODLevelNotifyText", GUILayout.ExpandWidth(true));

GUILayout.BeginVertical("IN GameObjectHeader");
GUILayout.BeginVertical("AC BoldHeader");
GUILayout.Label(GitGUI.GetTempContent("Created by: Simeon Radivoev"));
GUILayout.Label(GitGUI.GetTempContent("UniGit Version: " + GitManager.Version));
var packageInfo = PackageInfo.FindForAssembly(this.GetType().Assembly);
GUILayout.Label(GitGUI.GetTempContent("UniGit Version: " + packageInfo.version));
GUILayout.Label(GitGUI.GetTempContent("Git Version: " + gitVersion));
GUILayout.Label(GitGUI.GetTempContent("LibGit2Sharp Features: " + version.Features));
GUILayout.Label(GitGUI.GetTempContent("License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007"),EditorStyles.wordWrappedLabel);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "com.simeonradivoev.uni-git",
"version": "1.5.2",
"version": "1.5.3",
"displayName": "UniGit",
"description": "An open source GIT Unity3D editor plugin.",
"unity": "2019.2",
"unity": "2020.2",
"dependencies": {
},
"keywords": [
Expand Down

0 comments on commit edded54

Please sign in to comment.