• 0

    posted a message on Submeu sticky

    Still working on that project 10 years later? Regardless I think I know what's going wrong for you and what might be for others in the future.

     

    So like you said: in the data editor go to view tab and de-select "combine structure values" and select "view raw data". Find the unit you want to have a submenu that doesn't revert to the uhhh... main menu/command card after every button press. Of course make sure the unit container is selected not the abilities, buttons etc and type in "sub" into the search bar. You should see these 2 lines among others:

     

    Ability: CUnit_CardLayouts_LayoutButtons_SubmenuIsSticky ((0|0|0|0|0|0|0)|(0|0))

    Ability: CUnit_CardLayouts_LayoutButtons_Type((AbilCmd|AbilCmd|AbilCmd|AbilCmd|AbilCmd|AbilCmd|Submenu)|(AbilCmd|CancelSubmenu))

     

    The brackets and 0s will vary with command cards. You'll want to turn specifically the 0 that correlates with the "Submenu" to 1

    ie ((0|0|0|0|0|0|1)|(0|0))

     

    TLDR:

    To sticky a submenu you 0 -> 1 the button that takes you to the submenu

    Posted in: Data
  • To post a comment, please or register a new account.