1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Misc. mainmenu fixes (#13859)

* settingstypes.txt: Fix wrong default value for profiler.report_path

* Disable Irrlicht file picker on Android
  (It doesn't work.)

* Join Game tab: Fix server description textarea being misaligned with background

* Reduce distance between tab and gamebar on Android
  Allows using a higher gui_scaling value without the gamebar going off-screen.

Co-authored-by: ROllerozxa <rollerozxa@voxelmanip.se>
This commit is contained in:
Gregor Parzefall 2023-10-01 11:19:52 +02:00 committed by GitHub
parent c90c545d33
commit 94eba15c34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 9 deletions

View file

@ -192,7 +192,7 @@ function make.enum(setting)
end
function make.path(setting)
local function make_path(setting)
return {
info_text = setting.comment,
setting = setting,
@ -235,6 +235,15 @@ function make.path(setting)
}
end
if PLATFORM == "Android" then
-- The Irrlicht file picker doesn't work on Android.
make.path = make.string
make.filepath = make.string
else
make.path = make_path
make.filepath = make_path
end
function make.v3f(setting)
return {
@ -362,7 +371,7 @@ function make.flags(setting)
end
local function noise_params(setting)
local function make_noise_params(setting)
return {
info_text = setting.comment,
setting = setting,
@ -390,9 +399,8 @@ local function noise_params(setting)
}
end
make.noise_params_2d = make_noise_params
make.noise_params_3d = make_noise_params
make.filepath = make.path
make.noise_params_2d = noise_params
make.noise_params_3d = noise_params
return make