erm
This commit is contained in:
parent
34b3c75bf9
commit
d0e7c66c10
|
@ -1,6 +1,10 @@
|
||||||
package pinwindows
|
package pinwindows
|
||||||
|
|
||||||
import rl "github.com/gen2brain/raylib-go/raylib"
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
|
rl "github.com/gen2brain/raylib-go/raylib"
|
||||||
|
)
|
||||||
|
|
||||||
type managewindowfunc func(*RayGuiWindowManager, *RayGuiWindow)
|
type managewindowfunc func(*RayGuiWindowManager, *RayGuiWindow)
|
||||||
|
|
||||||
|
@ -52,6 +56,7 @@ func (winman *RayGuiWindowManager) ProcessUserWindowMovement() {
|
||||||
|
|
||||||
if winman.movingwindow != nil {
|
if winman.movingwindow != nil {
|
||||||
if winman.movingwindowmode == WINDOW_MODE_DRAG {
|
if winman.movingwindowmode == WINDOW_MODE_DRAG {
|
||||||
|
fmt.Println(rl.GetMouseDelta().X)
|
||||||
winman.movingwindow.Pos.X += (rl.GetMouseDelta().X)
|
winman.movingwindow.Pos.X += (rl.GetMouseDelta().X)
|
||||||
winman.movingwindow.Pos.Y += (rl.GetMouseDelta().Y)
|
winman.movingwindow.Pos.Y += (rl.GetMouseDelta().Y)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue