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: window.FadeColor doesn't work  (Read 3507 times)

0 Members and 1 Guest are viewing this topic.

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
window.FadeColor doesn't work
« on: June 04, 2008, 08:10:11 AM »

I want to have a window filled with a specified color. I try to set FadeColor in WindowEdit, but it has no effect. Then I tried to set FadeColor by script,
Code: [Select]
window.FadeColor = MakeRGBA(128,255,0,0)but it also had no effect. What I do wrong?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: window.FadeColor doesn't work
« Reply #1 on: June 04, 2008, 08:18:53 AM »

Fade color affects the scene below the window (e.g. you want to dim the scene if the window is on). If you want to change the color of window itself, use AlphaColor.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
Re: window.FadeColor doesn't work
« Reply #2 on: June 04, 2008, 09:25:09 AM »

Mmm... How can I fill window's background?
Code: [Select]
win.AlphaColor = MakeRGBA(0, 255, 0, 128);has effect to opacity of the displayed text only. But I need a color window.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: window.FadeColor doesn't work
« Reply #3 on: June 04, 2008, 09:34:42 AM »

Well you can't. You will always need some sprite to define the window graphics. But you can for example use just a plain white rectangle image for window background, and change it's color using the AlphaColor property.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
Re: window.FadeColor doesn't work
« Reply #4 on: June 04, 2008, 10:16:48 AM »

Well, I have window which changes its size fit to contained text. How can I fill the background of this window? Sprite has fixed size.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: window.FadeColor doesn't work
« Reply #5 on: June 04, 2008, 10:22:24 AM »

Use the tiled image. And the image will be the plain white rectangle.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.044 seconds with 23 queries.