New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use map_y1 and map_y2 fields in Gui::DwarfmodeDims #981
Comments
Not map_y1/y2. Something like map_width/height_in_map_tiles. Examples of the things plugin may want to do:
|
A height and width wouldn't be consistent with the other fields. Anyway, what's the difference? Wouldn't you be able to get height and width with (map_y2 - map_y1) and (map_x2 - map_x1)? For your second point, you could use map_y1 and map_y2 and set the |
(map_x2 - map_x1) is usable of course, it just that max_x1/map_y1 do not make sense - they are "left/top edge of the map in 'map tiles'", while 'map tile' units exist only inside the map. As for the drawing, yes, that was the idea, I just mentioned it for the sake of completeness. |
map_x1 and map_y1 both being Anyway, it turns out that I did add map_y1/y2 in 2a2ab00, but didn't update anything to use them. |
Update: I got some work done on this a few weeks ago, although it's not finished (or merged). The map_x1/y1 fields are actually set properly in C++, and the Lua gui library is partially refactored to use the C++ function internally. |
My build scripts just noticed that we have a stable DFHack release, and that I was planning to check on this issue. So:
(No pressure, just to let me set the next build failure appropriately) |
Thanks for reminding me, but I somehow didn't get a notification for it, which is strange. Anyway, yes, I do expect to work on this before r2, and it should allow TwbT to avoid distributing those three plugins as well. That depends on @pronvit to modify TwbT to use the hooks and on us to merge in whatever changes he's made (I believe there were a couple mousequery modifications). |
I've fixed the three plugins here, and fixing Lua scripts wound up being pretty easy, so I'm closing this. |
Needed for #746, mifki/df-twbt#21
The text was updated successfully, but these errors were encountered: