Please login or register.

Login with username, password and session length
Advanced search  

News:

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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - noelbruton

Pages: [1]
1
Technical forum / Discussion Topic - Windows InGame?
« on: July 02, 2008, 09:01:55 PM »
Hi all

Noticed a side effect of the InGame attribute and I wonder if it's worth a debate. InGame seems to default to false. The effect of that, if you're using a window that's the same size as your viewport, is that you can't see the inventory. You wouldn't notice if your window were smaller than the viewport of course.

So the debate - should we all gang up on Mnem and force him against a wall and compel him make InGame default to true?  >:D Or should we meet him in a pub and try to sway him with gentle suggestion?  ::beer Or, perhaps neither? I guess you could always remember to change the attribute - but hey, what are defaults for if not for avoiding having to remember everything?  :D

Best,

Noel


2
Technical forum / Cursor hover over window?
« on: April 15, 2008, 07:00:38 PM »
Hi,

I have an item some_item in the inventory.

The item's definition includes CURSOR = "items\Plain\some_item.png" and
CURSOR_HOVER = "items\Highlighted\some_item.png"

In the window's script file, there is a section of code beginning

on "some_item"

which works as expected; except that the cursor is not highlighted when it is over the window. The CURSOR_HOVER appears not to work over windows.

Can anyone suggest why that might be?

Thanks

3
Technical forum / Using Editor - Window won't close
« on: January 02, 2008, 12:02:10 PM »
Am I doing something stupid? I have a window with an editor and two buttons. I can enter text in the editor and I can see the cursors over the buttons but the buttons do not respond, window will not close, ESC doesn't work and I have to CTRL-ALT-DEL to get out of the scene.

The game calls the window:
  var MyWindow = Game.LoadWindow("scenes\Computer\scr\password.window");
  MyWindow.Center();
  MyWindow.GoExclusive();

The window says:
 WINDOW
 {
  X = 0
  Y = 0
  WIDTH = 1024
  HEIGHT = 768
  NAME = "PasswordWindow"
  IMAGE = "scenes\17_Rhiannon\Computer\PasswordScreen.png"
  SCRIPT = "scenes\17_Rhiannon\Computer\scr\password.script"

  EDIT
    {
    NAME = "pwentry"
    ; position and size (relative to the window position)
    X = 383
    Y = 370
    WIDTH = 250
    HEIGHT = 42
    ; editor state
    VISIBLE = TRUE
    DISABLED = FALSE
    ; fonts 
    FONT = "fonts\sserif.font"
    FONT_SELECTED = "fonts\outline_red.font"
    ; extended properties
    PARENT_NOTIFY = TRUE
    MAX_LENGTH = 8
    FRAME_WIDTH = 2
    }     

  BUTTON
    {
    NAME = "ok"
    X = 578
    Y = 426
    WIDTH = 60
    HEIGHT = 36
   CURSOR = "sprites\system\RhiannonCursors\Action2.png"
    }

  BUTTON
    {
    NAME = "power_down"
    X = 512
    Y = 692
    WIDTH = 40
    HEIGHT = 50
   CURSOR = "sprites\system\RhiannonCursors\Action2.png"
    }
 }

The Window script says:

 #include "scripts\base.inc"
 #include "scripts\keys.inc"

 var Editor;
 Editor = this.GetControl("pwentry");
 
////////////////////////////////////////////////////////////////////////////////

on "ok"
  {
  // Check whether it's the right password
  this.Close();
  }

on "power_down"
  {
  this.Close();
  }

////////////////////////////////////////////////////////////////////////////////
on "Keypress"
  {
  var button;

  if(Keyboard.KeyCode==VK_ESCAPE)
    {
    button = self.GetControl("close");
    button.Press();
    }
  else if(Keyboard.KeyCode==VK_RETURN)
    {
    button = self.GetControl("ok");
    button.Press();
    }
  }

I've read everything I can find on the forum and now I'm completely at a loss. Can anybody help please?

Thanks

NB

Pages: [1]

Page created in 0.046 seconds with 22 queries.