After doing various gumps I'm starting to notice a trend, Gumps don't like to do calculations.
If I have a string to display a number that's say A + B, and don't include a null check, it will crash the shard.
Or if I do a tiledimage with a width that's determined by A + B it won't show the image at all.
The only work around I've found is to have the calculation done inside another class, and then in the gump constructor do something like: int Amirror = otherClass.A;
My question is, am I missing something ( aka sloppy work that I'm not aware of ) or is there a better way to do this?
If I have a string to display a number that's say A + B, and don't include a null check, it will crash the shard.
Or if I do a tiledimage with a width that's determined by A + B it won't show the image at all.
The only work around I've found is to have the calculation done inside another class, and then in the gump constructor do something like: int Amirror = otherClass.A;
My question is, am I missing something ( aka sloppy work that I'm not aware of ) or is there a better way to do this?