-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63e321d
commit df7c1dd
Showing
16 changed files
with
442 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/me/piitex/renjava/events/types/OverlayClickEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package me.piitex.renjava.events.types; | ||
|
||
import javafx.scene.input.MouseEvent; | ||
import me.piitex.renjava.events.Event; | ||
import me.piitex.renjava.gui.overlay.Overlay; | ||
|
||
public class OverlayClickEvent extends Event { | ||
private final Overlay overlay; | ||
private final MouseEvent event; | ||
|
||
|
||
public OverlayClickEvent(Overlay overlay, MouseEvent event) { | ||
this.overlay = overlay; | ||
this.event = event; | ||
} | ||
|
||
public Overlay getOverlay() { | ||
return overlay; | ||
} | ||
|
||
public MouseEvent getHandler() { | ||
return event; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/me/piitex/renjava/events/types/OverlayExitEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package me.piitex.renjava.events.types; | ||
|
||
import javafx.scene.input.MouseEvent; | ||
import me.piitex.renjava.events.Event; | ||
import me.piitex.renjava.gui.overlay.Overlay; | ||
|
||
public class OverlayExitEvent extends Event { | ||
private final Overlay overlay; | ||
private final MouseEvent event; | ||
|
||
public OverlayExitEvent(Overlay overlay, MouseEvent event) { | ||
this.overlay = overlay; | ||
this.event = event; | ||
} | ||
|
||
public Overlay getOverlay() { | ||
return overlay; | ||
} | ||
|
||
public MouseEvent getHandler() { | ||
return event; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/me/piitex/renjava/events/types/OverlayHoverEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package me.piitex.renjava.events.types; | ||
|
||
import javafx.scene.input.MouseEvent; | ||
import me.piitex.renjava.events.Event; | ||
import me.piitex.renjava.gui.overlay.Overlay; | ||
|
||
public class OverlayHoverEvent extends Event { | ||
private final Overlay overlay; | ||
private final MouseEvent mouseEvent; | ||
|
||
public OverlayHoverEvent(Overlay overlay, MouseEvent event) { | ||
this.overlay = overlay; | ||
this.mouseEvent = event; | ||
} | ||
|
||
public Overlay getOverlay() { | ||
return overlay; | ||
} | ||
|
||
public MouseEvent getHandler() { | ||
return mouseEvent; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ public RenScene getRenScene() { | |
public Scene getScene() { | ||
return scene; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.