rewrite most of the theming handling

fixes a number of bugs and glitches

this also brings in a major update to Unified Inventory
master
Vanessa Dannenberg 2021-03-10 15:38:57 -05:00
parent 31516acc88
commit 647605cc68
133 changed files with 1027 additions and 804 deletions

View File

@ -4,16 +4,3 @@ remove_items = -1
disable_fire = true
enable_mesh_cache = false
moreblocks.stairsplus_in_creative_inventory = false
dreambuilder_theme_form_bgcolor = #F0F0F0FF
dreambuilder_theme_btn_color = #B0B0B0FF
dreambuilder_theme_editor_text_color = #000000FF
dreambuilder_theme_editor_bg_color = #F0F0F0FF
dreambuilder_theme_listcolor_slot_bg_normal = #FFFFFF30
dreambuilder_theme_listcolor_slot_bg_hover = #E0E0E0
dreambuilder_theme_listcolor_slot_border = #606060
dreambuilder_theme_tooltip_bgcolor = #A0A0A0
dreambuilder_theme_tooltip_fontcolor = #FFF
dreambuilder_theme_window_darken = false
dreambuilder_theme_editor_border = false
dreambuilder_theme_image_button_borders = false

View File

@ -14,9 +14,10 @@ minetest.register_node("castle_storage:crate", {
local meta = minetest.get_meta(pos)
meta:set_string("formspec",
"size[8,9]"..
default.gui_bg ..
default.gui_bg_img ..
default.gui_slots ..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(0, -0.05, 8, 4, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.95, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.95, 8, 3, false)..
"list[current_name;main;0,0;8,5;]"..
"list[current_player;main;0,5;8,4;]"..
"listring[]")

View File

@ -6,9 +6,10 @@ local get_ironbound_chest_formspec = function(pos)
local spos = pos.x .. "," .. pos.y .. "," ..pos.z
local formspec =
"size[8,9]"..
default.gui_bg ..
default.gui_bg_img ..
default.gui_slots ..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(0, -0.05, 8, 4, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.95, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.95, 8, 3, false)..
"list[nodemeta:".. spos .. ";main;,0;8,4;]"..
"list[current_player;main;,5;8,4;]"..
"listring[]"

View File

@ -520,9 +520,3 @@ minetest.register_alias("caverealms:glow_gem_2", "caverealms:glow_gem")
minetest.register_alias("caverealms:glow_gem_3", "caverealms:glow_gem")
minetest.register_alias("caverealms:glow_gem_4", "caverealms:glow_gem")
minetest.register_alias("caverealms:glow_gem_5", "caverealms:glow_gem")
minetest.register_alias("caverealms:obsidian", "default:obsidian")
minetest.register_alias("caverealms:obsidian_1", "default:obsidian")
minetest.register_alias("caverealms:obsidian_2", "default:obsidian")
minetest.register_alias("caverealms:obsidian_3", "default:obsidian")
minetest.register_alias("caverealms:obsidian_4", "default:obsidian")

View File

@ -16,25 +16,25 @@ default.get_translator = S
minetest.register_on_joinplayer(function(player)
-- Set formspec prepend
local formspec =
"listcolors["..dreambuilder_theme.listcolor_slot_bg_normal..
";"..dreambuilder_theme.listcolor_slot_bg_hover..
";"..dreambuilder_theme.listcolor_slot_border..
";"..dreambuilder_theme.tooltip_bgcolor..
";"..dreambuilder_theme.tooltip_fontcolor.."]"..
"style_type[button;bgcolor="..dreambuilder_theme.btn_color.."]"..
"style_type[button_exit;bgcolor="..dreambuilder_theme.btn_color.."]"..
"style_type[image_button;bgcolor="..dreambuilder_theme.btn_color..
";border="..dreambuilder_theme.image_button_borders.."]"..
"style_type[image_button_exit;bgcolor="..dreambuilder_theme.btn_color..
";border="..dreambuilder_theme.image_button_borders.."]"..
"style_type[item_image_button;bgcolor="..dreambuilder_theme.btn_color..
";border="..dreambuilder_theme.image_button_borders.."]"
"listcolors["..dreambuilder_theme.listcolor_slot_bg_normal..
";"..dreambuilder_theme.listcolor_slot_bg_hover..
";"..dreambuilder_theme.listcolor_slot_border..
";"..dreambuilder_theme.tooltip_bgcolor..
";"..dreambuilder_theme.tooltip_fontcolor.."]"..
"style_type[button;bgcolor="..dreambuilder_theme.btn_color.."]"..
"style_type[button_exit;bgcolor="..dreambuilder_theme.btn_color.."]"..
"style_type[image_button;bgcolor="..dreambuilder_theme.btn_color..
";border="..dreambuilder_theme.image_button_borders.."]"..
"style_type[image_button_exit;bgcolor="..dreambuilder_theme.btn_color..
";border="..dreambuilder_theme.image_button_borders.."]"..
"style_type[item_image_button;bgcolor="..dreambuilder_theme.btn_color..
";border="..dreambuilder_theme.image_button_borders.."]"
local name = player:get_player_name()
local info = minetest.get_player_information(name)
if info.formspec_version > 1 then
formspec = formspec .. "background9[5,5;1,1;gui_formbg.png;true;10]"
formspec = formspec .. "background9[5,5;1,1;"..dreambuilder_theme.name.."_gui_formbg.png;true;10]"
else
formspec = formspec .. "background[5,5;1,1;gui_formbg.png;true]"
formspec = formspec .. "background[5,5;1,1;"..dreambuilder_theme.name.."_gui_formbg.png;true]"
end
player:set_formspec_prepend(formspec)

View File

@ -1,4 +1,4 @@
name = default
description = Minetest Game mod: default
optional_depends = player_api
depends = dreambuilder_gui_theming
depends = dreambuilder_theme_settings

Binary file not shown.

After

Width:  |  Height:  |  Size: 886 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

View File

@ -81,7 +81,9 @@ echo -e "\nBring all mods up-to-date from "$upstream_mods_path
cd $upstream_mods_path
# No trailing slashes on these items' paths!
LINK_MODS_LIST="my_mods/biome_lib \
LINK_MODS_LIST="
my_mods/biome_lib \
my_mods/coloredwood \
my_mods/currency \
my_mods/gloopblocks \
@ -149,12 +151,14 @@ my_mods/pipeworks \
RBAs_mods/unified_inventory \
Zeg9s_mods/ufos/ufos"
LINK_MODPACKS_LIST="$(ls -d my_mods/home_workshop_modpack/*/) \
LINK_MODPACKS_LIST="
$(ls -d my_mods/home_workshop_modpack/*/) \
$(ls -d my_mods/plantlife_modpack/*/) \
$(ls -d cheapies_mods/roads_modpack/*/) \
$(ls -d cool_trees_modpack/*/)"
COPY_MODPACKS_LIST="$(ls -d my_mods/homedecor_modpack/*/) \
COPY_MODPACKS_LIST="
$(ls -d my_mods/homedecor_modpack/*/) \
$(ls -d RBAs_mods/technic_modpack/*/) \
$(ls -d Philipbenrs_mods/castle-modpack/*/) \
$(ls -d worldedit_modpack/*/) \
@ -164,14 +168,14 @@ for i in $LINK_MODS_LIST; do
ln -s $upstream_mods_path"/"$i $workdir/mods
done
for i in $(echo $LINK_MODPACKS_LIST |sed "s:/ : :g; s:/$::"); do
ln -s $upstream_mods_path"/"$i $workdir/mods
done
for i in $COPY_MODS_LIST; do
rsync -a $upstream_mods_path"/"$i $workdir/mods --exclude .git*
done
for i in $(echo $LINK_MODPACKS_LIST |sed "s:/ : :g; s:/$::"); do
ln -s $upstream_mods_path"/"$i $workdir/mods
done
for i in $(echo $COPY_MODPACKS_LIST |sed "s:/ : :g; s:/$::"); do
rsync -a $upstream_mods_path"/"$i $workdir/mods --exclude .git*
done
@ -208,41 +212,42 @@ rm -rf $workdir/mods/worldedit_brush
# Create the standard in-game lightly-shaded theme, expand on it, make it user-configurable
cat > /tmp/listcolors << 'EOF'
"listcolors["..dreambuilder_theme.listcolor_slot_bg_normal..
";"..dreambuilder_theme.listcolor_slot_bg_hover..
";"..dreambuilder_theme.listcolor_slot_border..
";"..dreambuilder_theme.tooltip_bgcolor..
";"..dreambuilder_theme.tooltip_fontcolor.."]"..
EOF
cat > /tmp/herefileA << 'EOF'
"style_type[button;bgcolor="..dreambuilder_theme.btn_color.."]"..
"style_type[button_exit;bgcolor="..dreambuilder_theme.btn_color.."]"..
"style_type[image_button;bgcolor="..dreambuilder_theme.btn_color..
";border="..dreambuilder_theme.image_button_borders.."]"..
"style_type[image_button_exit;bgcolor="..dreambuilder_theme.btn_color..
";border="..dreambuilder_theme.image_button_borders.."]"..
"style_type[item_image_button;bgcolor="..dreambuilder_theme.btn_color..
";border="..dreambuilder_theme.image_button_borders.."]"
EOF
echo ' "listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..' > /tmp/LISTCOLORS_HIDE_SLOTS
LISTCOLORS_HIDE_SLOTS='"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..'
mv $workdir"/mods/dreambuilder_extras/minetest.conf" $workdir
##########
sed -i 's/"gui_hotbar_selected.png"/dreambuilder_theme.name.."_gui_hotbar_selected.png"/' \
$workdir"/mods/dreambuilder_hotbar/init.lua"
sed -i 's/"gui_hb_bg_"/dreambuilder_theme.name.."_gui_hb_bg_"/' \
$workdir"/mods/dreambuilder_hotbar/init.lua"
##########
sed -i "s/bgcolor\[.*\]//" \
$workdir"/mods/beds/init.lua"
##########
sed -i '/local formspec = \[\[/ , /\]\]/ {d}' \
$workdir"/mods/default/init.lua"
sed -i '/Set formspec prepend/ {
a \\t\tlocal formspec =
r /tmp/listcolors
r /tmp/herefileA
a \\t\t"listcolors["..dreambuilder_theme.listcolor_slot_bg_normal..
a \\t\t\t";"..dreambuilder_theme.listcolor_slot_bg_hover..
a \\t\t\t";"..dreambuilder_theme.listcolor_slot_border..
a \\t\t\t";"..dreambuilder_theme.tooltip_bgcolor..
a \\t\t\t";"..dreambuilder_theme.tooltip_fontcolor.."]"..
a \\t\t"style_type[button;bgcolor="..dreambuilder_theme.btn_color.."]"..
a \\t\t"style_type[button_exit;bgcolor="..dreambuilder_theme.btn_color.."]"..
a \\t\t"style_type[image_button;bgcolor="..dreambuilder_theme.btn_color..
a \\t\t\t";border="..dreambuilder_theme.image_button_borders.."]"..
a \\t\t"style_type[image_button_exit;bgcolor="..dreambuilder_theme.btn_color..
a \\t\t\t";border="..dreambuilder_theme.image_button_borders.."]"..
a \\t\t"style_type[item_image_button;bgcolor="..dreambuilder_theme.btn_color..
a \\t\t\t";border="..dreambuilder_theme.image_button_borders.."]"
}' $workdir"/mods/default/init.lua"
sed -i '/default.gui_survival_form/ {
@ -250,39 +255,74 @@ sed -i '/default.gui_survival_form/ {
a \\t\t\tdefault.gui_bg..
}' $workdir"/mods/default/init.lua"
sed -i 's/gui_formbg.png/"..dreambuilder_theme.name.."_gui_formbg.png/' \
$workdir"/mods/default/init.lua"
sed -i '/tableoptions/d' $workdir"/mods/default/craftitems.lua"
echo "depends = dreambuilder_gui_theming" >> $workdir"/mods/default/mod.conf"
echo "depends = dreambuilder_theme_settings" >> $workdir"/mods/default/mod.conf"
##########
sed -i 's/"style_type\[.*\]"/"style_type[label,textarea;font=mono]" \
\t\t.."style_type[textarea;textcolor="..dreambuilder_theme.editor_text_color..";border="..dreambuilder_theme.editor_border.."]"/' \
$workdir"/mods/mesecons_luacontroller/init.lua"
$workdir"/mods/mesecons_luacontroller/init.lua"
sed -i "0,/depends =/s//depends = dreambuilder_gui_theming, /" $workdir"/mods/mesecons/mod.conf"
sed -i 's/jeija_luac_background.png/"..dreambuilder_theme.name.."_jeija_luac_background.png/' \
$workdir"/mods/mesecons_luacontroller/init.lua"
sed -i '/size\[8,9\]/ {
a \\t\t"image[-0.12,4.73;10.03,4.95;default_standard_inventory_bg.png]"..
a \\t\t"image[-0.12,0.15;10.03,4.79;default_chest_upper_slots_bg.png]"..
r /tmp/LISTCOLORS_HIDE_SLOTS
}' $workdir"/mods/pipeworks/compat-chests.lua"
sed -i 's/jeija_luac_runbutton.png/"..dreambuilder_theme.name.."_jeija_luac_runbutton.png/' \
$workdir"/mods/mesecons_luacontroller/init.lua"
sed -i '/size\[8,8.5\]/ {
a \\t\t"image[-0.1,4.15;10.03,4.95;default_standard_inventory_bg.png]"..
a \\t\t"image[2.65,0.37;1.254,3.59;default_furnace_upper_middle_slots_bg.png]"..
a \\t\t"image[4.64,0.83;2.52,2.44;default_furnace_upper_right_slots_bg_2x2.png]"..
r /tmp/LISTCOLORS_HIDE_SLOTS
}' $workdir"/mods/pipeworks/compat-furnaces.lua"
sed -i 's/jeija_close_window.png/"..dreambuilder_theme.name.."_jeija_close_window.png/' \
$workdir"/mods/mesecons_luacontroller/init.lua"
sed -i "0, /depends = /s//depends = dreambuilder_gui_theming, /" $workdir"/mods/pipeworks/mod.conf"
sed -i "0,/depends =/s//depends = dreambuilder_theme_settings, /" $workdir"/mods/mesecons/mod.conf"
##########
sed -i '/size\[8,7;\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,2.75;10.03,4.95;default_standard_inventory_bg.png]"..
a \\t\t"image[-0.1,0.23;10.03,2.37;vessels_upper_slots_bg.png]"..
}' $workdir"/mods/vessels/init.lua"
sed -i "/size\[8,9\]/ {
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 0.26, 8, 4, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.82, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 6.03, 8, 3, false)..
a \\\t\t$LISTCOLORS_HIDE_SLOTS
}" $workdir"/mods/pipeworks/compat-chests.lua"
sed -i "0, /depends = /s//depends = dreambuilder_gui_theming, /" $workdir"/mods/vessels/mod.conf"
sed -i 's/default.get_hotbar_bg(0,4.85)/""/' \
$workdir"/mods/pipeworks/compat-chests.lua"
sed -i "/size\[8,8.5\]/ {
a \\\t\tdreambuilder_theme.single_slot_v1(2.75, 0.45, false)..
a \\\t\tdreambuilder_theme.single_slot_v1(2.75, 2.45, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(4.75, 0.92, 2, 2, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.22, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.45, 8, 3, false)..
a \\\t\t$LISTCOLORS_HIDE_SLOTS
}" $workdir"/mods/pipeworks/compat-furnaces.lua"
sed -i '/default.get_hotbar_bg(0, 4.25) ../ {d}' \
$workdir"/mods/pipeworks/compat-furnaces.lua"
sed -i "0, /depends = /s//depends = dreambuilder_theme_settings, /" $workdir"/mods/pipeworks/mod.conf"
##########
sed -i "/size\[8,7;\]/ {
a \\\t$LISTCOLORS_HIDE_SLOTS
a \\\tdreambuilder_theme.make_inv_img_grid_v1(0, 0.25, 8, 2, false)..
a \\\tdreambuilder_theme.make_inv_img_grid_v1(0, 2.8, 8, 1, true)..
a \\\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.05, 8, 3, false)..
}" $workdir"/mods/vessels/init.lua"
sed -i 's/vessels_shelf_slot.png/"..dreambuilder_theme.name.."_vessels_shelf_slot.png/' \
$workdir"/mods/vessels/init.lua"
sed -i 's/default.get_hotbar_bg(0, 2.85)/""/' \
$workdir"/mods/vessels/init.lua"
sed -i "0, /depends = /s//depends = dreambuilder_theme_settings, /" $workdir"/mods/vessels/mod.conf"
##########
sed -i 's/"field\[.*\]"/ \
\t\t\t"formspec_version[4]".. \
@ -292,19 +332,14 @@ sed -i 's/"field\[.*\]"/ \
\t\t/' \
$workdir"/mods/technic/machines/switching_station.lua"
# the inv and slots images below are exactly 192x192 and 512x256 pixels
# and meant to cover inv areas of 3x3 and 8x4 inv slots
# but with an 8x9 formspec size, it takes a declared size of [10.03, 4.65]
# to make the 8x4 grid image fit right
# [10.03, 4.65] / [8, 4] = [1.254, 1.163]
#
# so a 3x3 inv grid should be about 3.762x3.488 real size
sed -i '/size\[8,9\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,4.93;10.03,4.65;technic_main_inventory.png]"..
a \\t\t"image[2.9,0.93;3.762,3.488;technic_battery_box_upper_slots.png]"..
}' $workdir"/mods/technic/machines/register/battery_box.lua"
sed -i "/size\[8,9\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.single_slot_v1(3, 0.95, false)..
a \\\t\tdreambuilder_theme.single_slot_v1(5, 0.95, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(3.5, 2.95, 2, 1, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
}" $workdir"/mods/technic/machines/register/battery_box.lua"
sed -i 's/"field\[.*")/ \
@ -315,141 +350,211 @@ sed -i 's/"field\[.*")/ \
\t\t\t\t\t)/' \
$workdir"/mods/technic/machines/register/battery_box.lua"
sed -i '/size\[8,9;\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,4.93;10.03,4.65;technic_main_inventory.png]"..
a \\t\t"image[2.9,0.93;5.016,2.326;technic_base_machine_upper_bg.png]"..
}' $workdir"/mods/technic/machines/register/machine_base.lua"
sed -i "/size\[8,9;\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.single_slot_v1(3, 0.95, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(5, 0.95, 2, 2, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
}" $workdir"/mods/technic/machines/register/machine_base.lua"
sed -i '/formspec = formspec/ {
a \\t\t\t"image[0.91,2.93;2.508,1.163;technic_base_machine_upgrade_slots_bg.png]"..
}' $workdir"/mods/technic/machines/register/machine_base.lua"
sed -i "/formspec = formspec/ {
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(1, 2.95, 2, 1, false)..
}" $workdir"/mods/technic/machines/register/machine_base.lua"
sed -i '/size\[8,9;\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,4.93;10.03,4.65;technic_main_inventory.png]"..
a \\t\t"image[2.9,0.93;1.254,1.163;default_single_slot.png]"..
}' $workdir"/mods/technic/machines/register/generator.lua"
sed -i "/size\[8,9;\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
a \\\t\tdreambuilder_theme.single_slot_v1(3, 0.95, false)..
}" $workdir"/mods/technic/machines/register/generator.lua"
# this alloy furnace change will match in two places, on purpose.
sed -i '/size\[8,9\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,4.93;10.03,4.65;technic_main_inventory.png]"..
a \\t\t"image[1.9,0.93;6.27,3.49;technic_coal_alloy_furnace_upper_slots.png]"..
}' $workdir"/mods/technic/machines/other/coal_alloy_furnace.lua"
sed -i "/size\[8,9\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(2, 0.95, 2, 1, false)..
a \\\t\tdreambuilder_theme.single_slot_v1(2, 2.95, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(5, 0.95, 2, 2, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
}" $workdir"/mods/technic/machines/other/coal_alloy_furnace.lua"
sed -i '/size\[8,9;\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,4.93;10.03,4.65;technic_main_inventory.png]"..
a \\t\t"image[-0.1,1.92;10.03,2.375;technic_injector_upper_slots.png]"..
}' $workdir"/mods/technic/machines/other/injector.lua"
sed -i "/size\[8,9;\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 1.95, 8, 2, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
}" $workdir"/mods/technic/machines/other/injector.lua"
sed -i '/size\[8,9;\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,4.93;10.03,4.65;technic_main_inventory.png]"..
a \\t\t"image[2.9,0.93;1.254,1.163;default_single_slot.png]"..
a \\t\t"image[0.91,2.93;2.508,1.163;technic_base_machine_upgrade_slots_bg.png]"..
}' $workdir"/mods/technic/machines/MV/tool_workshop.lua"
sed -i "/size\[8,9;\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\tdreambuilder_theme.make_inv_img_grid_v1(1, 2.95, 2, 1, false)..
a \\\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
a \\\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
a \\\tdreambuilder_theme.single_slot_v1(3, 0.95, false)..
}" $workdir"/mods/technic/machines/MV/tool_workshop.lua"
sed -i '/size\[8,9\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,4.93;10.03,4.65;technic_main_inventory.png]"..
a \\t\t"image[1.9,0.93;3.76,2.325;technic_reactor_upper_slots.png]"..
}' $workdir"/mods/technic/machines/HV/nuclear_reactor.lua"
sed -i "/size\[8,9\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(2, 0.95, 3, 2, false)..
}" $workdir"/mods/technic/machines/HV/nuclear_reactor.lua"
sed -i '/size\[8,9;\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t\t\t"image[-0.1,4.93;10.03,4.65;technic_main_inventory.png]"..
}' $workdir"/mods/technic/machines/other/constructor.lua"
sed -i "/size\[8,9;\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
}" $workdir"/mods/technic/machines/other/constructor.lua"
sed -i '/list\[current_name/ {
i \\t\t\t\t\t.."image[5.89,"..(i*0.998-1.07)..";1.254,1.163;default_single_slot.png]"
}' $workdir"/mods/technic/machines/other/constructor.lua"
sed -i "/list\[current_name/ {
i \\\t\t\t\t\t..dreambuilder_theme.single_slot_v1(6, i-1.05, false)
}" $workdir"/mods/technic/machines/other/constructor.lua"
sed -i '/size\[9,11;\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,6.92;10.03,4.65;technic_main_inventory.png]"..
a \\t\t"image[-0.1,5.42;11.28,1.163;technic_cnc_upper_slots.png]"..
}' $workdir"/mods/technic_cnc/cnc.lua"
sed -i "/size\[9,11;\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.single_slot_v1(0.5, 5.45, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(5, 5.45, 4, 1, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 6.95, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 7.95, 8, 3, false)..
}" $workdir"/mods/technic_cnc/cnc.lua"
sed -i "0, /depends = /s//depends = dreambuilder_gui_theming, /" $workdir"/mods/technic/mod.conf"
sed -i "0, /depends = /s//depends = dreambuilder_theme_settings, /" $workdir"/mods/technic/mod.conf"
##########
sed -i "/\"label\[0,0;\"/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
}" $workdir"/mods/technic_chests/register.lua"
sed -i '/"background\["..data.hileft/ {d}' \
$workdir"/mods/technic_chests/register.lua"
sed -i '/"background\["..data.loleft/ {
a \\t\t\tdreambuilder_theme.make_inv_img_grid_v1(data.hileft, 0.95, data.width, data.height, false)..
a \\t\t\tdreambuilder_theme.make_inv_img_grid_v1(data.loleft, data.lotop-0.05, 8, 1, true)..
a \\t\t\tdreambuilder_theme.make_inv_img_grid_v1(data.loleft, data.lotop+0.95, 8, 3, false)..
d
}' $workdir"/mods/technic_chests/register.lua"
sed -i '/"background\[-0.19,-0.25;"/ {
a \\t\t\t"background[0,0;1,1;"..dreambuilder_theme.name.."_technic_chest_form_bg.png;true]"..
d
}' $workdir"/mods/technic_chests/register.lua"
#sed -i 's/technic_chest_form_bg.png/"..dreambuilder_theme.name.."_technic_chest_form_bg.png;true/' \
# $workdir"/mods/technic_chests/register.lua"
sed -i "0, /depends = /s//depends = dreambuilder_theme_settings, /" $workdir"/mods/technic_chests/mod.conf"
##########
sed -i "/image\[2.75,1.5;1,1;/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.single_slot_v1(2.75, 0.45, false)..
a \\\t\tdreambuilder_theme.single_slot_v1(2.75, 2.45, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(4.75, 0.92, w, h, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.22, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.45, 8, 3, false)..
}" $workdir"/mods/homedecor_common/furnaces.lua"
sed -i "0, /depends = /s//depends = dreambuilder_theme_settings, /" $workdir"/mods/homedecor_common/mod.conf"
##########
sed -i "/size\[8,10\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 0.95, 8, 4, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.82, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 7.03, 8, 3, false)..
}" $workdir"/mods/locks/shared_locked_chest.lua"
sed -i 's/default.get_hotbar_bg(0,5.85)/""/' \
$workdir"/mods/locks/shared_locked_chest.lua"
# This one will match in two places, deliberately.
sed -i "/size\[8,9\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.single_slot_v1(2, 0.45, false)..
a \\\t\tdreambuilder_theme.single_slot_v1(2, 2.45, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(5, 0.95, 2, 2, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.95, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.95, 8, 3, false)..
}" $workdir"/mods/locks/shared_locked_furnace.lua"
echo "dreambuilder_theme_settings" >> $workdir"/mods/locks/depends.txt"
##########
sed -i '/default.gui_bgimg/ {d}' $workdir"/mods/castle_storage/ironbound_chest.lua"
sed -i '/default.gui_bg/ {d}' $workdir"/mods/castle_storage/ironbound_chest.lua"
sed -i "/default.gui_slots/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, -0.05, 8, 4, false)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.95, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.95, 8, 3, false)..
d
}" $workdir"/mods/castle_storage/ironbound_chest.lua"
sed -i '/default.gui_bgimg/ {d}' $workdir"/mods/castle_storage/crate.lua"
sed -i '/default.gui_bg/ {d}' $workdir"/mods/castle_storage/crate.lua"
sed -i "/default.gui_slots/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\t\t\tdreambuilder_theme.make_inv_img_grid_v1(0, -0.05, 8, 4, false)..
a \\\t\t\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.95, 8, 1, true)..
a \\\t\t\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 5.95, 8, 3, false)..
d
}" $workdir"/mods/castle_storage/crate.lua"
##########
sed -i "/size\[8,5.5\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 1.42, 8, 1, true)..
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 2.58, 8, 3, false)..
a \\\t\tdreambuilder_theme.single_slot_v1(3.4, 0, false)..
}" $workdir"/mods/ufos/furnace.lua"
echo "dreambuilder_theme_settings" >> $workdir"/mods/ufos/mod.conf"
##########
sed -i 's/"listcolors\[#00000000;#00000000\]"/""/' $workdir"/mods/unified_inventory/internal.lua"
sed -i 's/"listcolors\[#00000000;#00000000\]"/""/' $workdir"/mods/unified_inventory/bags.lua"
sed -i 's/"listcolors\[#00000000;#00000000\]"/""/' $workdir"/mods/unified_inventory/register.lua"
sed -i '/local n = 4/ {
i \\tformspec[4]="style_type[image_button;bgcolor="..dreambuilder_theme.btn_color.."]"
i \\tformspec[5]=
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t\t""
a \\tlocal n = 6
d
}' $workdir"/mods/unified_inventory/internal.lua"
sed -i "/formspec\[n\] = fsdata.formspec/ {
a \\\tformspec[n+1]=\"style_type[image_button;bgcolor=\"..dreambuilder_theme.btn_color..\"]\"
a \\\tformspec[n+2]=
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\t\t\"\"
a \\\tn = n + 2
}" $workdir"/mods/unified_inventory/internal.lua"
sed -i "s/ui_single_slot.png/default_single_slot.png/" $workdir"/mods/unified_inventory/internal.lua"
sed -i "s/ui_single_slot.png/default_single_slot.png/" $workdir"/mods/unified_inventory/register.lua"
sed -i '/1.175;ui_bags_header.png/ {
sed -i '/ui.single_slot(8.425, 1.5)/ {
a \\t\t\t"style_type[button;bgcolor="..dreambuilder_theme.btn_color.."]",
}' $workdir"/mods/unified_inventory/bags.lua"
sed -i "0, /depends = /s//depends = dreambuilder_gui_theming, /" $workdir"/mods/unified_inventory/mod.conf"
sed -i 's/ui_formbg_9_sliced.png/"..dreambuilder_theme.name.."_ui_formbg_9_sliced.png/' \
$workdir"/mods/unified_inventory/init.lua"
sed -i '/"label\[0,0;"/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
}' $workdir"/mods/technic_chests/register.lua"
sed -i 's/ui_single_slot/"..dreambuilder_theme.name.."_ui_single_slot/' \
$workdir"/mods/unified_inventory/api.lua"
sed -i "0, /depends = /s//depends = dreambuilder_gui_theming, /" $workdir"/mods/technic_chests/mod.conf"
sed -i 's/ui_trash_slot_icon.png/"..dreambuilder_theme.name.."_ui_trash_slot_icon.png/' \
$workdir"/mods/unified_inventory/api.lua"
sed -i '/image\[2.75,1.5;1,1;/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,4.15;10.03,4.95;default_standard_inventory_bg.png]"..
a \\t\t"image[2.65,0.37;1.254,3.59;default_furnace_upper_middle_slots_bg.png]"..
a \\t\t"image[4.64,0.83;2.52,2.44;default_furnace_upper_right_slots_bg_"..w.."x"..h..".png]"..
}' $workdir"/mods/homedecor_common/furnaces.lua"
sed -i "0, /depends = /s//depends = dreambuilder_theme_settings, /" $workdir"/mods/unified_inventory/mod.conf"
sed -i '/size\[8,10\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.12,5.73;10.03,4.95;default_standard_inventory_bg.png]"..
a \\t\t"image[-0.12,0.85;10.03,4.79;default_chest_upper_slots_bg.png]"..
}' $workdir"/mods/locks/shared_locked_chest.lua"
##########
# This one will match in two places, deliberately.
sed -i '/size\[8,9\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS
a \\t\t"image[-0.1,4.90;10.03,4.65;default_standard_inventory_old_bg.png]"..
a \\t\t"image[1.88,0.37;1.254,3.59;default_furnace_upper_middle_slots_bg.png]"..
a \\t\t"image[4.9,0.87;2.5,2.46;default_furnace_upper_right_slots_bg_2x2.png]"..
}' $workdir"/mods/locks/shared_locked_furnace.lua"
sed -i '/size\[8,5.5\]/ {
r /tmp/LISTCOLORS_HIDE_SLOTS a \\t\t"image[-0.1,1.42;10.03,4.65;default_standard_inventory_old_bg.png]"..
a \\t\t"image[3.4,-0.1;1.254,1.163;default_single_slot.png]"..
}' $workdir"/mods/ufos/furnace.lua"
mv $workdir"/mods/dreambuilder_extras/dreambuilder_gui_theming" \
mv $workdir"/mods/dreambuilder_extras/dreambuilder_theme_settings" \
$workdir"/mods/dreambuilder_extras/dreambuilder_theme_functions" \
$workdir"/mods/dreambuilder_extras/dreambuilder_theme_light" \
$workdir"/mods/"
rm $workdir"/mods/default/textures/gui_formbg.png" \
$workdir"/mods/mesecons/textures/jeija_close_window.png" \
$workdir"/mods/mesecons_luacontroller/textures/jeija_luac_background.png" \
$workdir"/mods/mesecons_luacontroller/textures/jeija_luac_runbutton.png" \
$workdir"/mods/unified_inventory/textures/ui_bags_header.png" \
$workdir"/mods/unified_inventory/textures/ui_bags_inv"* \
$workdir"/mods/unified_inventory/textures/ui_bags_trash.png" \
$workdir"/mods/unified_inventory/textures/ui_crafting_form.png" \
$workdir"/mods/unified_inventory/textures/ui_form_bg.png" \
$workdir"/mods/unified_inventory/textures/ui_main_inventory.png" \
$workdir"/mods/unified_inventory/textures/ui_single_slot.png" \
$workdir"/mods/vessels/textures/vessels_shelf_slot.png" \
$workdir"/mods/default/textures/gui_hotbar_selected.png" \
$workdir"/mods/technic_chests/textures/technic_chest_form_bg.png" \
$workdir"/mods/technic_chests/textures/"*"inventory.png"
rm /tmp/herefile* /tmp/LISTCOLORS_HIDE_SLOTS
# Add in all of the regular player skins for the player_textures mod
rm -f $workdir/mods/player_textures/textures/*

View File

@ -6,6 +6,8 @@
-- by Vanessa Dannenberg
dreambuilder = {}
default.cool_lava = function (pos, node) end
minetest.register_abm({

View File

@ -1,3 +1,3 @@
min_minetest_version = 5.4.0
depends = dreambuilder_gui_theming, default
depends = dreambuilder_theme_settings, default
optional_depends = farming, youngtrees, ferns, dryplants

View File

@ -1,2 +0,0 @@
name = dreambuilder_gui_theming
description = formspec/window theming mod

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -44,8 +44,8 @@ minetest.register_on_joinplayer(function(player)
local hotbar_size = validate_size(get_hotbar_setting(player:get_player_name()))
player:hud_set_hotbar_itemcount(hotbar_size)
minetest.after(0.5,function(hotbar_size)
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")
player:hud_set_hotbar_image("gui_hb_bg_"..hotbar_size..".png")
player:hud_set_hotbar_selected_image(dreambuilder_theme.name.."_gui_hotbar_selected.png")
player:hud_set_hotbar_image(dreambuilder_theme.name.."_gui_hb_bg_"..hotbar_size..".png")
end,hotbar_size)
end)
@ -58,7 +58,7 @@ minetest.register_chatcommand("hotbar", {
local player = minetest.get_player_by_name(name)
player:hud_set_hotbar_itemcount(hotbar_size)
minetest.chat_send_player(name, "[_] Hotbar size set to " ..hotbar_size.. ".")
player:hud_set_hotbar_image("gui_hb_bg_"..hotbar_size..".png")
player:hud_set_hotbar_image(dreambuilder_theme.name.."_gui_hb_bg_"..hotbar_size..".png")
save_hotbar_settings()
end,
})

View File

@ -1,2 +1,2 @@
min_minetest_version = 5.2.0
optional_depends = default, dreambuilder_gui_theming
optional_depends = default, dreambuilder_theme_settings

View File

@ -0,0 +1,20 @@
-- This mod just supplies helpers to build slot backgrounds for mods that use formspec v1
dreambuilder_theme = {}
function dreambuilder_theme.single_slot_v1(xpos, ypos, bright)
return string.format("background9[%f,%f;%f,%f;%s_ui_single_slot%s.png;false;16]",
xpos, ypos, 1, 1.08, dreambuilder_theme.name, (bright and "_bright" or "") )
end
function dreambuilder_theme.make_inv_img_grid_v1(xpos, ypos, width, height, bright)
local tiled = {}
local n=1
for y = 0, (height - 1) do
for x = 0, (width -1) do
tiled[n] = dreambuilder_theme.single_slot_v1(xpos + x, ypos + y, bright)
n = n + 1
end
end
return table.concat(tiled)
end

View File

@ -0,0 +1,18 @@
dreambuilder_theme.name = "dbtheme_light"
dreambuilder_theme.form_bgcolor = "#F0F0F0FF"
dreambuilder_theme.btn_color = "#B0B0B0FF"
dreambuilder_theme.editor_text_color = "#000000FF"
dreambuilder_theme.editor_bg_color = "#F0F0F0FF"
dreambuilder_theme.listcolor_slot_bg_normal = "#FFFFFF30"
dreambuilder_theme.listcolor_slot_bg_hover = "#FFFFFF80"
dreambuilder_theme.listcolor_slot_border = "#606060"
dreambuilder_theme.tooltip_bgcolor = "#A0A0A0"
dreambuilder_theme.tooltip_fontcolor = "#FFF"
dreambuilder_theme.window_darken = "false"
dreambuilder_theme.editor_border = "false"
dreambuilder_theme.image_button_borders = "false"

View File

@ -0,0 +1,3 @@
name = dreambuilder_theme_light
description = Standard "light" theme for Dreambuilder
depends = dreambuilder_theme_settings

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

View File

Before

Width:  |  Height:  |  Size: 246 B

After

Width:  |  Height:  |  Size: 246 B

View File

Before

Width:  |  Height:  |  Size: 542 B

After

Width:  |  Height:  |  Size: 542 B

View File

Before

Width:  |  Height:  |  Size: 763 B

After

Width:  |  Height:  |  Size: 763 B

View File

Before

Width:  |  Height:  |  Size: 952 B

After

Width:  |  Height:  |  Size: 952 B

View File

Before

Width:  |  Height:  |  Size: 984 B

After

Width:  |  Height:  |  Size: 984 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 479 B

After

Width:  |  Height:  |  Size: 479 B

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 869 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -1,15 +1,14 @@
-- Dreambuilder theming mod
-- really all this does is preload the global config
-- and supply some stock textures :P
-- all this does is preload the global fallback color settings
--
-- Colors can be changed with your local minetest.conf, or you can skip that
-- and instead add a whole theme mod to override the colors and images
-- supplied by this component.
dreambuilder_theme = {}
--
-- Theme mods should depend on this mod to inherit the user's color
-- settings from their minetest.conf. This mod in turn depends on
-- `dreambuilder_theme_functions` for its global table.
dreambuilder_theme.form_bgcolor = minetest.settings:get("dreambuilder_theme_form_bgcolor")
dreambuilder_theme.btn_color = minetest.settings:get("dreambuilder_theme_btn_color")
dreambuilder_theme.editor_text_color = minetest.settings:get("dreambuilder_theme_editor_text_color")
dreambuilder_theme.editor_bg_color = minetest.settings:get("dreambuilder_theme_editor_bg_color")

View File

@ -0,0 +1,3 @@
name = dreambuilder_theme_settings
description = formspec/window theming mod
depends = dreambuilder_theme_functions

View File

@ -27,12 +27,12 @@ local function make_formspec(furnacedef, percent)
return "size["..math.max(8, 6 + w)..",9]"..
"image[2.75,1.5;1,1;"..fire.."]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.15;10.03,4.95;default_standard_inventory_bg.png]"..
"image[2.65,0.37;1.254,3.59;default_furnace_upper_middle_slots_bg.png]"..
"image[4.64,0.83;2.52,2.44;default_furnace_upper_right_slots_bg_"..w.."x"..h..".png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.single_slot_v1(2.75, 0.45, false)..
dreambuilder_theme.single_slot_v1(2.75, 2.45, false)..
dreambuilder_theme.make_inv_img_grid_v1(4.75, 0.92, w, h, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.22, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.45, 8, 3, false)..
"list[current_name;fuel;2.75,2.5;1,1;]"..
"list[current_name;src;2.75,0.5;1,1;]"..
"list[current_name;dst;4.75,0.96;"..w..","..h..";]"..

View File

@ -1,4 +1,4 @@
name = homedecor_common
description = Homedecor mod: common
depends = default, creative
depends = dreambuilder_theme_settings, default, creative
optional_depends = screwdriver

View File

@ -1,2 +1,3 @@
default
pipeworks?
dreambuilder_theme_settings

View File

@ -50,11 +50,10 @@ minetest.register_node("locks:shared_locked_chest", {
-- prepare the lock of the chest
locks:lock_init( pos,
"size[8,10]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.12,5.73;10.03,4.95;default_standard_inventory_bg.png]"..
"image[-0.12,0.85;10.03,4.79;default_chest_upper_slots_bg.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(0, 0.95, 8, 4, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.82, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 7.03, 8, 3, false)..
---- "field[0.5,0.2;8,1.0;locks_sent_lock_command;Locked chest. Type password, command or /help for help:;]"..
---- "button_exit[3,0.8;2,1.0;locks_sent_input;Proceed]"..
-- "list[current_name;main;0,0;8,4;]"..
@ -71,7 +70,7 @@ minetest.register_node("locks:shared_locked_chest", {
"list[current_player;main;0,7.08;8,3;8]" ..
"listring[current_name;main]" ..
"listring[current_player;main]" ..
default.get_hotbar_bg(0,5.85) );
"" );
local inv = meta:get_inventory()
inv:set_size("main", 8*4)

View File

@ -87,12 +87,12 @@ end
function locks.get_furnace_active_formspec(pos, percent)
local formspec =
"size[8,9]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.90;10.03,4.65;default_standard_inventory_old_bg.png]"..
"image[1.88,0.37;1.254,3.59;default_furnace_upper_middle_slots_bg.png]"..
"image[4.9,0.87;2.5,2.46;default_furnace_upper_right_slots_bg_2x2.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.single_slot_v1(2, 0.45, false)..
dreambuilder_theme.single_slot_v1(2, 2.45, false)..
dreambuilder_theme.make_inv_img_grid_v1(5, 0.95, 2, 2, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.95, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.95, 8, 3, false)..
"image[2,1.5;1,1;default_furnace_fire_bg.png^[lowpart:"..
(100-percent)..":default_furnace_fire_fg.png]"..
"list[current_name;fuel;2,2.5;1,1;]"..
@ -108,12 +108,12 @@ end
locks.furnace_inactive_formspec =
"size[8,9]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"image[-0.1,4.90;10.03,4.65;default_standard_inventory_old_bg.png]"..
"image[1.88,0.37;1.254,3.59;default_furnace_upper_middle_slots_bg.png]"..
"image[4.9,0.87;2.5,2.46;default_furnace_upper_right_slots_bg_2x2.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.single_slot_v1(2, 0.45, false)..
dreambuilder_theme.single_slot_v1(2, 2.45, false)..
dreambuilder_theme.make_inv_img_grid_v1(5, 0.95, 2, 2, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.95, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.95, 8, 3, false)..
"image[2,1.5;1,1;default_furnace_fire_bg.png]"..
"list[current_name;fuel;2,2.5;1,1;]"..
"list[current_name;src;2,0.5;1,1;]"..

View File

@ -1,2 +1,2 @@
name = mesecons
depends = dreambuilder_gui_theming, default
depends = dreambuilder_theme_settings, default

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

View File

@ -666,11 +666,11 @@ local function reset_formspec(meta, code, errmsg)
meta:set_string("formspec", "size[12,10]"
.."style_type[label,textarea;font=mono]"
.."style_type[textarea;textcolor="..dreambuilder_theme.editor_text_color..";border="..dreambuilder_theme.editor_border.."]"
.."background[-0.2,-0.25;12.4,10.75;jeija_luac_background.png]"
.."background[-0.2,-0.25;12.4,10.75;"..dreambuilder_theme.name.."_jeija_luac_background.png]"
.."label[0.1,8.3;"..errmsg.."]"
.."textarea[0.2,0.2;12.2,9.5;code;;"..code.."]"
.."image_button[4.75,8.75;2.5,1;jeija_luac_runbutton.png;program;]"
.."image_button_exit[11.72,-0.25;0.425,0.4;jeija_close_window.png;exit;]"
.."image_button[4.75,8.75;2.5,1;"..dreambuilder_theme.name.."_jeija_luac_runbutton.png;program;]"
.."image_button_exit[11.72,-0.25;0.425,0.4;"..dreambuilder_theme.name.."_jeija_close_window.png;exit;]"
)
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -15,11 +15,10 @@ local function get_chest_formspec(pos)
local spos = pos.x .. "," .. pos.y .. "," .. pos.z
local formspec =
"size[8,9]" ..
"image[-0.12,4.73;10.03,4.95;default_standard_inventory_bg.png]"..
"image[-0.12,0.15;10.03,4.79;default_chest_upper_slots_bg.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
dreambuilder_theme.make_inv_img_grid_v1(0, 0.26, 8, 4, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.82, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 6.03, 8, 3, false)..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
default.gui_bg ..
default.gui_bg_img ..
default.gui_slots ..
@ -28,7 +27,7 @@ local function get_chest_formspec(pos)
"list[current_player;main;0,6.08;8,3;8]" ..
"listring[nodemeta:" .. spos .. ";main]" ..
"listring[current_player;main]" ..
default.get_hotbar_bg(0,4.85)
""
-- Pipeworks Switch
formspec = formspec ..

View File

@ -12,12 +12,12 @@ local tube_entry = "^pipeworks_tube_connection_stony.png"
local function active_formspec(fuel_percent, item_percent, pos, meta)
local formspec =
"size[8,8.5]"..
"image[-0.1,4.15;10.03,4.95;default_standard_inventory_bg.png]"..
"image[2.65,0.37;1.254,3.59;default_furnace_upper_middle_slots_bg.png]"..
"image[4.64,0.83;2.52,2.44;default_furnace_upper_right_slots_bg_2x2.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
dreambuilder_theme.single_slot_v1(2.75, 0.45, false)..
dreambuilder_theme.single_slot_v1(2.75, 2.45, false)..
dreambuilder_theme.make_inv_img_grid_v1(4.75, 0.92, 2, 2, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.22, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.45, 8, 3, false)..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
default.gui_bg..
default.gui_bg_img..
default.gui_slots..
@ -36,7 +36,6 @@ local function active_formspec(fuel_percent, item_percent, pos, meta)
"listring[current_player;main]"..
"listring[current_name;fuel]"..
"listring[current_player;main]"..
default.get_hotbar_bg(0, 4.25) ..
fs_helpers.cycling_button(
meta,
"image_button[0,3.5;1,0.6",
@ -51,12 +50,12 @@ end
local function inactive_formspec(pos, meta)
local formspec = "size[8,8.5]"..
"image[-0.1,4.15;10.03,4.95;default_standard_inventory_bg.png]"..
"image[2.65,0.37;1.254,3.59;default_furnace_upper_middle_slots_bg.png]"..
"image[4.64,0.83;2.52,2.44;default_furnace_upper_right_slots_bg_2x2.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
dreambuilder_theme.single_slot_v1(2.75, 0.45, false)..
dreambuilder_theme.single_slot_v1(2.75, 2.45, false)..
dreambuilder_theme.make_inv_img_grid_v1(4.75, 0.92, 2, 2, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.22, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.45, 8, 3, false)..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
default.gui_bg..
default.gui_bg_img..
default.gui_slots..
@ -73,7 +72,6 @@ local function inactive_formspec(pos, meta)
"listring[current_player;main]"..
"listring[current_name;fuel]"..
"listring[current_player;main]"..
default.get_hotbar_bg(0, 4.25) ..
fs_helpers.cycling_button(
meta,
"image_button[0,3.5;1,0.6",

View File

@ -1,5 +1,5 @@
name = pipeworks
description = This mod uses mesh nodes and nodeboxes to supply a complete set of 3D pipes and tubes, along with devices that work with them.
depends = dreambuilder_gui_theming, default, basic_materials, screwdriver
depends = dreambuilder_theme_settings, default, basic_materials, screwdriver
optional_depends = mesecons, mesecons_mvps, digilines, signs_lib
min_minetest_version = 5.2.0

View File

@ -1 +1 @@
streetsmod
streetsmod

View File

@ -32,11 +32,10 @@ minetest.register_craft({
local function make_reactor_formspec(meta)
local f = "size[8,9]"..
"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_main_inventory.png]"..
"image[1.9,0.93;3.76,2.325;technic_reactor_upper_slots.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
dreambuilder_theme.make_inv_img_grid_v1(2, 0.95, 3, 2, false)..
"label[0,0;"..S("Nuclear Reactor Rod Compartment").."]"..
"list[current_name;src;2,1;3,2;]"..
"list[current_player;main;0,5;8,4;]"..

View File

@ -20,12 +20,11 @@ local workshop_demand = {5000, 3500, 2000}
local workshop_formspec =
"size[8,9;]"..
"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_main_inventory.png]"..
"image[2.9,0.93;1.254,1.163;default_single_slot.png]"..
"image[0.91,2.93;2.508,1.163;technic_base_machine_upgrade_slots_bg.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(1, 2.95, 2, 1, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
dreambuilder_theme.single_slot_v1(3, 0.95, false)..
"list[current_name;src;3,1;1,1;]"..
"label[0,0;"..S("%s Tool Workshop"):format("MV").."]"..
"list[current_name;upgrade1;1,3;1,1;]"..

View File

@ -15,11 +15,12 @@ minetest.register_craft({
local machine_name = S("Fuel-Fired Alloy Furnace")
local formspec =
"size[8,9]"..
"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_main_inventory.png]"..
"image[1.9,0.93;6.27,3.49;technic_coal_alloy_furnace_upper_slots.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(2, 0.95, 2, 1, false)..
dreambuilder_theme.single_slot_v1(2, 2.95, false)..
dreambuilder_theme.make_inv_img_grid_v1(5, 0.95, 2, 2, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
"label[0,0;"..machine_name.."]"..
"image[2,2;1,1;default_furnace_fire_bg.png]"..
"list[current_name;fuel;2,3;1,1;]"..
@ -129,11 +130,12 @@ minetest.register_abm({
technic.swap_node(pos, "technic:coal_alloy_furnace_active")
meta:set_string("formspec",
"size[8,9]"..
"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_main_inventory.png]"..
"image[1.9,0.93;6.27,3.49;technic_coal_alloy_furnace_upper_slots.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(2, 0.95, 2, 1, false)..
dreambuilder_theme.single_slot_v1(2, 2.95, false)..
dreambuilder_theme.make_inv_img_grid_v1(5, 0.95, 2, 2, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
"label[0,0;"..machine_name.."]"..
"image[2,2;1,1;default_furnace_fire_bg.png^[lowpart:"..
(100 - percent)..":default_furnace_fire_fg.png]"..

View File

@ -146,16 +146,15 @@ local function make_constructor(mark, length)
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local formspec = "size[8,9;]"..
"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_main_inventory.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
"label[0,0;"..S("Constructor Mk%d"):format(mark).."]"..
"list[current_player;main;0,5;8,4;]"
for i = 1, length do
formspec = formspec
.."label[5,"..(i - 1)..";"..S("Slot %d"):format(i).."]"
.."image[5.89,"..(i*0.998-1.07)..";1.254,1.163;default_single_slot.png]"
..dreambuilder_theme.single_slot_v1(6, i-1.05, false)
.."list[current_name;slot"..i
..";6,"..(i - 1)..";1,1;]"
end

View File

@ -56,11 +56,10 @@ local function set_injector_formspec(meta)
local is_stack = meta:get_string("mode") == "whole stacks"
meta:set_string("formspec",
"size[8,9;]"..
"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_main_inventory.png]"..
"image[-0.1,1.92;10.03,2.375;technic_injector_upper_slots.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(0, 1.95, 8, 2, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
"item_image[0,0;1,1;technic:injector]"..
"label[1,0;"..S("Self-Contained Injector").."]"..
(is_stack and

View File

@ -162,11 +162,12 @@ function technic.register_battery_box(data)
local formspec =
"size[8,9]"..
"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_main_inventory.png]"..
"image[2.9,0.93;3.762,3.488;technic_battery_box_upper_slots.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.single_slot_v1(3, 0.95, false)..
dreambuilder_theme.single_slot_v1(5, 0.95, false)..
dreambuilder_theme.make_inv_img_grid_v1(3.5, 2.95, 2, 1, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
"image[1,1;1,2;technic_power_meter_bg.png]"..
"list[context;src;3,1;1,1;]"..
"image[4,1;1,1;technic_battery_reload.png]"..

View File

@ -36,11 +36,10 @@ function technic.register_generator(data)
local generator_formspec =
"size[8,9;]"..
"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_main_inventory.png]"..
"image[2.9,0.93;1.254,1.163;default_single_slot.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
dreambuilder_theme.single_slot_v1(3, 0.95, false)..
"label[0,0;"..S("Fuel-Fired %s Generator"):format(tier).."]"..
"list[current_name;src;3,1;1,1;]"..
"image[4,1;1,1;default_furnace_fire_bg.png]"..

View File

@ -51,11 +51,11 @@ function technic.register_base_machine(data)
local formspec =
"size[8,9;]"..
"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_main_inventory.png]"..
"image[2.9,0.93;5.016,2.326;technic_base_machine_upper_bg.png]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
dreambuilder_theme.single_slot_v1(3, 0.95, false)..
dreambuilder_theme.make_inv_img_grid_v1(5, 0.95, 2, 2, false)..
dreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(0, 5.97, 8, 3, false)..
"list[current_name;src;"..(4-input_size)..",1;"..input_size..",1;]"..
"list[current_name;dst;5,1;2,2;]"..
"list[current_player;main;0,5;8,4;]"..
@ -66,7 +66,7 @@ function technic.register_base_machine(data)
"listring[current_player;main]"
if data.upgrade then
formspec = formspec..
"image[0.91,2.93;2.508,1.163;technic_base_machine_upgrade_slots_bg.png]"..
dreambuilder_theme.make_inv_img_grid_v1(1, 2.95, 2, 1, false)..
"list[current_name;upgrade1;1,3;1,1;]"..
"list[current_name;upgrade2;2,3;1,1;]"..
"label[1,4;"..S("Upgrade Slots").."]"..

View File

@ -1,3 +1,3 @@
name = technic
depends = dreambuilder_gui_theming, default, pipeworks, technic_worldgen, basic_materials
depends = dreambuilder_theme_settings, default, pipeworks, technic_worldgen, basic_materials
optional_depends = bucket, screwdriver, mesecons, mesecons_mvps, digilines, digiline_remote, intllib, unified_inventory, vector_extras, dye

View File

@ -1,3 +1,3 @@
name = technic_chests
depends = dreambuilder_gui_theming, default, basic_materials
depends = dreambuilder_theme_settings, default, basic_materials
optional_depends = moreblocks, moreores, pipeworks, intllib, tubelib

View File

@ -225,14 +225,13 @@ function technic.chests:definition(name, data)
local front = {"technic_"..lname.."_chest_front.png"}
data.base_formspec = "size["..data.ovwidth..","..data.ovheight.."]"..
"label[0,0;"..S("%s Chest"):format(name).."]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000;"..
dreambuilder_theme.tooltip_bgcolor..";"..
dreambuilder_theme.tooltip_fontcolor.."]"..
"listcolors[#00000000;"..dreambuilder_theme.listcolor_slot_bg_hover..";#00000000]"..
"list[context;main;"..data.hileft..",1;"..data.width..","..data.height..";]"..
"list[current_player;main;"..data.loleft..","..data.lotop..";8,4;]"..
"background[-0.19,-0.25;"..(data.ovwidth+0.4)..","..(data.ovheight+0.75)..";technic_chest_form_bg.png]"..
"background["..data.hileft..",1;"..data.width..","..data.height..";technic_"..lname.."_chest_inventory.png]"..
"background["..data.loleft..","..data.lotop..";8,4;technic_main_inventory.png]"..
"background[0,0;1,1;"..dreambuilder_theme.name.."_technic_chest_form_bg.png;true]"..
dreambuilder_theme.make_inv_img_grid_v1(data.hileft, 0.95, data.width, data.height, false)..
dreambuilder_theme.make_inv_img_grid_v1(data.loleft, data.lotop-0.05, 8, 1, true)..
dreambuilder_theme.make_inv_img_grid_v1(data.loleft, data.lotop+0.95, 8, 3, false)..
"listring[]"
if data.sort then

Some files were not shown because too many files have changed in this diff Show More