View Full Version : Hey Din...
Greebo
20th April 2009, 05:23 PM
What happens if I update a map and add rows or columns above or to the left of the map and the map is in use already?
WOuld the characters stay in their grid references? Or would adding a row to the left of the map move the characters too?
EricStratton
20th April 2009, 05:35 PM
I think it depends on which way you add. I think I've added to the left and everyone ended up shifted one.
Sagar
20th April 2009, 07:22 PM
When I did that, the characters shifted appropriately.
Greebo
21st April 2009, 04:37 PM
http://www.primeaxiom.com/rpgt/scene.asp?ID=di728da5gqjngfjnlu4idngkdkc6xmt1qhzmt 15ymfzqq2bf83ov31r5rkhffth7
Ok, so when you have a map in use, don't add to the left or top and save it, or the scene will be all whacko.
No big :)
Zyzzyx
21st April 2009, 05:08 PM
Something changed with the map pages... now the popup info for each character flickers like crazy instead of just showing up and behaving itself.
This is in Firefox on my Linux system.
*grabs the netbook to test there*
Same flicker in FF on Windows, acting a bit odd in IE as well. *shrug*
Greebo
21st April 2009, 05:11 PM
Its the layering. You mouse over the avatar, it senses the mouse, it pops up the info, but that obscures the layer with the avatar, so it takes the info away, and...
Cycle
Sagar
21st April 2009, 05:58 PM
It didn't do that before...
Greebo
21st April 2009, 06:36 PM
It has to be a side effect of the changes Din made to allow larger than 1 square images.
DinbinFanfoom
21st April 2009, 07:07 PM
It is. "position: absolute" has all kinds of impact... I'll try to resolve it tonight.
Greebo
21st April 2009, 07:27 PM
I assume that when the mouse is over an avatar, you are either setting visible to true on the description layer, or you are moving it from off screen onto the view area, or you are adding it as a new element outright. (I haven't looked at the code)
In any case, add a mouseover eventhandler to the description to match the mouseover eventhandler for the avatar.
Greebo
21st April 2009, 07:29 PM
<DIV STYLE="position:absolute;"><IMG SRC='images/avatars/fighter-grey3.gif' BORDER=0 onMouseOver="document.all.popup11_2.className='popupv';" onMouseOut="document.all.popup11_2.className='popup';"></DIV><DIV CLASS="popup" ID="popup11_2"><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=1 WIDTH=140 BGCOLOR="#FFFFFF"><TR><TD CLASS="button-normal">Tor Shere</TD></TR><TR><TD CLASS="popupbody" ALIGN=CENTER>Level 1 Avenger (XP: 0)</TD></TR><TR><TD CLASS="popupbody" ALIGN=CENTER>HP: 28/28</TD></TR><TR><TD CLASS="popupbody" ALIGN=CENTER>AP: 1; </TD></TR></TABLE></DIV>
becomes
<DIV STYLE="position:absolute;"><IMG SRC='images/avatars/fighter-grey3.gif' BORDER=0 onMouseOver="document.all.popup11_2.className='popupv';" onMouseOut="document.all.popup11_2.className='popup';"></DIV><DIV CLASS="popup" ID="popup11_2" onMouseOver="document.all.popup11_2.className='popupv';" onMouseOut="document.all.popup11_2.className='popup';"><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=1 WIDTH=140 BGCOLOR="#FFFFFF"><TR><TD CLASS="button-normal">Tor Shere</TD></TR><TR><TD CLASS="popupbody" ALIGN=CENTER>Level 1 Avenger (XP: 0)</TD></TR><TR><TD CLASS="popupbody" ALIGN=CENTER>HP: 28/28</TD></TR><TR><TD CLASS="popupbody" ALIGN=CENTER>AP: 1; </TD></TR></TABLE></DIV>
Greebo
21st April 2009, 07:29 PM
That should take care of it
DinbinFanfoom
21st April 2009, 11:55 PM
Nicely done, Chuck. Thought it was something like that.
Shiz
22nd April 2009, 10:00 AM
I don't see any difference in those two lines of code...and I looked, too!
Greebo
22nd April 2009, 10:01 AM
The second div has mouseover code like the first. In the first HTML block, it did not.
DinbinFanfoom
22nd April 2009, 10:12 AM
The second div has mouseover code like the first. In the first HTML block, it did not.
I used a modified version that used "this." to save a few characters. :P
It worked for you guys, I assume?
EricStratton
22nd April 2009, 10:27 AM
Working great. Good job.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.