clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
166 stars 41 forks source link

Tooltips not displaying properly #837

Closed makrohn closed 12 years ago

makrohn commented 12 years ago

After hotspot refactor, tooltips aren't showing up on barrels, crates, etc properly. I tried changing from hotspot=location to hotspot=X,Y,W,H, but that didn't solve the issue.

makrohn commented 12 years ago

(For reference, I checked this with one of the supply crates in the goblin tentsite/enemygroup nearest the Ancient Temple, and clicking spawned the loot properly, but there was no tooltip on the crate)

clintbellanger commented 12 years ago

MapRenderer::checkTooltip() needs to be redone. It should use a similar checkPixel logic as actually clicking.

The check tile loop can probably be factored out of checkEventClick() so that both it and checkTooltip() can use the same logic.