Oops. Maybe I mis-described the problem, or didn't describe it enough. Sorry about that.
I've now looked into this a little more, and I still think the bigmap isn't showing how it ideally should. For a good example of the problem, note the blue star of Ultima. In the actual bigmap, it's a single star. In the plugin, it's a blue bar. This happens with all objects in Vidblain though.
For a screen shot of the original bigmap, see
[img]http://frostblade.net/aardwolf/vidblain_actual.png[/img]
The cause of this is that the bigmap plugin bases the brush based on the text color. Aardwolf exploits the fact that a space character doesn't have any text to color, so all of the maps and bigmaps "color bleed" (or at least that's what we would call it in Aardwolf. I realize now that color bleeding means an entirely different thing in this real world!)
See this screen shot for an example-- it is just Vidblain highlighted to show the foreground colors:
[img]http://frostblade.net/aardwolf/vidblain_highlighted.png[/img]
A possible fix, I thought, would be to check to see if the character is a space, and if so, set the foreground color to be the background color of the bigmap.
The small code changes on approx. line 210 in function Display_Styled_Line:
local forecolour = v.textcolour
if brush == 0 then
backcolour = v.textcolour
end -- if
if char == " " then
forecolour = background_colour -- invisible
end -- if
WindowCircleOp(win, 2, left, top, left + rectangle_size, top + rectangle_size,
forecolour, 5, 0, -- pen colour, null pen, pen width
backcolour, brush) -- brush colour, style
This makes things look much better-- see the following screenshot.
[img]http://frostblade.net/aardwolf/vidblain_better.png[/img]
It's now usable, but for some reason, there are several visual mistakes on Vidblain such as the vertical bar on the left and two squares that are cut off on the right. I haven't yet looked into those.
Edit: How do you get the images to show up in the post, Nick? Is that a moderator-only thing, or is it an undocumented forum code? |