Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: SSH on Wed 16/11/2005 13:26:18

Title: SUGGESTION: GetNormalFont/GetSpeechFont (IMPLEMENTED)
Post by: SSH on Wed 16/11/2005 13:26:18
Well, all I want if the first one, and here's why:

I want to RawPrint in a different font, in a module I am wiritng. I do not control what the normal NormalFont is, so I want to restore it when I finish. I'd like to do:


int savefont=GetNormalFont();
SetNormalFont(myfont);
RawPrint(5, 50, "balh de balh");
SetNormalFont(savefont);


but I can't Get, only Set just now. Of course, the property-style "game.normal_font" might be better, but I'm not fussy how it is implemented.

While we're at it, if there are any other write-only things in AGS, can we fix those too?  ;D
Title: Re: SUGGESTION: GetNormalFont/GetSpeechFont
Post by: Rui 'Trovatore' Pires on Wed 16/11/2005 13:27:50
For instance, could we GET the current mouse mode's graphic, or the graphic of any other mode? ::)
Title: Re: SUGGESTION: GetNormalFont/GetSpeechFont
Post by: Pumaman on Wed 16/11/2005 19:41:23
GetNormalFont and GetCursorGraphic sound like reasonable requests to me.
Title: Re: SUGGESTION: GetNormalFont/GetSpeechFont
Post by: strazer on Wed 16/11/2005 21:18:44
Implemented as of AGS v2.72 Beta 1.