<NME> chains.cs
<BEF> ﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

	/*GUI Element for switching panel displays but also controls which other GUI elements are displayed.*/
	public static int ActiveControl;
	public static int setControl=-1;
	static GameObject ControlParent;
	public void OnClick()
	{
	if (Dragging==true){return;}
		base.Start ();
		GRLoader Chains = new GRLoader(GRLoader.CHAINS_GR);
		this.GetComponent<RawImage>().texture=Chains.LoadImageAt(0);
	}

	public void OnClick()
	{
	if (Dragging==true){return;}
	if (UWHUD.instance.isRotating==true){return;}

	 switch (ActiveControl)
		{
		case UWHUD.HUD_MODE_INVENTORY://Inventory -> Stats
			ActiveControl=UWHUD.HUD_MODE_STATS;
			break;
		case UWHUD.HUD_MODE_STATS://Stats -> Inventory
			ActiveControl=UWHUD.HUD_MODE_INVENTORY;
			break;
		case UWHUD.HUD_MODE_RUNES://Magic -> Inventory
		}
	}

	public static GameObject EnableDisableControl(string ControlName, bool targetState)
	{
		if (ControlParent==null)
			{

	public void Refresh()
	{
		UWHUD.instance.RefreshPanels(ActiveControl);
	}
}
	}


	public static void Refresh()
	{
		bool InventoryEnabled=false;
		bool RuneBagEnabled=false;

<MSG> Updates to chain control
<DFF> @@ -5,7 +5,7 @@ public class chains : GuiBase_Draggable {
 	/*GUI Element for switching panel displays but also controls which other GUI elements are displayed.*/
 	public static int ActiveControl;
 	public static int setControl=-1;
-	static GameObject ControlParent;
+	public GameObject ControlParent;
 	public void OnClick()
 	{
 	if (Dragging==true){return;}
@@ -31,7 +31,7 @@ public class chains : GuiBase_Draggable {
 		}
 	}
 
-	public static GameObject EnableDisableControl(string ControlName, bool targetState)
+	public GameObject EnableDisableControl(string ControlName, bool targetState)
 	{
 		if (ControlParent==null)
 			{
@@ -52,7 +52,7 @@ public class chains : GuiBase_Draggable {
 	}
 
 
-	public static void Refresh()
+	public void Refresh()
 	{
 		bool InventoryEnabled=false;
 		bool RuneBagEnabled=false;

Updates to chain control