initial upload

This commit is contained in:
tom.hempel
2025-09-30 17:58:33 +02:00
commit 69b0c79692
4818 changed files with 229318 additions and 0 deletions

View File

@ -0,0 +1,49 @@
using Convai.Scripts.Runtime.LoggerSystem;
using UnityEngine;
using UnityEngine.UIElements;
namespace Convai.Scripts.Editor.Setup.Updates
{
public class UpdatesSectionUI
{
private readonly VisualElement _root;
public UpdatesSectionUI(VisualElement root)
{
_root = root;
SetupUpdateSectionHandlers();
SetInitialVersionNumber();
}
private void SetupUpdateSectionHandlers()
{
// Button checkUpdatesButton = _root.Q<Button>("check-updates");
// if (checkUpdatesButton != null)
// checkUpdatesButton.clicked += CheckForUpdates;
Button viewFullChangelogButton = _root.Q<Button>("view-full-changelog");
if (viewFullChangelogButton != null)
viewFullChangelogButton.clicked += () => Application.OpenURL("https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/changelogs");
}
private void SetInitialVersionNumber()
{
Label versionLabel = _root.Q<Label>("current-version");
if (versionLabel != null)
versionLabel.text = "v3.3.1";
}
private void CheckForUpdates()
{
ConvaiLogger.DebugLog("Checking for updates...", ConvaiLogger.LogCategory.UI);
UpdateStatusMessage("Checking for updates...");
}
private void UpdateStatusMessage(string message)
{
Label statusLabel = _root.Q<Label>("update-message");
if (statusLabel != null)
statusLabel.text = message;
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 6519e8d66ce94102bedf6862d8d18f5d
timeCreated: 1723460891