You need to be in court yesterday. Talk to an attorney TODAY. Do not sit on your rights, otherwise you will lose them. This is a very complicated area of law, handling it on your own will not end well. If you can't afford an attorney, contact Prairie State Legal Services or your county bar association.
Again, do not sit on this.
You can file Petitions immediately to have the child brought back to Illinois and for Custody of your daughter. This is a complicated matter however because there is another State involved. You should act right away however, I assume your child has lived the past 6 months in Illinois, if that is correct, Illinois is most likely the appropriate jurisdiction for this case to be heard. If you wait, that could change and Texas could become the child's "home state". In any event you will need the assistance of an attorney immediately and should contact one with experience in interstate custody cases.
Sign up to receive a 3-part series of useful information and advice about child custody law.