Research queue


Allows players to queue research, view research by required science packs, and automatically queue prerequisites for desired tech. Special thanks to Chrisgbk for 0.16 update.

Utilities
6 years ago
0.13 - 0.16
82

b Does not support mods with 32px icons.

7 years ago

Factorio doesn't start if I use ur mod with any other mod, that uses 32px icons for research. (for example "waterfill", "waterfill balanced", "Tree Saplings") Probably many more but that are the ones I know of.
Can u add 32px image support?

7 years ago
(updated 7 years ago)

Yep, same for the "Tesla Turrets" mod. The error thrown:

Failed to load mods: The given sprite rectangle (left_top=0x0, right_bottom=64x64) is outside the actual sprite size (left_top=0x0, right_bottom=32x32).
Sprite name: _Tesla_Turret__/graphics/entity/tesla-turret/tesla-turret-icon.png.
If this is being used as an icon you may need to define the icon_size property.: _Tesla_Turret__/graphics/entity/tesla-turret/tesla-turret-icon.png.

I have an somewhat easy fix that works for me, first extract the whole "research-queue_1.5.1" folder into your mods folder "mods/research-queue_1.5.1"
Now copy the contents of my gui.lua into your gui.lua which you find in the sub-folder "prototypes"

Below is my Gui.lua copy everything starting from function get_size


function get_size(tech)
if tech.icon_size then return tech.icon_size
elseif string.find(tech.icon,"base") then return 128
else return 32 end
end

for k, tech in pairs(data.raw.technology) do
if tech.icon then
data.raw["gui-style"].default["rq-tech"..tech.name] =
{
type = "frame_style",
width = 32,
height = 32,
scalable = true,
graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = tech.icon,
priority = "extra-high-no-scale",
width = get_size(tech),
height = get_size(tech),
x = 0,
y = 0
}
},
align = "center",
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
flow_style =
{
horizontal_spacing = 0,
vertical_spacing = 0
}
}
data.raw["gui-style"].default["rq-tech"..tech.name.."small"] =
{
type = "frame_style",
width = 32,
height = 32,
scalable = true,
graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = tech.icon,
priority = "extra-high-no-scale",
width = get_size(tech),
height = get_size(tech),
x = 0,
y = 0
}
},
align = "center",
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
flow_style =
{
horizontal_spacing = 0,
vertical_spacing = 0
}
}
end
end

for k, tool in pairs(data.raw.tool) do
if tool.icon then
data.raw["gui-style"].default["rq-tool"..tool.name] =
{
type = "checkbox_style",
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
width = 32,
height = 32,
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
default_background =
{
filename = tool.icon,
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
},
hovered_background =
{
filename = tool.icon,
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
},
clicked_background =
{
filename = tool.icon,
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
},
checked =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 96,
y = 64
}
}
data.raw["gui-style"].default["rq-tool"..tool.name.."frame"] =
{
type = "frame_style",
width = 20,
height = 20,
scalable = true,
graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = tool.icon,
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
}
},
align = "left",
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
flow_style =
{
horizontal_spacing = 0,
vertical_spacing = 0
},
font = "rq-label-text"
}
end

end

if bobmods ~= nil then
if bobmods.modules ~= nil then
log("research queue: Found Bob mods modules")
data.raw["gui-style"].default["rq-bobsmodules"] =
{
type = "checkbox_style",
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
width = 32,
height = 32,
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
default_background =
{
filename = "bobmodules/graphics/icons/god-module.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
},
hovered_background =
{
filename = "bobmodules/graphics/icons/god-module.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
},
clicked_background =
{
filename = "bobmodules/graphics/icons/god-module.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
},
checked =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 96,
y = 64
}
}
end
end

if data.raw.technology["alien-research"] then
log("research queue: Found Bob mods aliens")
data.raw["gui-style"].default["rq-bobsalien"] =
{
type = "checkbox_style",
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
width = 32,
height = 32,
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
default_background =
{
filename = "base/graphics/icons/alien-artifact.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
},
hovered_background =
{
filename = "base/graphics/icons/alien-artifact.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
},
clicked_background =
{
filename = "base/graphics/icons/alien-artifact.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
},
checked =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 96,
y = 64
}
}
end

data.raw["gui-style"].default["rq-top-button"] =
{
type = "button_style",
parent = "button_style",
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
}

data.raw["gui-style"].default["rq-done-frame"] =
{
type = "frame_style",
width = data.raw["gui-style"].default["rq-techautomation"].width +4,
height = data.raw["gui-style"].default["rq-techautomation"].height +4,
scalable = false,
align = "center",
graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "core/graphics/gui.png",
priority = "extra-high-no-scale",
width = 36,
height = 36,
x = 111,
y = 108
}
},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
flow_style =
{
horizontal_spacing = 0,
vertical_spacing = 0
}
}

