Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
    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();
    }
Ejemplo n.º 3
0
    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);
    }
Ejemplo n.º 4
0
    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();
    }
Ejemplo n.º 5
0
    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());
    }