Added highlighting of hotbar and craft result in formspec images
authorVanessa <vanessa@rainbird.(none)>
Fri, 8 Mar 2013 00:05:19 +0000 (19:05 -0500)
committerVanessa <vanessa@rainbird.(none)>
Fri, 8 Mar 2013 00:05:19 +0000 (19:05 -0500)
Minor tweak to code to allow for slightly increased size (added 10x10 px).

unified_inventory/api.lua
unified_inventory/textures/ui_bags_lg_form.png
unified_inventory/textures/ui_bags_main_form.png
unified_inventory/textures/ui_bags_med_form.png
unified_inventory/textures/ui_bags_sm_form.png
unified_inventory/textures/ui_craftguide_form.png
unified_inventory/textures/ui_crafting_form.png
unified_inventory/textures/ui_misc_form.png

index 4a85dc6a1440398ae0b709f652ad12b1f6e68a4e..029ae688b66f7b86df6a3a0d050a0d3059d020ab 100644 (file)
@@ -129,27 +129,27 @@ unified_inventory.get_formspec = function(player,page)
        -- backgrounds
                formspec = formspec .. "background[-0.19,-0.2,;14.38,10.55;ui_form_bg.png]"
        if page=="craft" then
-               formspec = formspec .. "background[0.12,1.05,;7.8,7.4;ui_crafting_form.png]"
+               formspec = formspec .. "background[0.06,0.99,;7.92,7.52;ui_crafting_form.png]"
                end
        if page=="craftguide" then
-               formspec = formspec .. "background[0.12,1.05,;7.8,7.4;ui_craftguide_form.png]"
+               formspec = formspec .. "background[0.06,0.99,;7.92,7.52;ui_craftguide_form.png]"
                end
        if page=="misc" then
-               formspec = formspec .. "background[0.12,1.05,;7.8,7.4;ui_misc_form.png]"
+               formspec = formspec .. "background[0.06,0.99,;7.92,7.52;ui_misc_form.png]"
                end
        if page=="bags" then
-               formspec = formspec .. "background[0.12,1.05,;7.8,7.4;ui_bags_main_form.png]"
+               formspec = formspec .. "background[0.06,0.99,;7.92,7.52;ui_bags_main_form.png]"
                end
 
        for i=1,4 do
                if page=="bag"..i then
                        local slots = player:get_inventory():get_stack(page, 1):get_definition().groups.bagslots
                        if slots == 8 then
-                               formspec = formspec .. "background[0.12,1.05,;7.8,7.4;ui_bags_sm_form.png]"
+                               formspec = formspec .. "background[0.06,0.99,;7.92,7.52;ui_bags_sm_form.png]"
                        elseif slots == 16 then
-                               formspec = formspec .. "background[0.12,1.05,;7.8,7.4;ui_bags_med_form.png]"
+                               formspec = formspec .. "background[0.06,0.99,;7.92,7.52;ui_bags_med_form.png]"
                        elseif slots == 24 then
-                               formspec = formspec .. "background[0.12,1.05,;7.8,7.4;ui_bags_lg_form.png]"
+                               formspec = formspec .. "background[0.06,0.99,;7.92,7.52;ui_bags_lg_form.png]"
                        end
                end
        end
index de62e2146c5e3ded431163bff26ab5f64826a161..15f511d273e8775dda0169380d47a34fabcf3377 100644 (file)
Binary files a/unified_inventory/textures/ui_bags_lg_form.png and b/unified_inventory/textures/ui_bags_lg_form.png differ
index 11cb05d3b863d55eb770e3dedac593c269b8967f..26e69386d7afa70911eba96f3bae37e263d77c6f 100644 (file)
Binary files a/unified_inventory/textures/ui_bags_main_form.png and b/unified_inventory/textures/ui_bags_main_form.png differ
index 77b89df0e7788d10c363462cd828246d59c05ef1..f7868063d8d26f7a8cfa5d7b79fb54f61a72401c 100644 (file)
Binary files a/unified_inventory/textures/ui_bags_med_form.png and b/unified_inventory/textures/ui_bags_med_form.png differ
index f0af238a5e08d23eac2dadd0ba5ec64dbfe2f87f..c77ff7c2cb305a7e33143aee9b238acbf17c8522 100644 (file)
Binary files a/unified_inventory/textures/ui_bags_sm_form.png and b/unified_inventory/textures/ui_bags_sm_form.png differ
index 7dbfa61da372f2a502cdff960d0a4eaa32cf8179..c0078def42544550fb0a54f05be08a3d7c6501f3 100644 (file)
Binary files a/unified_inventory/textures/ui_craftguide_form.png and b/unified_inventory/textures/ui_craftguide_form.png differ
index 1eaea56ec7fd17e260a87881f6e6861b147917dd..bd21046c82be6ae85e598f8b17049f0bdd24e694 100644 (file)
Binary files a/unified_inventory/textures/ui_crafting_form.png and b/unified_inventory/textures/ui_crafting_form.png differ
index 103900c9f17915a1b34e09bad9204563b7438aa6..d34d3264572d2f06c88977e8fdf8f33523aa8865 100644 (file)
Binary files a/unified_inventory/textures/ui_misc_form.png and b/unified_inventory/textures/ui_misc_form.png differ