Page 1 of 1

How do I also 'color' the first table entry?

Posted: Tue Sep 27, 2016 4:31 pm
by MrDoomah
So deriving from the "browse_games_table_style" I have created the following table style:

Code: Select all

data.raw["gui-style"].default.row_table_style = 
    {
      type = "table_style",
      cell_padding = 5,
      horizontal_spacing=0,
      vertical_spacing=0,
      odd_row_graphical_set =
      {
        type = "composition",
        filename = "__core__/graphics/gui.png",
        priority = "extra-high-no-scale",
        corner_size = {3, 3},
        position = {8, 0}
      },
      even_row_graphical_set =
      {
        type = "composition",
        filename = "__core__/graphics/gui.png",
        priority = "extra-high-no-scale",
        corner_size = {3, 3},
        position = {8, 0}
      }
    }
However, when using it in game, it doesn't fill in the first row:
Naamloos.png
Naamloos.png (1.8 MiB) Viewed 1025 times
What do I do wrong?

Re: How do I also 'color' the first table entry?

Posted: Tue Sep 27, 2016 7:39 pm
by aubergine18
That's possibly a bug - can you upload a small test mod that isolates the issue?

Also, does `even_row_graphical_set` work? I've never seem it in any of the docs or any of the base game style prototypes.

Re: How do I also 'color' the first table entry?

Posted: Tue Sep 27, 2016 8:59 pm
by MrDoomah
aubergine18 wrote:
Also, does `even_row_graphical_set` work? I've never seem it in any of the docs or any of the base game style prototypes.
Yes it does, removing that part will make every other row not have a graphic just like the first set. 'row_graphical_set' and 'graphical_set' on their own do nothing as far as I can see.

I've used it in my mod: What is it used for? Version 1.1.0 is using this in the search bar.