A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/AlmasB/FXGL/commit/d20ed6bd5 below:

removed redundant onClick() since kotlin now properly reads… · AlmasB/FXGL@d20ed6b · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+0

-4

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+0

-4

lines changed Original file line number Diff line number Diff line change

@@ -180,10 +180,6 @@ class EntityBuilder {

180 180

entity.zIndex = z

181 181

}

182 182 183 -

fun onClick(action: (Entity) -> Unit) = this.also {

184 -

onClick(Consumer(action))

185 -

}

186 - 187 183

fun onClick(action: Consumer<Entity>) = this.also {

188 184

entity.viewComponent.addEventHandler(MouseEvent.MOUSE_CLICKED, EventHandler { action.accept(entity) })

189 185

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4