View Single Post
  #4  
Unread 03-19-2005, 03:26 AM
C0d3M0nk3y C0d3M0nk3y is offline
A Brown Bear
 
Join Date: Mar 2005
Server: Everfrost
Posts: 9
Default

Have you tried adding a data container to each window to soak up the index number for what spell is in that window. then having the cancel button retrieve that data to cancel the correct spell that is in that maintained slot ?
the data container should update with whater is in that slot when a new spell is casted.

so the progression would go something liek this:
Quote:
player logs in with 3 spells in the maintianed window
spell #1 { magi shielding } with index of 1.0 slot=1 container value = 1.0
spell #2 { vivid seal } with index of 2.0 in slot 2 container value = 2.0
spell #3 {gift of the magi} with index of 3.0 in slot 3 container value = 3.0
K so player decides that vivd seal expores and the caster recasts's it .
spell #4 { vivid seal} with index of 4.0 in slot 3 container=4.0 now since canceled the spell and the spell in slot 3 indexs up to slot 2 with a container value of 3.0
K so now we set the an OnMouseOver event to update the button with the correct index number to cancel whe pressed. this should work in thoery not quite sure that the ui will allow it to be done.
Reply With Quote