Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

DeusEx.MenuUIMessageBoxShadowWindow


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
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
//=============================================================================
// MenuUIMessageBoxShadowWindow
//=============================================================================

class MenuUIMessageBoxShadowWindow extends MenuUIShadowWindow;

var Texture texShadows[4];
var int     textureIndex;

// ----------------------------------------------------------------------
// DestroyWindow()
//
// Unload texture memory used by background textures
// ----------------------------------------------------------------------

function DestroyWindow()
{
    local int unloadIndex;

    for(unloadIndex=0; unloadIndex<arrayCount(texShadows); unloadIndex++)
        player.UnloadTexture(texShadows[unloadIndex]);

    Super.DestroyWindow();
}

// ----------------------------------------------------------------------
// DrawWindow()
// ----------------------------------------------------------------------

event DrawWindow(GC gc)
{   
    gc.SetStyle(DSTY_Modulated);
    gc.DrawTexture(0,   0, 256, shadowHeight, 0, 0, texShadows[0 + (textureIndex * 2)]);
    gc.DrawTexture(256, 0, shadowWidth - 256, shadowHeight, 0, 0, texShadows[1 + (textureIndex * 2)]);
}

// ----------------------------------------------------------------------
// SetButtonCount()
// ----------------------------------------------------------------------

function SetButtonCount(int newButtonCount)
{
    if ((newButtonCount >= 1) && (newButtonCount <= 2))
        textureIndex = newButtonCount - 1;
}

// ----------------------------------------------------------------------
// ----------------------------------------------------------------------

defaultproperties
{
     texShadows(0)=Texture'DeusExUI.UserInterface.MenuMessageBoxShadow1_1'
     texShadows(1)=Texture'DeusExUI.UserInterface.MenuMessageBoxShadow1_2'
     texShadows(2)=Texture'DeusExUI.UserInterface.MenuMessageBoxShadow2_1'
     texShadows(3)=Texture'DeusExUI.UserInterface.MenuMessageBoxShadow2_2'
     shadowWidth=316
     shadowHeight=154
     shadowOffsetX=13
     shadowOffsetY=13
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mon 8/11/2021 16:22:52.000 - Creation time: Mon 8/11/2021 16:31:29.212 - Created with UnCodeX