Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |
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 |
//============================================================================= // MenuUIMenuButtonWindow //============================================================================= class MenuUIMenuButtonWindow extends MenuUIBorderButtonWindow; var Texture buttonLights[4]; var int buttonLightWidth; // ---------------------------------------------------------------------- // InitWindow() // // Initialize the Window // ---------------------------------------------------------------------- event InitWindow() { Super.InitWindow(); // Load the menu font from the DXFonts package fontButtonText = Font(DynamicLoadObject("DXFonts.MainMenuTrueType", Class'Font')); } // ---------------------------------------------------------------------- // DrawWindow() // ---------------------------------------------------------------------- event DrawWindow(GC gc) { // Allow the parent to draw the bulk of the button and the text Super.DrawWindow(gc); // Now draw the pretty light to the left of the button gc.DrawTexture(0, 0, buttonLightWidth, buttonHeight, 0, 0, buttonLights[textColorIndex]); } // ---------------------------------------------------------------------- // ---------------------------------------------------------------------- defaultproperties { buttonLights(0)=Texture'DeusExUI.UserInterface.MenuMainLight_Normal' buttonLights(1)=Texture'DeusExUI.UserInterface.MenuMainLight_Focus' buttonLights(2)=Texture'DeusExUI.UserInterface.MenuMainLight_Focus' buttonLights(3)=Texture'DeusExUI.UserInterface.MenuMainLight_Normal' buttonLightWidth=7 bTranslucentText=True Left_Textures(0)=(Tex=Texture'DeusExUI.UserInterface.MenuMainButtonNormal_Left',Width=5) Left_Textures(1)=(Tex=Texture'DeusExUI.UserInterface.MenuMainButtonPressed_Left',Width=5) Right_Textures(0)=(Tex=Texture'DeusExUI.UserInterface.MenuMainButtonNormal_Right',Width=20) Right_Textures(1)=(Tex=Texture'DeusExUI.UserInterface.MenuMainButtonPressed_Right',Width=20) Center_Textures(0)=(Tex=Texture'DeusExUI.UserInterface.MenuMainButtonNormal_Center',Width=2) Center_Textures(1)=(Tex=Texture'DeusExUI.UserInterface.MenuMainButtonPressed_Center',Width=2) leftOffset=9 buttonHeight=27 minimumButtonWidth=245 textLeftMargin=-4 bTranslucent=True bCenterText=True } |
Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |