Wider error notice boxes?
Posted: Fri Dec 04, 2020 1:15 am
Intro
You can safely skip to the TL;DR. I just go over details and context.Background
So with longer file names or bigger folder structures or function names, it's not uncommon to see error notice boxes like these: where the lines start with:- __modname__/
- 'function_name'
- <__modname__/file name because the function doesn't have a name:line>
i personally had a hard time reading those kinds of stack traces, so i made this tiny mod
data.lua:
Code: Select all
local styles = data.raw["gui-style"]["default"]
styles.notice_textbox.maximal_width = 450 * 2 -- double the previous width
Note
Yes this is a crafted error from a testing mod of mine, so not a "real world example". But i literally just have 1 actual mod which is too small to demonstrate what i mean, and imo this is still close enough to a real world example. I do work with my test mods after all, and i'm not the only one doing that.And i know this might look minor especially with the debugger, but looking at screenshots of other people's errors in the discord i've especially noticed the difference to what i'm now used to - the wider boxes.
TL;DR / Question
i was wondering if i was the only one who likes looking at the wider box much more, because if there are a lot of people agreeing with me i would ask for this to be changed in the base game instead of me releasing that mod for the people who do care (which has the side effect of some other notice boxes potentially getting wider, but i couldn't find/think of one that would get stretched more)And of course, as usual, i might be overlooking something.