Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Text box #334574
07/24/10 00:30
07/24/10 00:30
Joined: Jul 2009
Posts: 80
Area 51
F
fangedscorpion Offline OP
Junior Member
fangedscorpion  Offline OP
Junior Member
F

Joined: Jul 2009
Posts: 80
Area 51
I was wondering if there is a way to code a text box into my game. I am looking for something similar to L4D's chat boxes or the console.

Any help would be great thanks!


"Pow! You are dead! Not big suprise!" -Heavy
Re: Text box [Re: fangedscorpion] #334578
07/24/10 00:34
07/24/10 00:34
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
this is what i use on my lib.
Code:
function edit_textbox4(STRING* t){
STRING* char_t="";
inkey_active=0;
wait(1);
str_cpy(t,"clearing...");
wait(-1);
str_cpy(t,"");

loop:
inchar(char_t);

if(key_lastpressed!= 28 && key_lastpressed!=14 && key_lastpressed!=1 ){ if(str_len(t)<=100){ str_cat(t,char_t);} goto loop; }
if(key_lastpressed== 14 ){ str_trunc(t,1);goto loop;}
}



you can constrain the size of characters.
BUT THIS IS NOTA A GUI WINDOWS STYLE TEXTBOX!
For that i think there are other topics on the forum already

Last edited by MMike; 07/24/10 00:35.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1