Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: sunrosea on September 07, 2012, 12:50:19 PM

Title: Have subtitles show in response box
Post 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?
Title: Re: Have subtitles show in response box
Post by: ciberspace on September 07, 2012, 06:32:56 PM
Quote
var Win = Game.CreateWindow();
AddText("Hello Word");
Sleep(4000);
if(Win!=null)
{
  Win.Close();
  Game.UnloadObject(Win);
}

Quote
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");
  }
Title: Re: Have subtitles show in response box
Post by: sunrosea on September 08, 2012, 07:27:46 AM
Thanks again! :) I had it figured out another way tho. But this could be useful for anyone else wanting to do this.