public virtual bool select_unit() { Unit_Selected = true; OnUnitSelected(new EventArgs()); Item_Window_1.ShowHeader(); return(true); }
private void CreateItemWindow(int actorId, Vector2 loc) { var window = new Window_Command_Item_Preparations( actorId, loc, true, true); window.stereoscopic = Config.PREPITEM_UNIT_DEPTH; window.active = true; window.ShowHeader(); Window = window; }
public override void refresh() { Funds_Value.text = Global.battalion.gold.ToString(); // Item Windows if (!Trading) { Item_Window_1 = GetItemWindow(item_window_1_loc(), true); if (Unit_Selected && !Trading) { Item_Window_1.ShowHeader(); } Item_Window_2 = null; } else { Item_Window_2 = GetItemWindow(item_window_2_loc(), false); } }