summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 11:08:37 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-09-08 11:08:37 -0400
commit8fbd9cd23b1b2ed76caadced11bc278662b32cb1 (patch)
treef6c7d935044f749d5629c55e5031665f55335230
parent997d703b94c5aed1f75ea7df8147b76dd29d8132 (diff)
downloadunifieddyes-8fbd9cd23b1b2ed76caadced11bc278662b32cb1.tar
unifieddyes-8fbd9cd23b1b2ed76caadced11bc278662b32cb1.tar.gz
unifieddyes-8fbd9cd23b1b2ed76caadced11bc278662b32cb1.tar.bz2
unifieddyes-8fbd9cd23b1b2ed76caadced11bc278662b32cb1.tar.xz
unifieddyes-8fbd9cd23b1b2ed76caadced11bc278662b32cb1.zip
condense legend a bit
move selected dye label over next to/under "Your selection"
-rw-r--r--init.lua37
1 files changed, 23 insertions, 14 deletions
diff --git a/init.lua b/init.lua
index c346761..39846f8 100644
--- a/init.lua
+++ b/init.lua
@@ -1008,17 +1008,34 @@ function unifieddyes.show_airbrush_form(player)
t[#t+1] = (vps*5+vs)
t[#t+1] = color_button_size
t[#t+1] = "unifieddyes_onhand_overlay.png]label[11.0,"
- t[#t+1] = (vps*5.1+vs)
- t[#t+1] = ";Dyes on hand]"
+ t[#t+1] = (vps*5.02+vs)
+ t[#t+1] = ";Dyes]"
+ t[#t+1] = "label[11.0,"
+ t[#t+1] = (vps*5.18+vs)
+ t[#t+1] = ";on hand]"
+
end
- t[#t+1] = "image[12.5,"
+ t[#t+1] = "image[11.9,"
t[#t+1] = (vps*5+vs)
t[#t+1] = color_button_size
t[#t+1] = selindic
- t[#t+1] = "label[13.2,"
- t[#t+1] = (vps*5.1+vs)
- t[#t+1] = ";Your selection]"
+
+
+ if painting_with then
+ t[#t+1] = "label[12.6,"
+ t[#t+1] = (vps*5.02+vs)
+ t[#t+1] = ";Your selection:]"
+ t[#t+1] = "label[12.6,"
+ t[#t+1] = (vps*5.18+vs)
+ t[#t+1] = ";"
+ t[#t+1] = painting_with
+ t[#t+1] = "]"
+ else
+ t[#t+1] = "label[12.6,"
+ t[#t+1] = (vps*5.1+vs)
+ t[#t+1] = ";Your selection]"
+ end
t[#t+1] = "button_exit[11,8;2,1;cancel;Cancel]button_exit[13,8;2,1;accept;Accept]"
@@ -1033,14 +1050,6 @@ function unifieddyes.show_airbrush_form(player)
end
end
- if painting_with then
- t[#t+1] = "label[0.5,"
- t[#t+1] = (7.25+vs)
- t[#t+1] = ";Selected dye: "
- t[#t+1] = painting_with
- t[#t+1] = "]"
- end
-
minetest.show_formspec(player_name, "unifieddyes:dye_select_form", table.concat(t))
end