You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When changing the frame color of a DirectGui object, its' reported size is changed. But it still appears to be the same size on screen. This does not appear to happen with DirectFrame and DirectLabel, but most other DirectGui classes seems to be affected. Additionally it only happens when setting the frame color after object creation.
Edit: Apparently this also happens with frameTexture. Using something like this in the example below. button["frameTexture"] = "models/maps/circle.png"
Based on some quick testing, it looks to me like the bounds have not yet been (fully?) calculated as of the first call to "getBounds", but that setting a property (or certain properties) prompts the relevant object to perform the calculation.
This can be seen, I think, if one alters the test-program above such that the print-outs happen later. In my case, I had them run in response to a key-press, like so:
Description
When changing the frame color of a DirectGui object, its' reported size is changed. But it still appears to be the same size on screen. This does not appear to happen with DirectFrame and DirectLabel, but most other DirectGui classes seems to be affected. Additionally it only happens when setting the frame color after object creation.
Edit: Apparently this also happens with frameTexture. Using something like this in the example below.
button["frameTexture"] = "models/maps/circle.png"
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: