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: Have subtitles show in response box  (Read 2700 times)

0 Members and 1 Guest are viewing this topic.

sunrosea

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
    • View Profile
Have subtitles show in response box
« 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?
Logged

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • View Profile
    • Tele Juego
Re: Have subtitles show in response box
« Reply #1 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");
  }

sunrosea

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
    • View Profile
Re: Have subtitles show in response box
« Reply #2 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.
Logged
 

Page created in 0.018 seconds with 24 queries.