ui: experimental message box width auto-sizing #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "amr/rogged:msgfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I noticed that the "Descend to next floor? (Y/N)" messagebox was the wrong width. So I decided to do some quick math and try to work out the optimum sizing for each message.
As it is now, it's balanced for the exact font and size you're using, so if you change it the msg_ratio and possibly the width divisor would need to be tweaked again, though that's not too hard.
Down the line this could be automated as well, just by inputting the character width (if monospace) or at least average character width and then doing all calculations from that.
It works pretty well as far as I've tested it.
Weird, I clicked "assign to me" and it assigned you
I think "assign to me" doesn't work becauase you aren't a repository member. I'll add you as one, so it works in the future.