Dreamer,
What exactly is going on? I don't see any problems with this. I don't know how much you know so I will start at the basics.
An EyePoint selects and centers on a unit.
An EyeDropdown supplies a list of EyePoint locations so you can select 1 to apply the EyePoint to (in English, you pick 1 to go to).
EyePoint Syntax: EyePoint(Location)
EyeDropdown Syntax: EyeDropdown(StartIndexNumber, ListVariable)
ListVariable can be any BuiltIn variable that can be used as a list. (Currently that is Unit, City or Discovery. Unit & City provide locations while Discovery provides research items. Hmm, research item huh?)
If you click on ONLY 1 unit, it automatically selects it. Since this is what EyePoint is for, it has already been done so EyeDropdown does not have to do anything. Thus no list is produced. You can still click on the EyePoint in the AlertBox but you won't be able to tell anything is happening. So just close the box out.
If you click on 2 or more units, the Alertbox has the normal EyePoint PLUS a dropdown list to the right of that. Clicking on the dropdown list brings up the list of units in that tile. When you click on one of the selections, it selects that unit. Open the dropdown list again, select another units and it selects that one. You can keep doing this until you close the Alertbox.
Since you are using this to find out how many units are in a stack, you are going to have to put that information in your ID message. If you don't, the users are not going to have any idea what is going on.
I assume you want it done this way so you can actually see what unit it is, right?
Now for the bad part.
You will have to go back to using the spy if you want it done this way. Clicked.Unit won't work on cities, only tiles. When you click on a city, Clicked.City gets activated instead.
When you decide exactly what you want to do, let me know. If you want to use Clicked.City, we are going to have to merge what you want in with the Clicked.City code I have. Since you weren't interested in my code above, I took Clicked.City into a whole new realm all its own.
Don
[This message has been edited by skorpion59 (edited January 08, 2000).]
What exactly is going on? I don't see any problems with this. I don't know how much you know so I will start at the basics.
An EyePoint selects and centers on a unit.
An EyeDropdown supplies a list of EyePoint locations so you can select 1 to apply the EyePoint to (in English, you pick 1 to go to).
EyePoint Syntax: EyePoint(Location)
EyeDropdown Syntax: EyeDropdown(StartIndexNumber, ListVariable)
ListVariable can be any BuiltIn variable that can be used as a list. (Currently that is Unit, City or Discovery. Unit & City provide locations while Discovery provides research items. Hmm, research item huh?)
If you click on ONLY 1 unit, it automatically selects it. Since this is what EyePoint is for, it has already been done so EyeDropdown does not have to do anything. Thus no list is produced. You can still click on the EyePoint in the AlertBox but you won't be able to tell anything is happening. So just close the box out.
If you click on 2 or more units, the Alertbox has the normal EyePoint PLUS a dropdown list to the right of that. Clicking on the dropdown list brings up the list of units in that tile. When you click on one of the selections, it selects that unit. Open the dropdown list again, select another units and it selects that one. You can keep doing this until you close the Alertbox.
Since you are using this to find out how many units are in a stack, you are going to have to put that information in your ID message. If you don't, the users are not going to have any idea what is going on.
I assume you want it done this way so you can actually see what unit it is, right?
Now for the bad part.
You will have to go back to using the spy if you want it done this way. Clicked.Unit won't work on cities, only tiles. When you click on a city, Clicked.City gets activated instead.
When you decide exactly what you want to do, let me know. If you want to use Clicked.City, we are going to have to merge what you want in with the Clicked.City code I have. Since you weren't interested in my code above, I took Clicked.City into a whole new realm all its own.
Don
[This message has been edited by skorpion59 (edited January 08, 2000).]
Comment