make formspec mouseover highlighting work again

This commit is contained in:
Vanessa Dannenberg
2021-03-04 10:18:33 -05:00
parent 1ad4366d9c
commit bd7531c021
18 changed files with 38 additions and 26 deletions

View File

@@ -32,7 +32,7 @@ minetest.register_craft({
local function make_reactor_formspec(meta)
local f = "size[8,9]"..
"listcolors[#00000000;#00000000;#00000000;"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..

View File

@@ -20,7 +20,7 @@ local workshop_demand = {5000, 3500, 2000}
local workshop_formspec =
"size[8,9;]"..
"listcolors[#00000000;#00000000;#00000000;"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..

View File

@@ -15,7 +15,7 @@ minetest.register_craft({
local machine_name = S("Fuel-Fired Alloy Furnace")
local formspec =
"size[8,9]"..
"listcolors[#00000000;#00000000;#00000000;"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
@@ -129,7 +129,7 @@ minetest.register_abm({
technic.swap_node(pos, "technic:coal_alloy_furnace_active")
meta:set_string("formspec",
"size[8,9]"..
"listcolors[#00000000;#00000000;#00000000;"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..

View File

@@ -146,7 +146,7 @@ local function make_constructor(mark, length)
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local formspec = "size[8,9;]"..
"listcolors[#00000000;#00000000;#00000000;"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..

View File

@@ -56,7 +56,7 @@ local function set_injector_formspec(meta)
local is_stack = meta:get_string("mode") == "whole stacks"
meta:set_string("formspec",
"size[8,9;]"..
"listcolors[#00000000;#00000000;#00000000;"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..

View File

@@ -162,7 +162,7 @@ function technic.register_battery_box(data)
local formspec =
"size[8,9]"..
"listcolors[#00000000;#00000000;#00000000;"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..

View File

@@ -36,7 +36,7 @@ function technic.register_generator(data)
local generator_formspec =
"size[8,9;]"..
"listcolors[#00000000;#00000000;#00000000;"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..

View File

@@ -51,7 +51,7 @@ function technic.register_base_machine(data)
local formspec =
"size[8,9;]"..
"listcolors[#00000000;#00000000;#00000000;"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..