示例#1
0
    // Funciones publicas del menu, accedidas sobretodo desde InventoryIcon

    // Cambia el tooltip actual, llamada cuando el raton entra en un icono.
    public void SetNewTooltipItem(UpgradeData upg)
    {
        lastUpgradeReadedByTooltip = upg;
        if (upg == null)
        {
            tooltip.SetVisible(false);
        }
        else
        {
            tooltip.SetVisible(true);
            tooltip.SetNewInfo(upg.GetModName(), upg.GetModInfo_Description(), upg.GetModDescription_Enhancement(), upg.GetModDescription_Penalty(), upg.GetModDescription_Slot());
        }
    }