public HullListEntry(Rect rect, ShipHullData HD, int index, ButtonPress callBack, ChangeSelectedIndex changeIndex) { baseRect = rect; hullData = HD; Index = index; buttonCallBack = callBack; changeSelectionIndex = changeIndex; Icon = hullData.GetIcon(); }
public void SetShipHullData(ShipHullData data, ButtonPress callBack, Select select) { shipHullData = data; buttonCallBack = callBack; selectCallBack = select; HullName.text = shipHullData.Name; HullClassification.text = shipHullData.Classification.ToString(); HullDescription.text = "Temp Description"; HullIcon.overrideSprite = shipHullData.GetIcon(); HullIcon.preserveAspect = true; }