mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:32:44 +00:00 
			
		
		
		
	GMLCompiler: Handle bitmap properties
This commit is contained in:
		
							parent
							
								
									04a4f6a2e8
								
							
						
					
					
						commit
						a24d9f5e22
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -183,6 +183,9 @@ static ErrorOr<String> generate_initializer_for(Optional<StringView> property_na | ||||||
| 
 | 
 | ||||||
|             if (auto const enum_value = TRY(generate_enum_initializer_for(*property_name, value)); enum_value.has_value()) |             if (auto const enum_value = TRY(generate_enum_initializer_for(*property_name, value)); enum_value.has_value()) | ||||||
|                 return String::formatted("{}", *enum_value); |                 return String::formatted("{}", *enum_value); | ||||||
|  | 
 | ||||||
|  |             if (*property_name == "bitmap"sv) | ||||||
|  |                 return String::formatted(R"~~~(TRY(Gfx::Bitmap::load_from_file("{}"sv)))~~~", TRY(escape_string(value))); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return String::formatted(R"~~~("{}"_string)~~~", TRY(escape_string(value))); |         return String::formatted(R"~~~("{}"_string)~~~", TRY(escape_string(value))); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kleines Filmröllchen
						kleines Filmröllchen