Skip to content

Commit f54e409

Browse files
committed
Globals.ContentManager? => GameContentManager.Current
1 parent 63ffb04 commit f54e409

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Intersect.Client.Core/Interface/Game/Bag/BagItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public override void Update()
217217
return;
218218
}
219219

220-
var itemTexture = Globals.ContentManager?.GetTexture(Framework.Content.TextureType.Item, descriptor.Icon);
220+
var itemTexture = GameContentManager.Current.GetTexture(Framework.Content.TextureType.Item, descriptor.Icon);
221221
if (itemTexture != default)
222222
{
223223
Icon.Texture = itemTexture;

Intersect.Client.Core/Interface/Game/Bank/BankItem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public override bool DragAndDrop_HandleDrop(Package package, int x, int y)
249249

250250
#endregion
251251

252-
public new void Update()
252+
public override void Update()
253253
{
254254
if (Globals.Me == default)
255255
{
@@ -282,7 +282,7 @@ public override bool DragAndDrop_HandleDrop(Package package, int x, int y)
282282
return;
283283
}
284284

285-
var itemTexture = Globals.ContentManager?.GetTexture(Framework.Content.TextureType.Item, descriptor.Icon);
285+
var itemTexture = GameContentManager.Current.GetTexture(Framework.Content.TextureType.Item, descriptor.Icon);
286286
if (itemTexture != default)
287287
{
288288
Icon.Texture = itemTexture;

Intersect.Client.Core/Interface/Game/Hotbar/HotbarItem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public override bool DragAndDrop_HandleDrop(Package package, int x, int y)
242242
return false;
243243
}
244244

245-
public void Update()
245+
public override void Update()
246246
{
247247
if (Globals.Me == null || Controls.ActiveControls == null)
248248
{
@@ -412,7 +412,7 @@ public void Update()
412412
if (_currentItem != null)
413413
{
414414
Icon.IsVisibleInTree = !isDragging;
415-
Icon.Texture = Globals.ContentManager.GetTexture(
415+
Icon.Texture = GameContentManager.Current.GetTexture(
416416
Framework.Content.TextureType.Item, _currentItem.Icon
417417
);
418418

Intersect.Client.Core/Interface/Game/Inventory/InventoryItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ public override void Update()
536536
return;
537537
}
538538

539-
var itemTexture = Globals.ContentManager?.GetTexture(Framework.Content.TextureType.Item, descriptor.Icon);
539+
var itemTexture = GameContentManager.Current.GetTexture(Framework.Content.TextureType.Item, descriptor.Icon);
540540
if (itemTexture != null)
541541
{
542542
Icon.Texture = itemTexture;

Intersect.Client.Core/Interface/Game/Spells/SpellItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public override void Update()
222222

223223
if (Path.GetFileName(Icon.Texture?.Name) != spell.Icon)
224224
{
225-
var spellIconTexture = Globals.ContentManager?.GetTexture(TextureType.Spell, spell.Icon);
225+
var spellIconTexture = GameContentManager.Current.GetTexture(TextureType.Spell, spell.Icon);
226226
if (spellIconTexture != null)
227227
{
228228
Icon.Texture = spellIconTexture;

0 commit comments

Comments
 (0)