mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Remove 'Reset singleplayer world' button from full menu on Android (#8017)
Make button appearence dependent on menustyle not platform. Button only functions with simple menu.
This commit is contained in:
		@@ -220,7 +220,8 @@ local function formspec(tabview, name, tabdata)
 | 
			
		||||
					fgettext("Shaders (unavailable)")) .. "]"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if PLATFORM == "Android" then
 | 
			
		||||
	if core.settings:get("main_menu_style") == "simple" then
 | 
			
		||||
		-- 'Reset singleplayer world' only functions with simple menu
 | 
			
		||||
		tab_string = tab_string ..
 | 
			
		||||
			"button[8,4.75;3.95,1;btn_reset_singleplayer;"
 | 
			
		||||
			.. fgettext("Reset singleplayer world") .. "]"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user