April 26, 2024, 08:22:40 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
IRC channel - server:
waelisch.de
channel:
#wme
(
read more
)
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Scaleable Response Box
« previous
next »
Pages: [
1
]
Print
Author
Topic: Scaleable Response Box (Read 2540 times)
0 Members and 1 Guest are viewing this topic.
pokinsson
Lurker
Karma: 0
Offline
Posts: 1
Scaleable Response Box
«
on:
September 01, 2008, 01:30:35 PM »
Hi,
I want to change the whole Background-Image of the Responsebox according to the number of choices while the responses are not filling up the box. It sounds possible - but I have no idea how.
Help?
Anybody?
Please?
Logged
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: Scaleable Response Box
«
Reply #1 on:
September 02, 2008, 06:55:23 AM »
Well it's not that easy, because the responses can scroll or wrap if they are too long. However, you should be able to resize the response box by querying its window and change its width/height.
var RespWindow = Game.GetResponsesWindow();
Resp.Window.Height = 200;
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
Prote1n
Lurker
Karma: 0
Offline
Posts: 45
Re: Scaleable Response Box
«
Reply #2 on:
May 11, 2010, 03:15:43 PM »
Modifying the height is quiet easy:
var num = Game.GetNumResponses();
var resp= Game.GetResponsesWindow();
var height = num*20; // height of each line
resp.Height = height ;
But not so easy for the width
Logged
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Scaleable Response Box