erm
This commit is contained in:
parent
1fd13fa66f
commit
34b3c75bf9
2 changed files with 17 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
|||
package pinwindows
|
||||
package pinwindows
|
||||
|
||||
import rl "github.com/gen2brain/raylib-go/raylib"
|
||||
|
||||
|
@ -52,8 +52,8 @@ func (winman *RayGuiWindowManager) ProcessUserWindowMovement() {
|
|||
|
||||
if winman.movingwindow != nil {
|
||||
if winman.movingwindowmode == WINDOW_MODE_DRAG {
|
||||
winman.movingwindow.X += int32(rl.GetMouseDelta().X)
|
||||
winman.movingwindow.Y += int32(rl.GetMouseDelta().Y)
|
||||
winman.movingwindow.Pos.X += (rl.GetMouseDelta().X)
|
||||
winman.movingwindow.Pos.Y += (rl.GetMouseDelta().Y)
|
||||
}
|
||||
if winman.movingwindowmode == WINDOW_MODE_RESZIE {
|
||||
winman.movingwindow.Resize(int(rl.GetMouseDelta().X), int(rl.GetMouseDelta().Y))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue