-- help area for a TOOL infoareaxpos=50 infoareaypos=34 infoareadx=512 infoaready=256 picturedx=256 picturedy=infoaready _file_texture_bgrd01="Menu\\MenuTextures\\evd_info_menu\\bgrd_01_evd_tool.dds" _file_texture_bgrd02="Menu\\MenuTextures\\evd_info_menu\\bgrd_02_evd_tool.dds" _file_texture_bgrd03="Menu\\MenuTextures\\evd_info_menu\\bgrd_03_evd_tool.dds" _file_texture_bgrd04="Menu\\MenuTextures\\evd_info_menu\\bgrd_04_evd_tool.dds" _file_texture_up_arrow_0 = "Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_susUp.dds" _file_texture_up_arrow_1 = "Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_susPress.dds" _file_texture_down_arrow_0 = "Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_josUp.dds" _file_texture_down_arrow_1 = "Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_josPress.dds" _fontscale_case_normal= "0.85" _fontscale_case_sel= "0.59" alpha_text_normal = 255 r_text_normal = 75 g_text_normal = 169 b_text_normal = 189 alpha_text_sel = 255 r_text_sel = 255 g_text_sel = 205 b_text_sel = 10 _bgrd_mask_up="menu\\menutextures\\evd_info_menu\\masca_Sus.dds" _bgrd_mask_down="menu\\menutextures\\evd_info_menu\\masca_Jos.dds" function tool_help_area() SetMaterial( 'tool_help_area', 0 , _file_texture_bgrd01 , 255,255,255,255 ); SetMaterial( 'tool_help_area', 1 , _file_texture_bgrd01 , 255,255,255,255); SetPos( 'tool_help_area', 0 , infoareaxpos, infoareaypos); SetDim( 'tool_help_area', 0 , 512 , 256 ); SetPos( 'tool_help_area', 1 , infoareaxpos, infoareaypos); SetDim( 'tool_help_area', 1 , 512 , 256 ); AddStaticObject("tool_help_area","tool_info_bgrd02"); AddStaticObject("tool_help_area","tool_info_bgrd03"); AddStaticObject("tool_help_area","tool_info_bgrd04"); --AddStaticObject("tool_help_area","tool_info_bgrd05"); --AddStaticObject("tool_help_area","tool_info_bgrd06"); -- text box: AddMultilineStatic( "tool_help_area" ,"tool_help_multi"); AddStaticObject("tool_help_area","tool_info_mask_up"); AddStaticObject("tool_help_area","tool_info_mask_down"); -- scroll buttons : AddStaticObject("tool_help_area","tool_info_area_upscroll"); AddStaticObject("tool_help_area","tool_info_area_downscroll"); AddStaticObject("tool_help_area","tool_info_name_box"); AddStaticObject("tool_help_area","tool_info_title"); AddStaticObject("tool_help_area","tool_info_common_back"); -- picture: AddStaticObject("tool_help_area","tool_info_area_picture"); SetFlagButton("tool_help_area",2,"tool_info_area_upscroll"); SetFlagButton("tool_help_area",3,"tool_info_area_downscroll"); GUISetVisible("tool_help_multi", 1 ); end function tool_info_mask_up() SetMaterial( 'tool_info_mask_up', 0, _bgrd_mask_up, 255, 255, 255, 255 ); SetPos( 'tool_info_mask_up', 0, 50 , 94 ); SetDim( 'tool_info_mask_up', 0, 256 ,32 ); end function tool_info_mask_down() SetMaterial( 'tool_info_mask_down', 0, _bgrd_mask_down, 255, 255, 255, 255 ); SetPos( 'tool_info_mask_down', 0, 50 , 270 ); SetDim( 'tool_info_mask_down', 0, 256 ,32 ); end function tool_info_common_back() SetMaterial( "tool_info_common_back" , 0 , _cp_common_back , 255 , 255 , 255 , 255 ); SetPos( "tool_info_common_back" , 0 , 68 , 315 ); SetDim( "tool_info_common_back" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "tool_info_common_back" , _dec_but_font_no , 5 , "back" ); SetFontScale('tool_info_common_back' , _fontscale_dec_buttons ); SetTextColor( "tool_info_common_back", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'tool_info_common_back', _back_bt_offset_x ,_back_bt_offset_y , _back_bt_dx, _back_bt_dy ); end function tool_info_bgrd02() SetMaterial( 'tool_info_bgrd02', 0, _file_texture_bgrd02 , 255,255,255,255 );-- ND SetPos( 'tool_info_bgrd02', 0, 562 , 36 ); SetDim( 'tool_info_bgrd02', 0, 64 , 256 ); end function tool_info_bgrd03() SetMaterial( 'tool_info_bgrd03', 0, _file_texture_bgrd03 , 255,255,255,255 );-- ND SetPos( 'tool_info_bgrd03', 0, 50 , 290 ); SetDim( 'tool_info_bgrd03', 0, 512 , 128 ); end function tool_info_bgrd04() SetMaterial( 'tool_info_bgrd04', 0, _file_texture_bgrd04 , 255,255,255,255 );-- ND SetPos( 'tool_info_bgrd04', 0, 562 , 290 ); SetDim( 'tool_info_bgrd04', 0, 64 , 128 ); end function tool_help_multi() SetMaterial( 'tool_help_multi', 0, "", 0,5,7,0 );-- ND SetMaterial( 'tool_help_multi', 1, "", 0,3,3,0 ); SetPos( 'tool_help_multi', 0, infoareaxpos + 28 , infoareaypos + 60 ); SetDim( 'tool_help_multi', 0, 160 , 194 ); SetPos( 'tool_help_multi', 1, infoareaxpos + 28 , infoareaypos + 60 ); SetDim( 'tool_help_multi', 1, 160 , 194 ); SetTextColor('tool_help_multi', 222 , 173 , 250 , 206 ); SetFontScale( 'tool_help_multi', "0.66" ); SetState( 'tool_help_multi', 0); SetTxt('tool_help_multi', 1 ,0,"NULL"); end function tool_info_name_box() SetMaterial( 'tool_info_name_box', 0, "", 0,5,3,0 );-- ND SetMaterial( 'tool_info_name_box', 1, "", 0,3,3,0 ); SetTxt( 'tool_info_name_box', 1, 5, "NULL" ) SetFontScale('tool_info_name_box', "0.72" ); SetPos( 'tool_info_name_box', 0, infoareaxpos + 4, infoareaypos + 29 ); SetDim( 'tool_info_name_box', 0, 500 , 14); SetPos( 'tool_info_name_box', 1, infoareaxpos + 20, infoareaypos + 29 ); SetDim( 'tool_info_name_box', 1, 500 , 14 ); end function tool_info_title() SetMaterial( 'tool_info_title', 0, "", 0,5,3,0 );-- ND SetMaterial( 'tool_info_title', 1, "", 0,3,3,0 ); SetTxt( 'tool_info_title', 1 , 5, "TV_Title" ) SetPos( 'tool_info_title', 0, infoareaxpos + 28, infoareaypos + 5); SetDim( 'tool_info_title', 0, 470 , 14); SetPos( 'tool_info_title', 1, infoareaxpos + 28, infoareaypos + 5); SetDim( 'tool_info_title', 1, 470 , 14); SetFontScale( "tool_info_title", "0.85" ); end function tool_info_area_picture() SetMaterial( 'tool_info_area_picture', 0, "", 255,255,255,255 );-- ND SetMaterial( 'tool_info_area_picture', 1, "", 255,255,255,255 ); SetPos( 'tool_info_area_picture', 0, infoareaxpos + 220 , infoareaypos + 68 ); SetDim( 'tool_info_area_picture', 0, 256 , 256 ); SetPos( 'tool_info_area_picture', 1, infoareaxpos + 220, infoareaypos + 68 ); SetDim( 'tool_info_area_picture', 1, 256 , 256 ); end function tool_info_area_upscroll() SetMaterial( 'tool_info_area_upscroll', 0, _file_texture_up_arrow_1 , 255,255,255,255 );-- ND SetMaterial( 'tool_info_area_upscroll', 1, _file_texture_up_arrow_0 , 255,255,255,255 ); SetPos( 'tool_info_area_upscroll', 0, 139, 100); SetDim( 'tool_info_area_upscroll', 0, 32 , 16 ); SetPos( 'tool_info_area_upscroll', 1, 139, 100); SetDim( 'tool_info_area_upscroll', 1, 32 , 16 ); end function tool_info_area_downscroll() SetMaterial( 'tool_info_area_downscroll', 0, _file_texture_down_arrow_1 , 255,255,255,255 );-- ND SetMaterial( 'tool_info_area_downscroll', 1, _file_texture_down_arrow_0 , 255,255,255,255 ); SetPos( 'tool_info_area_downscroll', 0, 139, 280); SetDim( 'tool_info_area_downscroll', 0, 32 , 16 ); SetPos( 'tool_info_area_downscroll', 1, 139, 280); SetDim( 'tool_info_area_downscroll', 1, 32 , 16 ); end