data.raw["gui-style"].default["rq-inq-frame"] =
{
type = "frame_style",
width = data.raw["gui-style"].default["rq-techautomation"].width +4,
height = data.raw["gui-style"].default["rq-techautomation"].height +4,
scalable = false,
align = "center",
graphical_set =
{
type = "monolith",
top_monolith_border = 2,
right_monolith_border = 2,
bottom_monolith_border = 2,
left_monolith_border = 2,
monolith_image =
{
filename = "core/graphics/gui.png",
priority = "extra-high-no-scale",
width = 36,
height = 36,
x = 111,
y = 72
}
},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
flow_style =
{
horizontal_spacing = 0,
vertical_spacing = 0
}
}

data.raw["gui-style"].default["rq-available-frame"] =
{
type = "frame_style",
width = data.raw["gui-style"].default["rq-techautomation"].width +4,
height = data.raw["gui-style"].default["rq-techautomation"].height +4,
scalable = false,
align = "center",
graphical_set =
{
type = "monolith",
top_monolith_border = 2,
right_monolith_border = 2,
bottom_monolith_border = 2,
left_monolith_border = 2,
monolith_image =
{
filename = "core/graphics/gui.png",
priority = "extra-high-no-scale",
width = 36,
height = 36,
x = 75,
y = 72
}
},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
flow_style =
{
horizontal_spacing = 0,
vertical_spacing = 0
}
}

data.raw["gui-style"].default["rq-button"] =
{
type = "button_style",
font = "default-button",
default_font_color = {r = 1, g = 1, b = 1},
align = "center",
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
width = data.raw["gui-style"].default["rq-techautomation"].width,
height = data.raw["gui-style"].default["rq-techautomation"].height,
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
default_graphical_set =
{
type = "monolith",
top_monolith_border = 2,
right_monolith_border = 2,
bottom_monolith_border = 2,
left_monolith_border = 2,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 96,
y = 96
}
},
hovered_font_color = {r = 1, g = 1, b = 1},
hovered_graphical_set =
{
type = "monolith",
top_monolith_border = 2,
right_monolith_border = 2,
bottom_monolith_border = 2,
left_monolith_border = 2,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
}
},
clicked_font_color = {r = 1, g = 1, b = 1},
clicked_graphical_set =
{
type = "monolith",
top_monolith_border = 2,
right_monolith_border = 2,
bottom_monolith_border = 2,
left_monolith_border = 2,
monolith_image =
{
filename = "core/graphics/gui.png",
priority = "extra-high-no-scale",
width = 36,
height = 36,
x = 148,
y = 0
}
},
}
data:extend(
{{
type = "font",
name = "rq-label-text",
from = "default-bold",
size = 14,
border = true,
border_color = {}
}})

data.raw["gui-style"].default["rq-label"] =
{
type = "label_style",
parent = "label_style",
font = "rq-label-text",
-- font = "default-bold",
scalable = true,
width = data.raw["gui-style"].default["rq-techautomation"].width,
height = data.raw["gui-style"].default["rq-techautomation"].height,
}

data.raw["gui-style"].default["rq-flow"] =
{
type = "flow_style",
horizontal_spacing = 0,
vertical_spacing = 0,
max_on_row = 0,
resize_row_to_width = true,
resize_to_row_height = true
}

data.raw["gui-style"].default["rq-frame"] =
{
type = "frame_style",
font = "default-frame",
font_color = {r = 1, g = 1, b = 1},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
graphical_set =
{
type = "composition",
filename = "core/graphics/gui.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {8, 0}
},
flow_style =
{
horizontal_spacing = 1,
vertical_spacing = 1
}
}

data.raw["gui-style"].default["rq-up-button"] =
{
type = "button_style",
font = "default-button",
align = "center",
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
width = 32,
height = 16,
default_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 16,
x = 32,
y = 0
}
},
hovered_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 16,
x = 64,
y = 0
}
},
clicked_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 16,
x = 96,
y = 0
}
},
disabled_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 16,
x = 96,
y = 96
}
}
}

data.raw["gui-style"].default["rq-down-button"] =
{
type = "button_style",
font = "default-button",
align = "center",
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
top_padding = 1,
right_padding = 1,
bottom_padding = 1,
left_padding = 1,
width = 32,
height = 16,
default_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 16,
x = 32,
y = 16
}
},
hovered_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 16,
x = 64,
y = 16
}
},
clicked_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 16,
x = 96,
y = 16
}
},
disabled_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 16,
x = 96,
y = 96
}
}
}

