Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

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 Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
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 Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
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. ::wave

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
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.  ::beer   
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
 

Page created in 0.035 seconds with 23 queries.