Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Is there a way of checking if a window is active?  (Read 2432 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'
Is there a way of checking if a window is active?
« on: July 05, 2008, 10:05:49 AM »

Hi all

Our standard way of 'examining' an inventory item is to call a window to display a large version of it. Thing is, I've only just realised that the player could in theory open as many instances of that window as he likes, something I'd like to prevent. So I'm hoping that WM already has a way of checking whether a given window is open, something like IsActive that I've missed.

Anybody know if that's the case?

If it does, I'll only have 200 scripts to edit. If it doesn't, it's nearer 500. We go beta at the end of July...

Please say it does  :-[

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

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Is there a way of checking if a window is active?
« Reply #1 on: July 05, 2008, 12:58:25 PM »

how about

if (yourWindow.Visible) { Don'tKillKaz(machinegun); }

?
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Re: Is there a way of checking if a window is active?
« Reply #2 on: July 05, 2008, 04:45:20 PM »

Doh.....
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.03 seconds with 23 queries.