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

Things that we aren't going to implement
Post Reply
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

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

Post 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 1812 times
Please add them
My native language is russian. Sorry if my messages are difficult to read.

eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

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

Post 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,
  }
)

User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

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

Post 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
My native language is russian. Sorry if my messages are difficult to read.

eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

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

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Table sort arrows are defined through the style for a given sortable table.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Won't implement”