Content tab: Fix clipped text in texture pack button (#7667)

Wider buttons to not clip 'Disable Texture Pack' text when using a
small game window (1024x600, the default).
This commit is contained in:
Paramat 2018-08-22 21:36:56 +01:00 committed by GitHub
parent 8516f28458
commit 34f940dcca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -97,7 +97,7 @@ local function get_formspec(tabview, name, tabdata)
if selected_pkg.type == "mod" then if selected_pkg.type == "mod" then
if selected_pkg.is_modpack then if selected_pkg.is_modpack then
retval = retval .. ";0]" .. retval = retval .. ";0]" ..
"button[8.9,4.65;3,1;btn_mod_mgr_rename_modpack;" .. "button[8.65,4.65;3.25,1;btn_mod_mgr_rename_modpack;" ..
fgettext("Rename") .. "]" fgettext("Rename") .. "]"
else else
--show dependencies --show dependencies
@ -128,17 +128,17 @@ local function get_formspec(tabview, name, tabdata)
if selected_pkg.type == "txp" then if selected_pkg.type == "txp" then
if selected_pkg.enabled then if selected_pkg.enabled then
retval = retval .. retval = retval ..
"button[8.9,4.65;3,1;btn_mod_mgr_disable_txp;" .. "button[8.65,4.65;3.25,1;btn_mod_mgr_disable_txp;" ..
fgettext("Disable Texture Pack") .. "]" fgettext("Disable Texture Pack") .. "]"
else else
retval = retval .. retval = retval ..
"button[8.9,4.65;3,1;btn_mod_mgr_use_txp;" .. "button[8.65,4.65;3.25,1;btn_mod_mgr_use_txp;" ..
fgettext("Use Texture Pack") .. "]" fgettext("Use Texture Pack") .. "]"
end end
end end
end end
retval = retval .. "button[5.5,4.65;3,1;btn_mod_mgr_delete_mod;" retval = retval .. "button[5.5,4.65;3.25,1;btn_mod_mgr_delete_mod;"
.. fgettext("Uninstall Package") .. "]" .. fgettext("Uninstall Package") .. "]"
end end
return retval return retval