data.raw["gui-style"].default["rq-cancel-button"] =
{
type = "button_style",
font = "default-button",
align = "center",
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
top_padding = 1,
right_padding = 1,
bottom_padding = 1,
left_padding = 1,
width = 32,
height = 32,
default_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 32,
y = 32
}
},
hovered_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 64,
y = 32
}
},
clicked_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 96,
y = 32
}
},
disabled_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 96,
y = 96
}
}
}

data.raw["gui-style"].default["rq-text-checkbox"] =
{
type = "checkbox_style",
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
width = 32,
height = 32,
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
default_background =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 64
},
hovered_background =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 32,
y = 64
},
clicked_background =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 64,
y = 64
},
checked =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 36,
height = 36,
x = 96,
y = 64
}
}

data.raw["gui-style"].default["rq-done-button"] =
{
type = "button_style",
font = "default-semibold",
default_font_color = {r = 1, g = 1, b = 1},
align = "center",
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
default_graphical_set =
{
type = "composition",
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {0, 32}
},
hovered_font_color = {r = 1, g = 1, b = 1},
hovered_graphical_set =
{
type = "composition",
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {8, 32}
},
clicked_font_color = {r = 1, g = 1, b = 1},
clicked_graphical_set =
{
type = "composition",
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {16, 32}
}
}

data.raw["gui-style"].default["rq-inq-button"] =
{
type = "button_style",
font = "default-semibold",
default_font_color = {r = 1, g = 1, b = 1},
align = "center",
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
default_graphical_set =
{
type = "composition",
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {0, 40}
},
hovered_font_color = {r = 1, g = 1, b = 1},
hovered_graphical_set =
{
type = "composition",
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {8, 40}
},
clicked_font_color = {r = 1, g = 1, b = 1},
clicked_graphical_set =
{
type = "composition",
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {16, 40}
}
}

data.raw["gui-style"].default["rq-available-button"] =
{
type = "button_style",
font = "default-semibold",
default_font_color = {r = 1, g = 1, b = 1},
align = "center",
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
default_graphical_set =
{
type = "composition",
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {0, 48}
},
hovered_font_color = {r = 1, g = 1, b = 1},
hovered_graphical_set =
{
type = "composition",
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {8, 48}
},
clicked_font_color = {r = 1, g = 1, b = 1},
clicked_graphical_set =
{
type = "composition",
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
corner_size = {3, 3},
position = {16, 48}
}
}

data.raw["gui-style"].default["rq-scienceDone-checkbox"] =
{
type = "checkbox_style",
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
width = 32,
height = 32,
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
default_background =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 96
},
hovered_background =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 32,
y = 96
},
clicked_background =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 64,
y = 96
},
checked =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 96,
y = 64
}
}

data.raw["gui-style"].default["rq-table1"] =
{
type = "table_style",
horizontal_spacing = 2,
vertical_spacing = 2
}

data.raw["gui-style"].default["rq-table2"] =
{
type = "table_style",
horizontal_spacing = 6,
vertical_spacing = 6
}

data.raw["gui-style"].default["rq-compact-button"] =
{
type = "button_style",
font = "default-button",
align = "center",
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
width = 32,
height = 32,
default_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 128
}
},
hovered_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 32,
y = 128
}
},
clicked_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 64,
y = 128
}
}
}

data.raw["gui-style"].default["rq-extend-button"] =
{
type = "button_style",
font = "default-button",
align = "center",
scalable = false,
left_click_sound =
{
{
filename = "core/sound/gui-click.ogg",
volume = 1
}
},
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
width = 32,
height = 32,
default_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 160
}
},
hovered_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 32,
y = 160
}
},
clicked_graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "research-queue/graphics/gui_elements.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 64,
y = 160
}
}
}

data.raw["gui-style"].default["rq-clock"] =
{
type = "frame_style",
width = 20,
height = 20,
scalable = true,
graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "core/graphics/clock-icon.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
x = 0,
y = 0
}
},
align = "left",
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
flow_style =
{
horizontal_spacing = 0,
vertical_spacing = 0
},
font = "rq-label-text"
}

data.raw["gui-style"].default["rq-warning-icon"] =
{
type = "frame_style",
width = 80,
height = 71,
scalable = true,
graphical_set =
{
type = "monolith",
top_monolith_border = 0,
right_monolith_border = 0,
bottom_monolith_border = 0,
left_monolith_border = 0,
monolith_image =
{
filename = "core/graphics/warning-icon.png",
priority = "extra-high-no-scale",
width = 100,
height = 89,
x = 0,
y = 0
}
},
align = "center",
top_padding = 2,
right_padding = 2,
bottom_padding = 2,
left_padding = 2
}

7 years ago

Could I suggest you use a pastebin link in the future?

New response