Page 1 of 1

Add table-header-sort-arrows to utility-sprites

Posted: Sat Apr 13, 2019 2:03 pm
by WIZ4
I want to use these cute arrows in gui elements. But they are not in the utility-sprites.lua
Screenshot_14.jpg
Screenshot_14.jpg (46.14 KiB) Viewed 1857 times
Please add them

Re: Add table-header-sort-arrows to utility-sprites

Posted: Sun Apr 14, 2019 10:32 am
by eduran
You can define your own sprites from those files.

Code: Select all

data:extend({
  {
    type = "sprite",
    name = "sprite_name",
    filename = "__core__/graphics/arrows/table-header-sort-arrow-down-active.png",
    width = 16,
    height = 16,
    scale = 1,
  }
)

Re: Add table-header-sort-arrows to utility-sprites

Posted: Sun Apr 14, 2019 4:15 pm
by WIZ4
eduran wrote:
Sun Apr 14, 2019 10:32 am
You can define your own sprites from those files.

Code: Select all

data:extend({
  {
    type = "sprite",
    name = "sprite_name",
    filename = "__core__/graphics/arrows/table-header-sort-arrow-down-active.png",
    width = 16,
    height = 16,
    scale = 1,
  }
)
But why, if they can just add to the utility-sprites? like most other icons

Re: Add table-header-sort-arrows to utility-sprites

Posted: Sun Apr 14, 2019 4:32 pm
by eduran
WIZ4 wrote:
Sun Apr 14, 2019 4:15 pm
But why, if they can just add to the utility-sprites? like most other icons
I added that code snippet so you could use it in case your request is rejected.

Re: Add table-header-sort-arrows to utility-sprites

Posted: Wed Apr 17, 2019 11:20 pm
by Rseding91
Table sort arrows are defined through the style for a given sortable table.