local f0_local0 = module local f0_local1, f0_local2 = ... f0_local0( f0_local1, package.seeall ) CoD.PrintModuleLoad( _NAME ) f0_local0 = 30 f0_local1 = 4 f0_local2 = KillstreakTable.Cols.UnearnedIcon local f0_local3 = KillstreakTable.Cols.DPadIcon local f0_local4 = 25.6 local f0_local5 = 25.6 local f0_local6 = 32 local f0_local7 = 32 local f0_local8 = 32 local f0_local9 = 32 local f0_local10 = 0 local f0_local11 = -23 local f0_local12 = function ( f1_arg0, f1_arg1 ) local f1_local0 = 0 for f1_local1 = 0, f0_local1 - 1, 1 do if Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "hasStreak", f1_local1 ) then f1_local0 = f1_local0 + 1 end end if f1_local0 > 1 and (Engine.IsConsoleGame() == true or 1 == Engine.IsGamepadEnabled()) and Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "isSpecialist" ) == false then if f1_arg0.current_state ~= "active" then f1_arg0:animateToState( "active", 250 ) f1_arg0.current_state = "active" end elseif f1_arg0.current_state ~= "default" then f1_arg0:animateToState( "default", 0 ) f1_arg0.current_state = "default" end end local f0_local13 = function ( f2_arg0, f2_arg1 ) local f2_local0 = 0 local f2_local1 = 0 local f2_local2 = Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "count" ) or 0 local f2_local3 = Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "countToNext" ) or 0 local f2_local4 = Game.GetOmnvar( "ui_half_tick" ) if f2_local3 <= f2_local2 then f2_local2 = f2_local3 f2_local4 = false end if 0 < f2_local2 then f2_local0 = 1 f2_local1 = math.min( f2_local2, f2_local3 ) for f2_local5 = f2_local0, f2_local1, 1 do local f2_local8 = f2_arg0:getChildById( f2_local5 ) if f2_local8.current_state ~= "filled" then f2_local8:animateToState( "filled", 250 ) f2_local8.current_state = "filled" end end end if f2_local4 == true then f2_local1 = f2_local2 + 1 local f2_local5 = f2_arg0:getChildById( f2_local1 ) if f2_local5.current_state ~= "half" then f2_local5:animateToState( "half", 250 ) f2_local5.current_state = "half" end end if f2_local2 < f2_local3 then f2_local0 = f2_local1 + 1 f2_local1 = f2_local3 for f2_local5 = f2_local0, f2_local1, 1 do local f2_local8 = f2_arg0:getChildById( f2_local5 ) if f2_local8.current_state ~= "empty" then f2_local8:animateToState( "empty", 250 ) f2_local8.current_state = "empty" end end end f2_local0 = f2_local1 + 1 f2_local1 = f0_local0 for f2_local5 = f2_local0, f2_local1, 1 do local f2_local8 = f2_arg0:getChildById( f2_local5 ) if f2_local8.current_state ~= "default" then f2_local8:animateToState( "default", 100 ) f2_local8.current_state = "default" end end end local f0_local14 = function ( f3_arg0, f3_arg1 ) for f3_local0 = 0, f0_local1 - 1, 1 do local f3_local3 = f3_arg0:getChildById( "icon" .. f3_local0 + 1 ) local f3_local4 = Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "isSpecialist" ) local f3_local5 = Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "hasStreak", f3_local0 ) local f3_local6 = Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "icons", f3_local0 ) local f3_local7 = f0_local2 local f3_local8 = "specialty_null" if f3_local6 ~= 0 then if f3_local5 then f3_local7 = f0_local3 end f3_local8 = Engine.TableLookup( KillstreakTable.File, KillstreakTable.Cols.Index, f3_local6, f3_local7 ) end local f3_local9 = 0 if f3_local7 == f0_local3 then f3_local9 = 1 elseif f3_local7 == f0_local2 and f3_local0 ~= 0 and f3_local8 ~= "specialty_null" then f3_local9 = 0.5 end if f3_local3.current_state ~= f3_local8 or f3_local3.current_alpha ~= f3_local9 then CoD.SetMaterial( f3_local3, RegisterMaterial( f3_local8 ), f3_local9 ) f3_local3.current_state = f3_local8 f3_local3.current_alpha = f3_local9 end end local f3_local0 = f3_arg0:getChildById( "bonusIcon" ) local f3_local1 = Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "hasStreak", 4 ) if f3_local1 and f3_local0.current_state ~= "active" then f3_local0:animateToState( "active", 250 ) f3_local0.current_state = "active" end if not f3_local1 and f3_local0.current_state ~= "default" then f3_local0:animateToState( "default", 0 ) f3_local0.current_state = "default" end end local f0_local15 = function ( f4_arg0, f4_arg1 ) for f4_local0 = 0, f0_local1 - 1, 1 do local f4_local3 = f4_arg0:getChildById( "available" .. f4_local0 + 1 ) if Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "hasStreak", f4_local0 ) then if f4_local3.current_state ~= "available" then f4_local3:animateToState( "ks_slot_available", 250 ) f4_local3.current_state = "available" if Engine.IsConsoleGame() == false and 0 == Engine.IsGamepadEnabled() then local f4_local4 = f4_local3:getChildById( "keybindTextId" ) f4_local4:setText( Engine.GetKeyBindingLocalizedString( 0, f4_local4.keybinding ) ) end end end if f4_local3.current_state ~= "default" then f4_local3:animateToState( "default", 0 ) f4_local3.current_state = "default" end end end local f0_local16 = function ( f5_arg0, f5_arg1 ) local f5_local0 = Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "selectedIndex" ) local f5_local1 = "default" if f5_local0 == 0 then f5_local1 = "ks_slot_0_selected" elseif f5_local0 == 1 then f5_local1 = "ks_slot_1_selected" elseif f5_local0 == 2 then f5_local1 = "ks_slot_2_selected" elseif f5_local0 == 3 then f5_local1 = "ks_slot_3_selected" end if Engine.IsConsoleGame() == false and Engine.IsGamepadEnabled() == 0 then f5_local1 = "default" end if f5_arg0.current_state ~= f5_local1 then f5_arg0:animateToState( f5_local1, 250 ) f5_arg0.current_state = f5_local1 local f5_local2 = f5_arg0:getChildById( "killstreakSelectedHighlight" ) local f5_local3 = f5_local2:getChildById( "killstreakSelectedRightArrow" ) if f5_local1 == "ks_slot_0_selected" then f5_local3:animateToState( f5_local1, 250 ) else f5_local3:animateToState( "default", 250 ) end end end local f0_local17 = function ( f6_arg0, f6_arg1 ) local f6_local0 = 2 local f6_local1 = Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "selectedIndex" ) if f6_local1 >= 0 then local f6_local2 = Engine.Localize( "@" .. Engine.TableLookup( KillstreakTable.File, KillstreakTable.Cols.Index, Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "icons", f6_local1 ), f6_local0 ) ) if f6_local2 ~= nil and f6_local2 ~= f6_arg0.previous_killstreak_name then f6_arg0:setText( f6_local2 ) local f6_local3 = MBh.AnimateSequence( { { "default", 0 }, { "slide_in", 150 }, { "slide_in", 1200 }, { "blink_off", 50 }, { "blink_off", 50 }, { "blink_on", 0 }, { "blink_on", 50 }, { "blink_off", 50 }, { "blink_off", 50 }, { "blink_on", 0 }, { "blink_on", 50 }, { "blink_off", 150 } } ) f6_local3( f6_arg0 ) f6_arg0.previous_killstreak_name = f6_local2 f6_arg0.current_state = "slide_in" end end end local f0_local18 = function ( f7_arg0, f7_arg1 ) local f7_local0 = f7_arg0:getChildById( "killstreakInfoHudId" ) local f7_local1 = f7_local0:getChildById( "killstreakAvailableHud" ) for f7_local2 = 0, f0_local1 - 1, 1 do local f7_local5 = f7_local1:getChildById( "available" .. f7_local2 + 1 ) local f7_local6 = Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "hasStreak", f7_local2 ) local f7_local7 = f7_local5:getChildById( "keybindTextId" ) if f7_local6 then f7_local7:setText( Engine.GetKeyBindingLocalizedString( 0, f7_local7.keybinding ) ) end if 0 == Engine.IsGamepadEnabled() then if not Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "isSpecialist" ) or f7_local2 == 0 then f7_local7:animateToState( "default", 0 ) else f7_local7:animateToState( "inactive", 0 ) end end f7_local7:animateToState( "inactive", 0 ) end end local f0_local19 = function ( f8_arg0, f8_arg1 ) local f8_local0 = GameX.GetGameMode() local f8_local1 if f8_local0 ~= "sotf" and f8_local0 ~= "infect" and Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "countToNext" ) ~= 0 then f8_local1 = false else f8_local1 = true end if f8_local1 then if f8_arg0.current_state ~= "inactive" then f8_arg0:animateToState( "inactive", 0 ) f8_arg0.current_state = "inactive" end elseif f8_arg0.current_state ~= "default" then f8_arg0:animateToState( "default", 0 ) f8_arg0.current_state = "default" end end local f0_local20 = function ( f9_arg0, f9_arg1 ) local f9_local0 = RegisterMaterial( "specialty_null" ) local self = LUI.UIImage.new() self.id = f9_arg0 local f9_local2 = 0 if f9_arg1 then f9_local2 = f9_arg1 end self:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = 0, right = f9_local2, height = f0_local4, width = f0_local5, material = f9_local0, alpha = 0 } ) self:animateToState( "default", 0 ) self:registerAnimationState( "active", { material = f9_local0, alpha = 1 } ) self:registerAnimationState( "inactive", { material = f9_local0, alpha = 0.5 } ) return self end local f0_local21 = function ( f10_arg0, f10_arg1, f10_arg2 ) local self = LUI.UIElement.new() self.id = f10_arg0 self:registerAnimationState( "default", { bottomAnchor = true, rightAnchor = true, bottom = 0, right = 0, height = f10_arg1, width = f10_arg2 } ) self:animateToState( "default", 0 ) return self end local f0_local22 = function ( f11_arg0, f11_arg1, f11_arg2, f11_arg3, f11_arg4, f11_arg5 ) local f11_local0 = RegisterMaterial( "hud_killstreak_available" ) local self = LUI.UIImage.new() self.id = f11_arg0 local f11_local2 = 0 if f11_arg3 then f11_local2 = f11_arg3 end local f11_local3 = 0 if f11_arg4 then f11_local3 = f11_arg4 end self:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = 0, right = f11_local2, height = f11_arg1, width = f11_arg2, alpha = 0, material = f11_local0, zRot = f11_local3 } ) self:animateToState( "default", 0 ) self:registerAnimationState( "ks_slot_available", { material = f11_local0, alpha = 1 } ) if false == Engine.IsConsoleGame() then local f11_local4 = LUI.UIText.new() f11_local4.id = "keybindTextId" f11_local4.keybinding = f11_arg5 f11_local4:setText( Engine.GetKeyBindingLocalizedString( 0, f11_arg5 ) ) if f11_arg4 then f11_local3 = f11_local3 * -1 end f11_local4:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = 0, right = 17, height = CoD.TextSettings.HudEuroMedSmallFont.Height, width = f0_local7, font = CoD.TextSettings.HudEuroMedSmallFont.Font, zRot = f11_local3, alpha = 1 } ) f11_local4:registerAnimationState( "inactive", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = 0, right = 17, height = CoD.TextSettings.HudEuroMedSmallFont.Height, width = f0_local7, font = CoD.TextSettings.HudEuroMedSmallFont.Font, zRot = f11_local3, alpha = 0 } ) if 0 == Engine.IsGamepadEnabled() then if not Engine.GetPlayerData( CoD.StatsGroup.Common, "killstreaksState", "isSpecialist" ) or f11_arg0 == "available1" then f11_local4:animateToState( "default", 0 ) else f11_local4:animateToState( "inactive", 0 ) end else f11_local4:animateToState( "inactive", 0 ) end self:addElement( f11_local4 ) end return self end local f0_local23 = function () local f12_local0 = RegisterMaterial( "hud_killstreak_dpad_arrow_up" ) local f12_local1 = RegisterMaterial( "hud_killstreak_dpad_arrow_down" ) local self = LUI.UIElement.new() self.id = "killstreakScrollArrowsHud" self:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = -52, right = -33, height = 117, width = 19.2, alpha = 0 } ) self:animateToState( "default", 0 ) self:registerAnimationState( "active", { alpha = 1 } ) self:registerEventHandler( "killstreak_info_refresh", f0_local12 ) local f12_local3 = LUI.UIImage.new() f12_local3.id = "killstreakSelectedUpArrow" f12_local3:registerAnimationState( "default", { topAnchor = true, leftAnchor = true, bottomAnchor = false, rightAnchor = false, top = 0, left = 2, height = 12.8, width = 19.2, material = f12_local0 } ) f12_local3:animateToState( "default", 0 ) local f12_local4 = LUI.UIImage.new() f12_local4.id = "killstreakSelectedDownArrow" f12_local4:registerAnimationState( "default", { topAnchor = false, leftAnchor = true, bottomAnchor = true, rightAnchor = true, bottom = 0, height = 12.8, material = f12_local1 } ) f12_local4:animateToState( "default", 0 ) self:addElement( f12_local3 ) self:addElement( f12_local4 ) return self end local f0_local24 = function () local f13_local0 = RegisterMaterial( "hud_killstreak_bar_full" ) local f13_local1 = RegisterMaterial( "hud_killstreak_bar_empty" ) local f13_local2 = RegisterMaterial( "hud_killstreak_bar_half" ) local self = LUI.UIElement.new() self.id = "killstreakTicksHud" self:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = -62, right = -55, height = 275, width = 50 } ) self:animateToState( "default", 0 ) local f13_local4 = LUI.UIVerticalList.new() f13_local4.id = "columnKillstreakTicks" f13_local4:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, top = 0, left = 0, bottom = 0, right = 0, spacing = -4, alignment = LUI.Alignment.Bottom } ) f13_local4:animateToState( "default", 0 ) f13_local4:registerEventHandler( "killstreak_info_refresh", f0_local13 ) for f13_local5 = 1, f0_local0, 1 do local f13_local8 = LUI.UIImage.new() f13_local8.id = f13_local5 f13_local8:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = 0, height = 9.6, right = 0, width = 25.6, material = f13_local0, alpha = 0 } ) f13_local8:animateToState( "default", 0 ) f13_local8:registerAnimationState( "filled", { material = f13_local0, alpha = 1 } ) f13_local8:registerAnimationState( "half", { material = f13_local2, alpha = 1 } ) f13_local8:registerAnimationState( "empty", { material = f13_local1, alpha = 1 } ) f13_local4:addElement( f13_local8 ) end self:addElement( f13_local4 ) return self end local f0_local25 = function () local f14_local0 = RegisterMaterial( "specialty_perks_all" ) local self = LUI.UIVerticalList.new() self.id = "killstreakIconsHud" self:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = -20, right = -26, height = 310, width = 90, spacing = 0, alignment = LUI.Alignment.Bottom } ) self:animateToState( "default", 0 ) self:registerEventHandler( "killstreak_info_refresh", f0_local14 ) local f14_local2 = f0_local20( "icon1", 7 ) local f14_local3 = f0_local20( "icon2" ) local f14_local4 = f0_local20( "icon3" ) local f14_local5 = f0_local20( "icon4" ) local f14_local6 = LUI.UIImage.new() f14_local6.id = "bonusIcon" f14_local6:registerAnimationState( "default", { bottomAnchor = true, rightAnchor = true, bottom = 0, right = 0, height = f0_local4, width = f0_local5, material = f14_local0, alpha = 0 } ) f14_local6:animateToState( "default", 0 ) f14_local6:registerAnimationState( "active", { material = f14_local0, alpha = 1 } ) local f14_local7 = f0_local21( "spacer1", 4, f0_local5 ) local f14_local8 = f0_local21( "spacer2", 16, f0_local5 ) local f14_local9 = f0_local21( "spacer3", 7, f0_local5 ) local f14_local10 = f0_local21( "spacer4", 6, f0_local5 ) local f14_local11 = f0_local21( "spacer5", 15, f0_local5 ) self:addElement( f14_local7 ) self:addElement( f14_local2 ) self:addElement( f14_local8 ) self:addElement( f14_local3 ) self:addElement( f14_local9 ) self:addElement( f14_local4 ) self:addElement( f14_local10 ) self:addElement( f14_local5 ) self:addElement( f14_local11 ) self:addElement( f14_local6 ) return self end local f0_local26 = function () local self = LUI.UIVerticalList.new() self.id = "killstreakAvailableHud" self:registerAnimationState( "default", { bottomAnchor = true, rightAnchor = true, bottom = -20, right = -23, height = 310, width = 90, spacing = 0, alignment = LUI.Alignment.Bottom } ) self:animateToState( "default", 0 ) self:registerEventHandler( "killstreak_info_refresh", f0_local15 ) local f15_local1 = f0_local22( "available1", f0_local6, f0_local7, 8, -45, "+actionslot 4" ) local f15_local2 = f0_local22( "available2", f0_local6, f0_local7, nil, nil, "+actionslot 5" ) local f15_local3 = f0_local22( "available3", f0_local6, f0_local7, nil, nil, "+actionslot 6" ) local f15_local4 = f0_local22( "available4", f0_local6, f0_local7, nil, nil, "+actionslot 7" ) local f15_local5 = f0_local21( "spacer", 10, f0_local7 ) self:addElement( f15_local1 ) self:addElement( f15_local5 ) self:addElement( f15_local2 ) self:addElement( f15_local3 ) self:addElement( f15_local4 ) return self end local f0_local27 = function () local f16_local0 = RegisterMaterial( "hud_killstreak_highlight" ) local f16_local1 = RegisterMaterial( "hud_killstreak_dpad_arrow_right" ) local self = LUI.UIElement.new() self.id = "killstreakSelectedHud" self:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = f0_local10, right = f0_local11, height = f0_local8, width = f0_local9, zRot = 0, alpha = 0 } ) self:animateToState( "default", 0 ) self:registerAnimationState( "ks_slot_0_selected", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = f0_local10 - 20, right = f0_local11 + 7, height = f0_local8, width = f0_local9, zRot = -45, alpha = 1 } ) self:registerAnimationState( "ks_slot_1_selected", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = f0_local10 - 63, right = f0_local11, height = f0_local8, width = f0_local9, zRot = 0, alpha = 1 } ) self:registerAnimationState( "ks_slot_2_selected", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = f0_local10 - 95, right = f0_local11, height = f0_local8, width = f0_local9, zRot = 0, alpha = 1 } ) self:registerAnimationState( "ks_slot_3_selected", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = f0_local10 - 127, right = f0_local11, height = f0_local8, width = f0_local9, zRot = 0, alpha = 1 } ) self:registerEventHandler( "killstreak_info_refresh", f0_local16 ) local f16_local3 = LUI.UIImage.new() f16_local3.id = "killstreakSelectedHighlight" f16_local3:registerAnimationState( "default", { bottomAnchor = true, rightAnchor = true, bottom = 0, right = 0, height = f0_local8, width = f0_local9, material = f16_local0 } ) f16_local3:animateToState( "default", 0 ) local f16_local4 = LUI.UIImage.new() f16_local4.id = "killstreakSelectedRightArrow" f16_local4:registerAnimationState( "default", { bottomAnchor = true, rightAnchor = true, bottom = -5, right = 12, height = 19.2, width = 12.8, material = f16_local1, zRot = 0 } ) f16_local4:animateToState( "default", 0 ) f16_local4:registerAnimationState( "ks_slot_0_selected", { bottomAnchor = true, rightAnchor = true, bottom = -19, right = 5, height = 19.2, width = 12.8, material = f16_local1, zRot = 45 } ) f16_local3:addElement( f16_local4 ) self:addElement( f16_local3 ) return self end local f0_local28 = function () local f17_local0 = RegisterMaterial( "hud_ks_back" ) local self = LUI.UIElement.new() self.id = "killstreakBgHud" self:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = -45, right = -15, height = 128, width = 64, alpha = 1 } ) self:animateToState( "default", 0 ) self:registerAnimationState( "inactive", { alpha = 0 } ) self:registerEventHandler( "killstreak_info_refresh", f0_local19 ) local f17_local2 = LUI.UIImage.new() f17_local2.id = "killstreakBg" f17_local2:registerAnimationState( "default", { topAnchor = true, leftAnchor = true, bottomAnchor = true, rightAnchor = true, material = f17_local0 } ) f17_local2:animateToState( "default", 0 ) self:addElement( f17_local2 ) return self end LUI.MenuBuilder.registerType( "killstreakInfoHudDef", function () local f18_local0 = Engine.IsConsoleGame() == true local self = LUI.UIElement.new() self.id = "killstreakInfoHud" self:registerAnimationState( "default", { topAnchor = false, leftAnchor = false, bottomAnchor = true, rightAnchor = true, bottom = 0, height = 380, right = 0, width = 150, alpha = 1 } ) self:animateToState( "default", 0 ) self:registerAnimationState( "inactive", { alpha = 0 } ) self:registerEventHandler( "show_ks_info", MBh.AnimateToState( "default", 0 ) ) self:registerEventHandler( "hide_ks_info", MBh.AnimateToState( "inactive", 0 ) ) if f18_local0 == false and not GameX.IsHardcoreMode() then self:registerEventHandler( "hud_on", f0_local18 ) end local f18_local2 = { event = "killstreak_info_refresh", group = "hud", interval = 150 } local f18_local3 = LUI.UITimer.new( f18_local2.interval, f18_local2.event, f18_local2.group ) f18_local3.id = "killstreakRefreshTimer" local f18_local4 = LUI.UIText.new() f18_local4.id = "killstreakInfoKillstreakName" f18_local4:setText( "" ) f18_local4:setTextStyle( CoD.TextStyle.Shadowed ) f18_local4:registerAnimationState( "default", { bottomAnchor = true, rightAnchor = true, bottom = -15, height = CoD.TextSettings.HudEuroMedSmallFont.Height, right = -500, width = 400, font = CoD.TextSettings.HudEuroMedSmallFont.Font, alignment = LUI.Alignment.Right, alpha = 0 } ) f18_local4:animateToState( "default", 0 ) f18_local4:registerAnimationState( "slide_in", { bottomAnchor = true, rightAnchor = true, bottom = -15, right = -258, height = CoD.TextSettings.HudEuroMedSmallFont.Height, width = 400, alpha = 1 } ) f18_local4:registerAnimationState( "blink_off", { bottomAnchor = true, rightAnchor = true, bottom = -15, right = -258, height = CoD.TextSettings.HudEuroMedSmallFont.Height, width = 400, alpha = 0 } ) f18_local4:registerAnimationState( "blink_on", { bottomAnchor = true, rightAnchor = true, bottom = -15, right = -258, height = CoD.TextSettings.HudEuroMedSmallFont.Height, width = 400, alpha = 1 } ) f18_local4:registerOmnvarHandler( "ui_killstreak_scroll", f0_local17 ) local f18_local5 = LUI.UIElement.new() f18_local5.id = "killstreakInfoHudId" f18_local5:registerAnimationState( "default", { bottomAnchor = true, rightAnchor = true, bottom = 0, right = 0, height = 256, width = 64 } ) f18_local5:animateToState( "default", 0 ) f18_local5:addElement( f0_local28() ) f18_local5:addElement( f0_local24() ) f18_local5:addElement( f0_local26() ) f18_local5:addElement( f0_local23() ) f18_local5:addElement( f0_local27() ) f18_local5:addElement( f0_local25() ) if not GameX.IsHardcoreMode() then self:addElement( f18_local3 ) self:addElement( f18_local4 ) self:addElement( f18_local5 ) else self:addElement( f18_local4 ) end return self end ) LockTable( _M )