Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9203acc881 |
@@ -1,15 +0,0 @@
|
|||||||
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,10 +21,6 @@ public class Window extends Container {
|
|||||||
this.decoration = decoration;
|
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 int dragOffsetX, dragOffsetY;
|
||||||
private boolean isDragging;
|
private boolean isDragging;
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 205 B |
Reference in New Issue
Block a user