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: What do I do not so?  (Read 4868 times)

0 Members and 1 Guest are viewing this topic.

HIman

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Russian adventure !
    • View Profile
    • Home WEB by QSP
What do I do not so?
« on: August 21, 2005, 04:00:59 PM »

Greetings!

In an example applied to a cursor wme_demo,
I have created menu1.window and have inserted the program

Code: [Select]
WINDOW
{
  NAME = "WINDOW"
  IMAGE = "interface\menu\menu.bmp"
  SCRIPT = "interface\menu\menu1.script"
  MENU = TRUE

EDIT
  {
  NAME = "MyEditor"
  ;TEMPLATE = "templates\MyTemplate.editor"

  ; position and size (relative to the window position)
  X = 100
  Y = 100
  WIDTH = 200
  HEIGHT = 50

  ; editor state
  VISIBLE = TRUE
  DISABLED = FALSE

  ; text
  TEXT = "My brand new editor" 
 
  ; background
  BACK = "ui_elements\win_inactive.image"
 
  IMAGE = "interface\menu\menu1.sprite"
 
 
  ; fonts 
  FONT = "fonts\outline_white.font"
  FONT_SELECTED = "fonts\outline_red.font"

 
  ; script
  ;SCRIPT = "path\menu1.script"
 
  ; cursor
  ;CURSOR = "path\beam.sprite"
 
  ; extended properties
  PARENT_NOTIFY = TRUE
  MAX_LENGTH = 100
  FRAME_WIDTH = 2
  CURSOR_BLINK_RATE
  }   
}

Preview gives out crach
Run game gives out crach

Example of component EDIT to take from the Documentation
What do I do not so?
HELP  ???
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: What do I do not so?
« Reply #1 on: August 21, 2005, 04:04:25 PM »

Either remove the CURSOR_BLINK_RATE line or assign it a value (CURSOR_BLINK_RATE = 100)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

HIman

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Russian adventure !
    • View Profile
    • Home WEB by QSP
Re: What do I do not so?
« Reply #2 on: August 21, 2005, 06:22:29 PM »

   Thanks, for a prompt reply,
in the documentation turns out not an exact example of the program for EDIT
   But the problem was resolved not up to the end.
Game does not crash, but in the appeared menu
It is impossible to enter or insert anything through the buffer of an exchange.

Excuse for my English.
Logged

HIman

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Russian adventure !
    • View Profile
    • Home WEB by QSP
Re: What do I do not so?
« Reply #3 on: August 21, 2005, 06:26:11 PM »

If quickly to click with a mousy on a window of the menu
That the text to enter it is possible but it appears hardly
And in heading of a window.

Excuse I communicate through the translator
Logged

HIman

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Russian adventure !
    • View Profile
    • Home WEB by QSP
Re: What do I do not so?
« Reply #4 on: August 22, 2005, 11:20:05 AM »

Strange,
I have looked as is made in interface\system\savename.window
Also has repeated on the button in the basic menu of game and it works.
I insert the same piece into the menu which it is caused by the right pressing of a mousy object (there where to look, tell, take) does not work.
Who can tell to me why?
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: What do I do not so?
« Reply #5 on: August 22, 2005, 11:23:00 AM »

I am sorry, but I can't understand at all where is your problem. Maybe try to rephrase or include a small example. Using translator is not the best idea
since many words have completely different meaning and lack of grammar makes it really incomprehensible.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

HIman

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Russian adventure !
    • View Profile
    • Home WEB by QSP
Re: What do I do not so?
« Reply #6 on: August 22, 2005, 11:38:02 AM »

Ok,
I have followed an example wme_demo and in interface\menu\menu.window have inserted
Code: [Select]
  EDIT
  {
    NAME = "desc"
    BACK = "ui_elements\editor.image"
    FONT = "fonts\outline_green.font"
    FONT_SELECTED = "fonts\sserif_sel.font"
    X = 0
    Y = 140
    WIDTH = 250
    HEIGHT = 20
    FRAME_WIDTH = 2
    TEXT = ""
    MAX_LENGTH = 100
    PARENT_NOTIFY = TRUE
  }
After start to insert the text it is not possible.
Why?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: What do I do not so?
« Reply #7 on: August 22, 2005, 05:43:42 PM »

For the editor to receive keyboard input, the window must be in exclusive mode. To make it so, you'll have to modify game.script. Find the following line:

      // and show the right-click menu
      WinMenu.Visible = true;

and change it to:

      // and show the right-click menu
      WinMenu.Visible = true;
      WinMenu.Exclusive = true;
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

HIman

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Russian adventure !
    • View Profile
    • Home WEB by QSP
Re: What do I do not so?
« Reply #8 on: August 23, 2005, 05:37:48 AM »

Thanks Mnemonic
All works  :D
Logged
 

Page created in 0.019 seconds with 23 queries.