public void ObjectInteractionGetInfo(UIControl playScreen, Component_GameMode gameMode, ref IComponent_InteractiveObject_ObjectInfo info) { info = new IComponent_InteractiveObject_ObjectInfo(); info.AllowInteract = AllowInteract; //info.DisplaySelectionRectangle = true; info.SelectionTextInfo.Add("Test message = " + Name); }
public void ObjectInteractionGetInfo(UIControl playScreen, Component_GameMode gameMode, ref IComponent_InteractiveObject_ObjectInfo info) { info = new IComponent_InteractiveObject_ObjectInfo(); info.AllowInteract = AllowInteract; info.SelectionTextInfo.Add(Name); info.DisplaySelectionRectangle = false; }
public virtual IComponent_InteractiveObject_ObjectInfo GetInteractiveObjectInfo(UIControl playScreen, IComponent_InteractiveObject obj) { IComponent_InteractiveObject_ObjectInfo result = null; obj.ObjectInteractionGetInfo(playScreen, this, ref result); if (result == null) { result = new IComponent_InteractiveObject_ObjectInfo(); } return(result); }
public void ObjectInteractionGetInfo(UIControl playScreen, Component_GameMode gameMode, ref IComponent_InteractiveObject_ObjectInfo info) { //take by a character var character = gameMode.ObjectControlledByPlayer.Value as Component_Character; if (character != null && character.ItemGetEnabledFirst() == null) { info = new IComponent_InteractiveObject_ObjectInfo(); info.AllowInteract = true; //CanTake; info.SelectionTextInfo.Add(Name); info.SelectionTextInfo.Add("Click mouse button to take. Press T to drop."); } }