Skip to content

Commit

Permalink
Fix missing hunger texture in status screen
Browse files Browse the repository at this point in the history
  • Loading branch information
zeobviouslyfakeacc committed Jun 1, 2019
1 parent f19bad3 commit b5c268e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Patches/UIPanelPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ private static void Prefix(Panel_FirstAid __instance) {
GameObject storedCaloriesRow = NGUITools.AddChild(windChillRow.parent.gameObject, windChillRow.gameObject);
storedCaloriesRow.name = "StoredCaloriesWarmthLabel";
UISprite icon = storedCaloriesRow.transform.Find("Stat Icon").GetComponent<UISprite>();
icon.spriteName = "ico_HUD_hunger"; //"ico_Radial_food2";
icon.spriteName = "ico_status_hunger4"; // old: ico_HUD_hunger, ico_Radial_food2
icon.transform.localPosition += new Vector3(-1, 0); // Tiny position nudge to center icon properly
UILocalize nameLabel = storedCaloriesRow.transform.Find("Stat Label").GetComponent<UILocalize>();
nameLabel.key = "GAMEPLAY_CalorieStore";

Expand Down

0 comments on commit b5c268e

Please sign in to comment.