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 StationHullListEntry(Rect rect, StationHullData hullData, int index, ButtonPress callBack, ChangeSelectedIndex changeIndex) { baseRect = rect; stationHullData = hullData; Index = index; buttonCallBack = callBack; changeSelectionIndex = changeIndex; Icon = stationHullData.GetIcon(); }
public EmpireAttributeEntry(Rect rect, KeyValuePair <string, EmpireAttribute> attribute, int index, ButtonPress callBack, ChangeSelectedIndex changeIndex) { baseRect = rect; Attribute = attribute; Index = index; buttonCallBack = callBack; changeSelectionIndex = changeIndex; DisplayName = ResourceManager.GetLocalization(Attribute.Value.Name); }
public FighterListEntry(Rect rect, FighterDefinition fighter, int index, ButtonPress callBack, ChangeSelectedIndex changeIndex) { baseRect = rect; fighterDefinition = fighter; Index = index; buttonCallBack = callBack; changeSelectionIndex = changeIndex; //Icon = fighterDefinition.GetIcon(); }
public EmpireListEntry(Rect rect, int index, EmpireDefinition empireDefinition, ChangeSelectedIndex changeIndex, ButtonPress buttonPress) { baseRect = rect; Index = index; changeSelectionIndex = changeIndex; Definition = empireDefinition; buttonCallBack = buttonPress; Rect EmpireFlagRect = new Rect(new Rect(baseRect.x, baseRect.y, baseRect.height, baseRect.height)); empireFlag = new EmpireFlag(EmpireFlagRect, Definition.FlagBackgroundIndex, Definition.FlagEmblemIndex, Definition.FlagBackgroundColor.GetColor(), Definition.FlagEmblemColor.GetColor()); }