Compare commits
2 Commits
9203acc881
...
acd0028693
| Author | SHA1 | Date | |
|---|---|---|---|
| acd0028693 | |||
| 7c0321265a |
@@ -14,7 +14,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v4
|
||||
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package be.seeseemelk.diceos.system;
|
||||
|
||||
import io.avaje.inject.Component;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class WindowSpawnTask implements OnStartup {
|
||||
private final WindowService windowService;
|
||||
|
||||
@Override
|
||||
public void onStartup() {
|
||||
windowService.spawnWindow(50, 50, 200, 150);
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,10 @@ public class Window extends Container {
|
||||
this.decoration = decoration;
|
||||
}
|
||||
|
||||
public boolean isHovered(int mouseX, int mouseY) {
|
||||
return mouseX >= x && mouseX <= x + width && mouseY >= y && mouseY <= y + height;
|
||||
}
|
||||
|
||||
private int dragOffsetX, dragOffsetY;
|
||||
private boolean isDragging;
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 205 B |
Reference in New Issue
Block a user