Releases: michael811125/OxGFrame
Releases · michael811125/OxGFrame
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()).
Release v2.9.6
[2.9.6] - 2023-12-06
- Fixed a bug where the RawFileBuildPipeline download file was missing an extension.
Release v2.9.5
[2.9.5] - 2023-12-05
- Added AppPackageInfoWithBuild and DlcPackageInfoWithBuild (BuildMode can be selected when executing on SimulateMode).
[Serializable]
public class PackageInfoWithBuild
{
public BuildMode buildMode;
public string packageName;
}
[Serializable]
public class AppPackageInfoWithBuild : PackageInfoWithBuild
{
}
[Serializable]
public class DlcPackageInfoWithBuild : PackageInfoWithBuild
{
public bool withoutPlatform = false;
[Tooltip("If version is null or empty will auto set newset package version by date")]
public string dlcVersion;
}
- Fixed unprocessed request error bug issue.
Release v2.9.4
[2.9.4] - 2023-11-06
- Updated UniMachine (Blackboard).
- Updated UniTask to v2.5.0.
- Renamed GetAllScene to GetAllScenes in CoreFrames.USFrame.
public static Scene[] GetAllScenes(params string[] sceneNames)
public static Scene[] GetAllScenes(params int[] buildIndexes)
- Added CoreFrames.UIFrame, CoreFrames.SRFrame can control updates (enabledUpdate defaults is true, else are false).
public static bool ignoreTimeScale
public static bool enabledUpdate
public static bool enabledFixedUpdate
public static bool enabledLateUpdate
- Added FixedUpdate, LateUpdate behaviour to FrameBase (UIBase, SRBase, CPBase).
protected override void OnFixedUpdate(float dt) { }
protected override void OnLateUpdate(float dt) { }
- Added SetActiveSceneRootGameObjects method in CoreFrames.USFrame (Can control the active of scene root GameObjects).
public static void SetActiveSceneRootGameObjects(string sceneName, bool active, string[] withoutRootGameObjectNames = null)
public static void SetActiveSceneRootGameObjects(Scene scene, bool active, string[] withoutRootGameObjectNames = null)
- Added overload methods in CoreFrames.USFrame (LoadAdditiveSceneAsync has activeRootGameObjects param, can control the active of root GameObjects after the scene is loaded).
public static async UniTask LoadAdditiveSceneAsync(string sceneName, bool activeRootGameObjects = true, bool activateOnLoad = true, uint priority = 100, Progression progression = null)
public static async UniTask<T> LoadAdditiveSceneAsync<T>(string sceneName, bool activeRootGameObjects = true, bool activateOnLoad = true, uint priority = 100, Progression progression = null) where T : class
public static async UniTask LoadAdditiveSceneAsync(string packageName, string sceneName, bool activeRootGameObjects = true, bool activateOnLoad = true, uint priority = 100, Progression progression = null)
public static async UniTask<T> LoadAdditiveSceneAsync<T>(string packageName, string sceneName, bool activeRootGameObjects = true, bool activateOnLoad = true, uint priority = 100, Progression progression = null) where T : class
- Optmized code.