Removing Specific UI Elements

Hello Moddota,

I am currently building a custom UI for a game. Is there a way to disable/hide the following UI elements:

enter image description here

I appreciate the help!

Comments

  • edited November 5 Posts: 108

    2: GameUI.SetDefaultUIEnabled(DotaDefaultUIElement_t.DOTA_DEFAULT_UI_QUICK_STATS, false)

    3: GameUI.SetDefaultUIEnabled(DotaDefaultUIElement_t.DOTA_DEFAULT_UI_KILLCAM, false)

    Pretty sure 5 is part of the action panel DotaDefaultUIElement_t.DOTA_DEFAULT_UI_ACTION_PANEL or the minimap DotaDefaultUIElement_t.DOTA_DEFAULT_UI_ACTION_MINIMAP

    For the rest i am not sure if there is a enum to disable those, but you can also just delete them

    In a custom_ui_manifest.xml script block:

    1: $.GetContextPanel().GetParent().GetParent().FindChildTraverse('KillStreak').DeleteAsync(0)

    4: $.GetContextPanel().GetParent().GetParent().FindChildTraverse('KillGraph').DeleteAsync(0)

    Also possible that you need 3 times GetParent() not sure anymore.

    Github: Profile Steam: Profile

  • Posts: 5

    Thank you, lolle!

    I didn't realize that Valve has updated that enum for the new UI.

    Also, I completely missed the part where Panorama actually had a debugger! LOL!

    Thank you!

  • edited November 12 Posts: 108

    What might be easier for 1/4:

    GameRules:GetGameModeEntity():SetHudCombatEventsDisabled( true )
    

    Github: Profile Steam: Profile