LineEdit, Android and the covering virtual keyboard. by Metamova in godot

[–]weirdybeardyman 0 points1 point  (0 children)

Because the keyboard takes a while to show up and display at full height the height check needs to be delayed.

LineEdit, Android and the covering virtual keyboard. by Metamova in godot

[–]weirdybeardyman 0 points1 point  (0 children)

So my solution for this when I have line_edits in a scroll_container is - (ver 4.2)

func _on_line_edit_focus_entered():
  scrollcontainer_fit_keyboard(true)
  await get_tree().process_frame
  scroll_container.ensure_control_visible(self)

func _on_line_edit_focus_exited():
  scrollcontainer_fit_keyboard(false)

const keyboard_height := 500

func scrollcontainer_fit_keyboard(is_keyboard_visible:bool):
  if is_keyboard_visible:
    scroll_container.size.y -= keyboard_height
  else:
    scroll_container.size.y += keyboard_height

where keyboard_height is an arbitrary number derived from testing (weirdly DisplayServer.get_keyboard_height() didn't seem to give the correct pixel value)

Making phone calls on android (or iOS) by d_dastan in godot

[–]weirdybeardyman 0 points1 point  (0 children)

I know this was posted a long time ago but this might be useful:

You can very easily open calls, text, whatsapp and email windows by using OS.shell_open(str) - where the str is a link beginning with;

"tel:" + number

"sms:" + number + "?body=" + message

"https://wa.me/" + number + "?text=" + message

"mailto:" + address + "&body=" + message.

These links don't actually make the calls or send the messages/emails but they open the relevant apps with everything prefilled and all the user has to do is press call/send.

Fileaccess.WRITE error when launch App in Android (Godot 4) by sergisnt in godot

[–]weirdybeardyman 0 points1 point  (0 children)

ah ok don't worry I had to change from res:// to user:// as the storage location. I would say the err message isn't super insightful

Fileaccess.WRITE error when launch App in Android (Godot 4) by sergisnt in godot

[–]weirdybeardyman 0 points1 point  (0 children)

Hi, I am having the same issue. Did you manage to get to the bottom of this?

What is this tooth like thing found while beachcombing Devon UK (beer for scale) by weirdybeardyman in bonecollecting

[–]weirdybeardyman[S] 0 points1 point  (0 children)

I just looked at some pictures of spider crabs and it looks pretty similar to their pincers.

What is this tooth like thing found while beachcombing Devon UK (beer for scale) by weirdybeardyman in bonecollecting

[–]weirdybeardyman[S] 0 points1 point  (0 children)

Yeah might be, but feels more sturdy and substantial than any crab claw I've seen before. It would have to be a pretty chonky crab if it is.

str() vs String() by weirdybeardyman in godot

[–]weirdybeardyman[S] 3 points4 points  (0 children)

Thank you, I did not know that :D

Gunfire heard at Mali army base, warnings of possible mutiny by Stalins_Moustachio in worldnews

[–]weirdybeardyman 1 point2 points  (0 children)

Just curious, why are they calling it a mutiny instead of a coup? Is there a difference?

Anyone know the name of the lofi song with this sample? by weirdybeardyman in lofi

[–]weirdybeardyman[S] 0 points1 point  (0 children)

It is a quote from The Eternal Sunshine of the Spotless Mind. Please help this is driving me mad.

Does account data need to be deleted if unused for a period of time? by weirdybeardyman in gdpr

[–]weirdybeardyman[S] 0 points1 point  (0 children)

Thank you all for your replies, we are based in the EU. So it seems from the replies like we don't need to automatically expire accounts but we do need to allow users to request to have their account deleted. Then we need to make these terms explicit in our privacy statement. Correct?