Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# UWindow.UWindowMessageBoxArea

00001 00002 00003 00004 00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027

    class UWindowMessageBoxArea extends UWindowWindow;

    var string Message;

    function float GetHeight(Canvas C)
    {
    	local float TW, TH, H;
    	local int L;
    	local float OldWinHeight;

    	OldWinHeight = WinHeight;
    	WinHeight = 1000;
    	C.Font = Root.Fonts[F_Normal];
    	TextSize(C, "A", TW, TH);
    	L = WrapClipText(C, 0, 0, Message,,,, True);
    	H = TH * L;
    	WinHeight = OldWinHeight;
    	return H;
    }

    function Paint(Canvas C, float X, float Y)
    {
    	C.Font = Root.Fonts[F_Normal];
    	C.SetDrawColor(0,0,0);
    	WrapClipText(C, 0, 0, Message);
    	C.SetDrawColor(255,255,255);
    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Class file time: ne 5.9.2004 16:02:32.000 - Creation time: st 23.5.2018 00:10:50.140 - Created with UnCodeX