Skip to content

Releases: michael811125/OxGFrame

Release v2.9.16

20 Feb 11:28
Compare
Choose a tag to compare

[2.9.16] - 2024-02-20

  • Updated YooAsset commits.
  • Added InitPackage in AssetPatcher.
    /// <summary>
    /// Init package by type
    /// </summary>
    /// <param name="packageInfo"></param>
    /// <param name="autoUpdate"></param>
    /// <returns></returns>
    public static async UniTask<bool> InitPackage(PackageInfoWithBuild packageInfo, bool autoUpdate = false)
  • Modified PackageOperation initialize procedure by manual.
public class PackageOperation
{
    /// <summary>
    /// Ready operation for initialize (after events added)
    /// </summary>
    public void Ready()
}
  • Modified BundleDLCDemo sample.
    image

  • Modified SetDefaultPackage determine.

  • Removed unuse samples from DiskUtils.

Release v2.9.15

19 Feb 04:34
Compare
Choose a tag to compare

[2.9.15] - 2024-02-19

  • Updated UniTask to v2.5.3.
  • Added DriveUpdate methods in CPBase (can call update by other PlayerLoop).
    public void DriveUpdate(float dt) => this.HandleUpdate(dt);
    public void DriveFixedUpdate(float dt) => this.HandleFixedUpdate(dt);
    public void DriveLateUpdate(float dt) => this.HandleLateUpdate(dt);

Release v2.9.14

02 Feb 12:06
Compare
Choose a tag to compare

[2.9.14] - 2024-02-02

  • Modified PackageOperation user callback events, can reference itself in callback.
public class PackageOperation
{
    public delegate void OnPatchRepairFailed(PackageOperation itself);
    public delegate void OnPatchInitPatchModeFailed(PackageOperation itself);
    public delegate void OnPatchVersionUpdateFailed(PackageOperation itself);
    public delegate void OnPatchManifestUpdateFailed(PackageOperation itself);
    public delegate void OnPatchCheckDiskNotEnoughSpace(PackageOperation itself, int availableMegabytes, ulong patchTotalBytes);
    public delegate void OnPatchDownloadFailed(PackageOperation itself, string fileName, string error);
}

checkout v2.9.13

Release v2.9.13

01 Feb 11:14
Compare
Choose a tag to compare

[2.9.13] - 2024-02-01

  • Updated yooasset to v2.1.1.
  • Added DiskUtils by keerthik third party in AssetLoader module (not supported WebGL).
  • Added Check available disk space in patch and package download step (not supported WebGL).
    • Must add PatchEvents.PatchCheckDiskNotEnoughSpace in patchEvents to handle it (checkout BundleDemo).

image

image

  • Added CheckDiskSpace flag setting on PatchLauncher inspector.

image

  • Added Can set user event handler to PackageOperation.
public class PackageOperation
{
    /// <summary>
    /// Enable or disable disk space check procedure (default is true)
    /// </summary>
    public bool checkDiskSpace = true;

    public OnPatchRepairFailed onPatchRepairFailed;
    public OnPatchInitPatchModeFailed onPatchInitPatchModeFailed;
    public OnPatchVersionUpdateFailed onPatchVersionUpdateFailed;
    public OnPatchManifestUpdateFailed onPatchManifestUpdateFailed;
    public OnPatchCheckDiskNotEnoughSpace onPatchCheckDiskNotEnoughSpace;
    public OnPatchDownloadFailed onPatchDownloadFailed;
    
    public void UserTryPatchRepair()
    public void UserTryInitPatchMode()
    public void UserTryPatchVersionUpdate()
    public void UserTryPatchManifestUpdate()
    public void UserTryCreateDownloader()
}
  • Modified UIBase method name #1adf602 (Replace all below).
method ShowAnime => ShowAnimation

method HideAnime => HideAnimation

delegate AnimeEndCb => AnimationEnd

param animeEndCb => animationEnd

Replace all in Visual Studio

image

image

image

Release v2.9.12

16 Jan 15:47
Compare
Choose a tag to compare

[2.9.12] - 2024-01-16

  • Added CoreFrames.UIFrame.GetStackByStackCount method.
    public static int GetStackByStackCount(string canvasName)
    
    public static int GetStackByStackCount(int groupId, string canvasName)

