[0.17.31][modding, guiStyles] graphical_set definition not working as expected

This subforum contains all the issues which we already resolved.
eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

[0.17.31][modding, guiStyles] graphical_set definition not working as expected

Post by eduran »

I tried to make a custom frame with rounded edges left, bottom and right. The top is supposed to be cut off. However, when removing the top rounded corners, the corners at the bottom are no longer rendered correctly.
The image below shows a test setup. The frame on the left is the default style with rounded edges on all sides. The frame in the middles has no edge at the top, but still at the top corners. The frame on the right has no top corners and incorrect bottom corners.
frame_issue.JPG
frame_issue.JPG (64.6 KiB) Viewed 1876 times
This is the code I use to create the rightmost frame:

Code: Select all

data.raw["gui-style"].default["frame_without_top"] = {
  type = "frame_style",
  graphical_set = {
    base = {
      left = {x = 68, y = 8, width = 8, height = 1},
      left_bottom = {x = 68, y = 9, width = 8, height = 8}, --bottom corners still defined as before
      center = {x = 76, y = 8, width = 1, height = 1},
      bottom = {x = 76, y = 9, width = 1, height = 8},
      right = {x = 77, y = 8, width = 8, height = 1},
      right_bottom = {x = 77, y = 9, width = 8, height = 8} --bottom corners still defined as before
    }
  }
}
Minimal example mod is attached. Press CTRL+SHIFT+E to show/hide three frames, as seen in the screenshot above.
Attachments
UI_test_0.0.1.zip
(1.36 KiB) Downloaded 123 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14341
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.31][modding, guiStyles] graphical_set definition not working as expected

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”