Add () to ButtonImpl
This commit is contained in:
		
							parent
							
								
									cb20a6e744
								
							
						
					
					
						commit
						8c6219627b
					
				| @ -18,11 +18,11 @@ abstract class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) { | |||||||
|         fun initialize() { |         fun initialize() { | ||||||
|             done = true |             done = true | ||||||
|             Snowy.reflections.getTypesAnnotatedWith(ButtonInfo::class.java).forEach { // Initializes every button |             Snowy.reflections.getTypesAnnotatedWith(ButtonInfo::class.java).forEach { // Initializes every button | ||||||
|                 (try { |                 ((try { | ||||||
|                     it.getConstructor().newInstance() |                     it.getConstructor().newInstance() | ||||||
|                 } catch (e: NoSuchMethodException) { |                 } catch (e: NoSuchMethodException) { | ||||||
|                     it.kotlin.objectInstance |                     it.kotlin.objectInstance | ||||||
|                 } as ButtonImpl).let { impl -> |                 }) as ButtonImpl).let { impl -> | ||||||
|                     with(impl) { |                     with(impl) { | ||||||
|                         if (info.kind == ButtonInfo.Companion.Type.TOGGLE) { |                         if (info.kind == ButtonInfo.Companion.Type.TOGGLE) { | ||||||
|                             Configuration.enabledFeatures[title]?.let { bool -> |                             Configuration.enabledFeatures[title]?.let { bool -> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user