A RetroSearch Logo

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

Search Query:

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

dialogue editor will now highlight the selected node view · AlmasB/FXGL@4cc2300 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+13

-3

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+13

-3

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

@@ -245,7 +245,7 @@ class DialoguePane(graph: DialogueGraph = DialogueGraph()) : Pane() {

245 245

}

246 246

}

247 247 248 -

selectedNodeView.addListener { _, _, newNodeView -> onSelectedNodeViewChanged(newNodeView) }

248 +

selectedNodeView.addListener { _, oldNodeView, newNodeView -> onSelectedNodeViewChanged(oldNodeView, newNodeView) }

249 249 250 250

initGraphListeners()

251 251

@@ -464,8 +464,14 @@ class DialoguePane(graph: DialogueGraph = DialogueGraph()) : Pane() {

464 464

evaluateGraphConnectivity()

465 465

}

466 466 467 -

private fun onSelectedNodeViewChanged(newNodeView: NodeView?) {

467 +

private fun onSelectedNodeViewChanged(oldNodeView: NodeView?, newNodeView: NodeView?) {

468 +

oldNodeView?.let { view ->

469 +

view.styleClass -= "dialogue-editor-node-view-selected"

470 +

}

468 471 472 +

newNodeView?.let { view ->

473 +

view.styleClass += "dialogue-editor-node-view-selected"

474 +

}

469 475

}

470 476 471 477

/**

Original file line number Diff line number Diff line change

@@ -1,12 +1,16 @@

1 1

.dialogue-editor-node-view {

2 -

-fx-border-color: azure;

2 +

-fx-border-color: black;

3 3

-fx-border-width: 2;

4 4

-fx-border-style: solid;

5 5

-fx-border-radius: 5 5 5 5;

6 6

-fx-background-radius: 10 10 10 10;

7 7

-fx-background-color: rgba(0, 0, 0, 0.55);

8 8

}

9 9 10 +

.dialogue-editor-node-view-selected {

11 +

-fx-border-color: azure;

12 +

}

13 + 10 14

.dialogue-editor-node-view .title {

11 15

-fx-border-color: transparent;

12 16

-fx-border-width: 2;

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