Releases: michael811125/OxGFrame
Releases · michael811125/OxGFrame
Release v2.9.16
[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()
}
Release v2.9.15
[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
[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
[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).
- Added CheckDiskSpace flag setting on PatchLauncher inspector.
- 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
Release v2.9.12
[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
[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
Release v2.9.9
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
[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
[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()).