screen InputBox { OnlyDrawIfCurrentReadyScreen defaultWidget "InputText" widget Button Background { mins 170,20 size 472,559 texture "data/gfx/ui/popup menu_full_1.png" } widget EffectEmitter lightning_orb { mins 405, 88 effectName "HUD_lightning_orb_01" EventToStartEffectsOn "UIStartInputBoxEffect" EventToStopEffectsOn "UIStopInputBoxEffect" //StartOn } widget Label DisplayText { mins 290, 115 size 230, 100 wordWrap style "DisplayText" } widget TextBox InputText { mins 280, 250 size 256, 32 maxlength 32 cursorColor ( 255, 255, 0, 255 ) style "TextBox" eventToClearOn "UIClearInputBoxTextBox" onaction enter "event UIInputTextEnter" } widget Button Ok { mins 336, 430 size 128, 26 text "#OK" textAlignment "center" textVerticalAlignment "top" style "Luxor2Style03" EventToExecuteActionOn "UIInputTextEnter" } widget Button Cancel { mins 336, 480 size 128, 26 text "#Cancel" textAlignment "center" textVerticalAlignment "top" style "Luxor2Style03" } animation In { //init screen color=(255,255,255,0) at 0 ms consoleCommand "event UIStartInputBoxEffect" //at 0 ms colorScreen from (255,255,255,0) to (255,255,255,255) over 300ms speed=Cosine } animation Out { //init screen color=(255,255,255,255) at 0 ms consoleCommand "event UIStopInputBoxEffect" //at 0 ms colorScreen from (255,255,255,255) to (255,255,255,0) over 300ms speed=Cosine } }
edwardfranio