mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 11:01:36 +00:00
- fake generic font support for the dialogue system.
This commit is contained in:
parent
cedc5a9702
commit
b702a5a514
1 changed files with 14 additions and 0 deletions
|
@ -83,6 +83,13 @@ class ConversationMenu : Menu
|
|||
int mSelection;
|
||||
int ConversationPauseTic;
|
||||
int LineHeight;
|
||||
int ReplyLineHeight;
|
||||
Font displayFont;
|
||||
int displayWidth;
|
||||
int displayHeight;
|
||||
int fontScale;
|
||||
int refwidth;
|
||||
int refheight;
|
||||
|
||||
int SpeechWidth;
|
||||
int ReplyWidth;
|
||||
|
@ -106,8 +113,15 @@ class ConversationMenu : Menu
|
|||
ConversationPauseTic = gametic + 20;
|
||||
DontDim = true;
|
||||
|
||||
displayFont = SmallFont;
|
||||
displayWidth = CleanWidth;
|
||||
displayHeight = CleanHeight;
|
||||
fontScale = CleanXfac;
|
||||
refwidth = 320;
|
||||
refheight = 200;
|
||||
ReplyWidth = 320-50-10;
|
||||
SpeechWidth = screen.GetWidth()/CleanXfac - 24*2;
|
||||
ReplyLineHeight = LineHeight = displayFont.GetHeight();
|
||||
LineHeight = SmallFont.GetHeight();
|
||||
|
||||
FormatSpeakerMessage();
|
||||
|
|
Loading…
Reference in a new issue