Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / StartTextInput command bringing up an edit box?

Author
Message
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Dec 2016 07:46
Hi all,

I have a part in my game where I need the user to enter their name for a high score, but I'm actually showing what they type graphically on the screen while they type it. And yet, when I use the StartTextInput command it pops up a little edit box on screen as well... Is there any way I can get rid of it?

Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 16th Dec 2016 08:55
I think you can position it offscreen.
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Dec 2016 09:01
Do you know how at all? I tried doing this, but it doesn't seem to show up as a controllable editbox.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 16th Dec 2016 10:48
try this way
(me tested it only at pc)
AGK (Steam) V2.0.21 : Windows 10 Pro 64 Bit : AMD (16.6) Radeon R7 265 : Mac mini OS Sierra (10.12)
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Dec 2016 11:04
Oh wow, so don't use StartTextInput at all?

I'll give it a try and see if that works for me I'll report back once I've tried it out.
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Dec 2016 11:10
That did it, Markus! Thank you!

So I was just using the wrong command!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Dec 2016 11:43
The EditBox is fully configurable. You can do it offscreen as Markus has shown, but you could also put it in the right place on screen with a different or no background and different or no border.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 16th Dec 2016 14:24
a textbox outside the screen is not a fine solution, me still missing an open/close virtual keyboard command and just get the input from them as event.
alternate for a player name input you can use an image/sprite with ABC.. < enter "buttons" zones.
AGK (Steam) V2.0.22 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12)
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 17th Dec 2016 00:17
Good to know. It sounds like I was just barking up the wrong tree by using StartTextInput. Seems like a redundant command given the EditBox functionality.

Login to post a reply

Server time is: 2024-11-24 23:03:23
Your offset time is: 2024-11-24 23:03:23