How to use it

    if (Keyboard.current.escapeKey.wasReleasedThisFrame)
    {
        if (CoreFrames.UIFrame.GetStackByStackCount(groupId, canvasName) > 0)
        {
            CoreFrames.UIFrame.CloseStackByStack(groupId, canvasName);
        }
        else
        {
            Debug.Log("Open Esc Menu!!!");
        }
    }
  • Modified UI NodeType name (the original settings will not be changed).
    public enum NodeType
    {
        Fixed,        // Normal => Fixed
        TopFixed,     // Fixed => TopFixed
        Popup,        // Same
        TopPopup,     // Same
        LoadingPopup, // Same
        SysPopup,     // Same
        TopSysPopup,  // Same
        AwaitingPopup // Same
    }

Release v2.9.11

09 Jan 11:13
Compare
Choose a tag to compare

[2.9.11] - 2024-01-09

  • Optimized NetFrame.
  • Added TcpNetOption.
  • Added WebsocketNetOption.
  • Modified NetOption.
  • Modified SetResponseHandler to SetResponseBinaryHandler and SetResponseMessageHandler.
  • Modified typo SetOutReciveAction to SetOutReceiveAction.
  • Renamed TcpSock to TcpNetProvider.
  • Renamed WebSock to WebsocketNetProvider.
  • Renamed method CloseSocket to Close.
  • Renamed ISocket to INetProvider.

Release v2.9.10

28 Dec 03:43
Compare
Choose a tag to compare

[2.9.10] - 2023-12-28

  • Updated YooAsset to v2.1.0 (CHANGELOG).
  • Organized coding style (Wiki).

Release v2.9.9

17 Dec 18:31
Compare
Choose a tag to compare

Must update

[2.9.9] - 2023-12-18

  • Added PackageOperation feature, can download packages more easier (please checkout BundleDLC Demo).
    // Factory Mode
    public static PackageOperation CreateOperation(string groupName, PackageInfoWithBuild packageInfo, bool skipDownload = false)
    public static PackageOperation CreateOperation(string groupName, PackageInfoWithBuild[] packageInfos, bool skipDownload = false)

    // Use Example
    var packageOperations = new PackageOperation[]
    {
        new PackageOperation
        (
            "DLC Package 1",
            new DlcPackageInfoWithBuild()
            {
                buildMode = BuildMode.ScriptableBuildPipeline,
                packageName = "Dlc1Package",
                dlcVersion = "latest"
            },
            false
        ),
        new PackageOperation
        (
            "DLC Pacakge 2",
            new DlcPackageInfoWithBuild()
            {
                buildMode = BuildMode.ScriptableBuildPipeline,
                packageName = "Dlc2Package",
                dlcVersion = "latest"
            },
            false
        )
    };
  • Added BundleDLCDemo for operate PackageOperation.
  • Modified params to PackageInfoWithBuild.
    public abstract class PackageInfoWithBuild
    {
        [Tooltip("Only for EditorSimulateMode")]
        public BuildMode buildMode;
        public string packageName;
        
        /// <summary>
        /// Custom host server
        /// </summary>
        [HideInInspector]
        public string hostServer = null;
        /// <summary>
        /// Custom fallback host server
        /// </summary>
        [HideInInspector]
        public string fallbackHostServer = null;
        public IBuildinQueryServices builtinQueryService = null;
        public IDeliveryQueryServices deliveryQueryService = null;
        public IDeliveryLoadServices deliveryLoadService = null;
    }
  • Removed method InitCustomPackage from AssetPatcher.

Release v2.9.8

08 Dec 03:15
Compare
Choose a tag to compare

[2.9.8] - 2023-12-08

  • Added Generate binding code rule (MethodType: Manual, Auto, default is Auto).
    #region Binding Components
    protected Image _bgImg;
    protected Text _msgTxt;
    
    /// <summary>
    /// Auto Binding Section
    /// </summary>
    protected override void OnAutoBind()
    {
        base.OnAutoBind();
        this._bgImg = this.collector.GetNodeComponent<Image>("Bg*Img");
        this._msgTxt = this.collector.GetNodeComponent<Text>("Msg*Txt");
    }
    #endregion

Release v2.9.7

07 Dec 10:30
Compare
Choose a tag to compare

[2.9.7] - 2023-12-07

  • Modified repair procedure (Supports patch repair during download).
  • Modified BundleDemo in Samples.
  • Fixed AssetPatcher flags bug issue (IsCheck(), IsRepair(), IsDone()).