[t:interface,n:game_console] { intended_resolution_height = 480; intended_resolution_width = 640; skrit = [[ owner = UIWindow; UIEditBox console$; #include "k_inc_console_cmn" #include "k_inc_console_sp" void ProcessText$ { console$ = QueryDerivedEditBox( UIShell.FindUIWindow( "console_edit", "game_console" ) ); string input$; console$.GetText( input$ ); int elements$ = StringTool.GetNumDelimitedValues( input$, ' ' ); string command$ = ( elements$ == 1 ? input$ : StringTool.GetDelimitedString( input$, 0, ' ', "" ) ); if ( command$ != "" ) { if ( ProcessCommandSP$( command$, input$, elements$ ) ) { console$.SetText(""); return; } } Messenger.Notify( "console_submit_text", console$ ); } ]]; [t:edit_box,n:console_edit] { f alpha = 0.300000; i bottom_anchor = 56; b clear_select = true; b common_control = false; common_template = ; i draw_order = 33; i font_color = -1; i font_size = 15; font_type = b_gui_fnt_12p_copperplate-light; group = console_edit; b is_bottom_anchor = true; i max_string_size = 256; b permanent_focus = true; rect = 125,424,516,442; text = ""; b topmost = true; uvcoords = 0.000000,0.000000,1.000000,1.000000; wrap_mode = clamp; [messages] { oncreated = setvisible(false) & showgroup(false); oneditselect = call(ProcessText$) & setvisible(false) & notify(hide_console); } [prompt] { texture = b_gui_fe_m_single_prompt; width = 1; } } [t:dialog_box,n:dialog_box_console_bg] { f alpha = 1.000000; i bottom_anchor = 58; b common_control = true; common_template = cpbox; i draw_order = 16; group = console_edit; b is_bottom_anchor = true; rect = 120,422,541,444; uvcoords = 0.000000,0.000000,1.000000,1.000000; wrap_mode = clamp; topmost = true; consumable = true; } }