| View previous topic :: View next topic |
| Author |
Message |
royscott
Joined: 22 Nov 2004 Posts: 27
|
Posted: Sun Jan 23, 2005 4:36 pm Post subject: Window Background |
|
|
| I would like you to consider modifying GUI so that a gif or other image file can be used as the background for a window. Sort of a window wallpaper. This could make individual scripts very distinctive if it is possible. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Sun Jan 23, 2005 4:41 pm Post subject: |
|
|
| This can sorta be done already by using +BackgroundTrans on GUI controls like Text ones. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun Jan 23, 2005 4:54 pm Post subject: |
|
|
I believe you can achieve this effect by adding an image as the very first control. To have it fill the entire window, scale it to be the same as the dimensions used in the Gui Show command.
Since I've not extensively tested this method, please let me know if there are any problems.
P.S. Good point, Titan. |
|
| Back to top |
|
 |
royscott
Joined: 22 Nov 2004 Posts: 27
|
Posted: Mon Jan 24, 2005 4:15 am Post subject: |
|
|
| This works pretty well. However, it will not fill the window background. In spite of everything that I was able to try there was still a narrow margin on the left and top that I could not get the texture to fill. So I cut down the image size so the there was also a narrow margin on the right and bottom. That works out pretty well and looks good. By changing the background color of the window it appears to be a wide border. I also use the transparent command on the text labels so that the texture shows in them. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon Jan 24, 2005 4:22 pm Post subject: |
|
|
| Thanks for the feedback. Hopefully someday there will be an easier and more complete way to set a background image. |
|
| Back to top |
|
 |
|