Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
dassjosh committed Apr 30, 2024
2 parents 22afbce + e0faaac commit 0e45157
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Rust.UIFramework/Builder/BaseUiBuilder.Components.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Oxide.Ext.UiFramework.Colors;
using Oxide.Core;
using Oxide.Ext.UiFramework.Colors;
using Oxide.Ext.UiFramework.Controls;
using Oxide.Ext.UiFramework.Enums;
using Oxide.Ext.UiFramework.Offsets;
Expand Down Expand Up @@ -96,6 +97,7 @@ public UiRawImage WebImage(in UiReference parent, in UiPosition pos, in UiOffset
{
if (!url.StartsWith("http"))
{
Interface.Oxide.LogWarning($"WebImage Url '{url}' is not a valid url. If trying to use a png id please use {nameof(ImageFileStorage)} instead.");
return UiRawImage.CreateDefault(pos, offset);
}

Expand Down Expand Up @@ -123,6 +125,7 @@ public UiRawImage ImageFileStorage(in UiReference parent, in UiPosition pos, in
{
if (!uint.TryParse(png, out uint _))
{
Interface.Oxide.LogWarning($"Image PNG '{png}' is not a valid uint. If trying to use a url please use WebImage instead.");
return UiRawImage.CreateDefault(pos, offset);
}

Expand Down

0 comments on commit 0e45157

Please sign in to comment.