fixed mouse release in body builder menu
This commit is contained in:
parent
3ef7ffd031
commit
42cdfce1a1
34
3D Input/Stierbg.jpg.import
Normal file
34
3D Input/Stierbg.jpg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Stierbg.jpg-b439c056e778b8fb16ae62aa15547147.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://3D Input/Stierbg.jpg"
|
||||
dest_files=[ "res://.import/Stierbg.jpg-b439c056e778b8fb16ae62aa15547147.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
34
3D Input/horselegimg.jpg.import
Normal file
34
3D Input/horselegimg.jpg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/horselegimg.jpg-8935d9a9effef767d66fb9866f38d2c4.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://3D Input/horselegimg.jpg"
|
||||
dest_files=[ "res://.import/horselegimg.jpg-8935d9a9effef767d66fb9866f38d2c4.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
@ -4,8 +4,9 @@ extends VBoxContainer
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
for entry in BodyPartLoader.bodyparts:
|
||||
var button = Button.new()
|
||||
button.text = entry.key
|
||||
#var button = Button.new()
|
||||
#button.text = entry.key
|
||||
pass
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
|
@ -70,13 +70,11 @@ func _physics_process(delta):
|
||||
|
||||
|
||||
func _input(event):
|
||||
if _viewport.get_viewport().get_mouse_position().x >= 0:
|
||||
if event is InputEventMouseButton:
|
||||
if event.pressed:
|
||||
print("Mouse Click at: ", event.position)
|
||||
_prev_mouse_pos = event.position
|
||||
_viewRot = true
|
||||
else:
|
||||
print("mouse unpressed at: ", event.position)
|
||||
_viewRot = false
|
||||
|
||||
if event is InputEventMouseButton:
|
||||
if event.pressed and _viewport.get_viewport().get_mouse_position().x >= 0:
|
||||
print("Mouse Click at: ", event.position)
|
||||
_prev_mouse_pos = event.position
|
||||
_viewRot = true
|
||||
else:
|
||||
print("mouse unpressed at: ", event.position)
|
||||
_viewRot = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user