Fix style on settings tab
parent
e80a044818
commit
7b17b9059e
|
@ -128,17 +128,17 @@ local function formspec(tabview, name, tabdata)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local filters = {
|
local filters = {
|
||||||
{"No Filter,Bilinear Filter,Trilinear Filter"},
|
{"No Filter,Bilinear Filter,Trilinear Filter"},
|
||||||
{"", "bilinear_filter", "trilinear_filter"},
|
{"", "bilinear_filter", "trilinear_filter"},
|
||||||
}
|
}
|
||||||
|
|
||||||
local mipmap = {
|
local mipmap = {
|
||||||
{"No Mipmap,Mipmap,Mipmap + Aniso. Filter"},
|
{"No Mipmap,Mipmap,Mipmap + Aniso. Filter"},
|
||||||
{"", "mip_map", "anisotropic_filter"},
|
{"", "mip_map", "anisotropic_filter"},
|
||||||
}
|
}
|
||||||
|
|
||||||
local function getFilterSettingIndex()
|
local function getFilterSettingIndex()
|
||||||
if (core.setting_get(filters[2][3]) == "true") then
|
if (core.setting_get(filters[2][3]) == "true") then
|
||||||
return 3
|
return 3
|
||||||
end
|
end
|
||||||
|
@ -146,9 +146,9 @@ local function getFilterSettingIndex()
|
||||||
return 2
|
return 2
|
||||||
end
|
end
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
local function getMipmapSettingIndex()
|
local function getMipmapSettingIndex()
|
||||||
if (core.setting_get(mipmap[2][3]) == "true") then
|
if (core.setting_get(mipmap[2][3]) == "true") then
|
||||||
return 3
|
return 3
|
||||||
end
|
end
|
||||||
|
@ -156,7 +156,7 @@ local function getMipmapSettingIndex()
|
||||||
return 2
|
return 2
|
||||||
end
|
end
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
local tab_string =
|
local tab_string =
|
||||||
"box[0,0;3.5,3.9;#999999]" ..
|
"box[0,0;3.5,3.9;#999999]" ..
|
||||||
|
@ -242,6 +242,7 @@ end
|
||||||
"textlist[8.33,2.7;4,1;;#888888" .. fgettext("Waving Leaves") .. ";0;true]" ..
|
"textlist[8.33,2.7;4,1;;#888888" .. fgettext("Waving Leaves") .. ";0;true]" ..
|
||||||
"textlist[8.33,3.2;4,1;;#888888" .. fgettext("Waving Plants") .. ";0;true]"
|
"textlist[8.33,3.2;4,1;;#888888" .. fgettext("Waving Plants") .. ";0;true]"
|
||||||
end
|
end
|
||||||
|
|
||||||
return tab_string
|
return tab_string
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue