Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: sunrosea on September 07, 2012, 12:50:19 PM
-
Hey again, another issue this time :)
Well, I would like to have the subtitles to my character to be in the response box. Like I want all subtitles and talking stuff to be displayed at the same area
at the bottom of the screen with a plain colored background.
How would I implement this?
-
var Win = Game.CreateWindow();
AddText("Hello Word");
Sleep(4000);
if(Win!=null)
{
Win.Close();
Game.UnloadObject(Win);
}
function AddText(Text)
{
var Static = Win.CreateStatic();
if(Text==null) Static.Text = "";
else Static.Text = Text;
Static.X = 10; //to be displayed at the same area//
Static.Y = 100;
Static.Width = Game.ScreenWidth;
Static.Height = 32;
Static.TextAlign = TAL_CENTER;
Static.SetFont("fonts\arial_bold.font");
}
-
Thanks again! :) I had it figured out another way tho. But this could be useful for anyone else wanting to do this.