mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix background color of formspec text fields
This commit is contained in:
		@@ -1577,11 +1577,10 @@ void GUIFormSpecMenu::createTextField(parserData *data, FieldSpec &spec,
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false));
 | 
			
		||||
		e->setDrawBorder(style.getBool(StyleSpec::BORDER, true));
 | 
			
		||||
		e->setOverrideColor(style.getColor(StyleSpec::TEXTCOLOR, video::SColor(0xFFFFFFFF)));
 | 
			
		||||
		if (style.get(StyleSpec::BGCOLOR, "") == "transparent") {
 | 
			
		||||
			e->setDrawBackground(false);
 | 
			
		||||
		}
 | 
			
		||||
		bool border = style.getBool(StyleSpec::BORDER, true);
 | 
			
		||||
		e->setDrawBorder(border);
 | 
			
		||||
		e->setDrawBackground(border);
 | 
			
		||||
		e->setOverrideFont(style.getFont());
 | 
			
		||||
 | 
			
		||||
		e->drop();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user