November 04, 2024, 01:42:15 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
For WME related articles and tutorials visit
WME Resource Center
.
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Entering data into an editor
« previous
next »
Pages: [
1
]
Print
Author
Topic: Entering data into an editor (Read 2717 times)
0 Members and 1 Guest are viewing this topic.
Kaz
Arberth Studios
Regular poster
Karma: 1
Offline
Posts: 228
The story is the game
Entering data into an editor
«
on:
April 05, 2008, 04:54:47 PM »
Hello all
I've created a window with an editor in it to act as a password entry field. There's an OK button to press. It worked great until about an hour ago then the editor would suddenly no longer appear on the screen. I must have changed something I guess but I can't imagine what and it looks to me like it should work.
The window script is:
global PasswordCracked;
var PasswordControl;
var PasswordText;
var CorrectPassword = "happy";
////////////////////////////////////////////////////////////////////////////////
on "button"
{
PasswordControl = self.GetControl("PwEntry");
PasswordText = PasswordControl.Text;
Game.Msg("PasswordText is "+PasswordText);
if(PasswordText == CorrectPassword)
{
PasswordCracked = true;
Game.Msg("YIPPEE!!!!!");
}
else
{
Game.Msg("Aargh???");
}
}
The window contains an editor called PwEntry and a button called 'button'.
I used to get a cursor and a place to enter data, now I don't. Can anybody help please?
Cheers
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: Entering data into an editor
«
Reply #1 on:
April 05, 2008, 05:02:50 PM »
I don't understand. So you see the window, you see the editor, but you can't enter text into it? Be sure you display the window in exclusive mode (window.GoExclusive()), otherwise it doesn't receive keyboard input.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
Kaz
Arberth Studios
Regular poster
Karma: 1
Offline
Posts: 228
The story is the game
Re: Entering data into an editor
«
Reply #2 on:
April 05, 2008, 05:41:50 PM »
That did it. I had removed the GoExclusive because I wanted another entity available outside the window. No matter, the window's transparent anyway so I'll just increase its size to cover the entity and add another transparent button.
Thanks Mnemonic. The more I learn about this engine, the more astonished I am at its capabilities.
Here's to you and your efforts.
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Entering data into an editor