Is there a way to change order of buttons?

Post Reply
Franzy
Posts: 69
Joined: Thu Apr 06, 2017 9:05 am

Is there a way to change order of buttons?

Post by Franzy » Tue Apr 25, 2017 10:02 am

I have millions UI mods that add millions new buttons to soldier commands list, like "Overwatch all", "Overwatch others", "Preview LoS" etc. And some of them appear in really awkward places. For example, I use "Preview LoS" like a couple of times per campaign maybe, but it is right in the begining of the list. I want it in the back!
So is there a way to change order of buttons? Some INI-hacks or mods maybe? Could not google anything on the topic :( I wil also settle for a mod that changes buttons to show in two rows :)

Franzy
Posts: 69
Joined: Thu Apr 06, 2017 9:05 am

Re: Is there a way to change order of buttons?

Post by Franzy » Tue Apr 25, 2017 10:08 am

Looked through mods config files, some of them do allow to change button order! But only some, strangely :/

User avatar
johnnylump
Site Admin
Posts: 1040
Joined: Wed Nov 11, 2015 4:12 am
Location: Colorado
Contact:

Re: Is there a way to change order of buttons?

Post by johnnylump » Tue Apr 25, 2017 2:23 pm

It's not an ini thing unless it's explicitly set up to do so; most abilities hard-code it in the ability template. It's the ShotHUDPriority setting.

Zyxpsilon
Posts: 274
Joined: Fri Jan 20, 2017 1:26 am

Re: Is there a way to change order of buttons?

Post by Zyxpsilon » Tue Apr 25, 2017 4:44 pm

IIRC, BountyGiver's "---30 Ability Icons---" used to have as set of configurable priority calls that would re-organize most Icons on that bar. Sadly.. he has removed this feature in the latest version.

Yet.. since LW-PerkPack (and by deduction, LW2 also) isn't compatible with anything that deals with "UITacticalHUD_AbilityContainer" functionality via Overrides -- we're out of luck to fiddle with priority variations, unless a specific new MOD would be created for that task.

User avatar
johnnylump
Site Admin
Posts: 1040
Joined: Wed Nov 11, 2015 4:12 am
Location: Colorado
Contact:

Re: Is there a way to change order of buttons?

Post by johnnylump » Tue Apr 25, 2017 4:57 pm

You'd just need to mod the templates when they are loaded; it's not that hard if you can code in the tool kit -- we do it in dozens of places with LWTemplateMods class in LW2. You can even set up dozens of ini variables if you like.

bountygiver
Posts: 74
Joined: Mon Feb 27, 2017 3:33 am

Re: Is there a way to change order of buttons?

Post by bountygiver » Wed Apr 26, 2017 4:41 am

Zyxpsilon wrote:IIRC, BountyGiver's "---30 Ability Icons---" used to have as set of configurable priority calls that would re-organize most Icons on that bar. Sadly.. he has removed this feature in the latest version.

Yet.. since LW-PerkPack (and by deduction, LW2 also) isn't compatible with anything that deals with "UITacticalHUD_AbilityContainer" functionality via Overrides -- we're out of luck to fiddle with priority variations, unless a specific new MOD would be created for that task.
no it's the original mod that has that feature but he pulled his mod, my mod is a replacement for that functionality and i never implemented that feature because i dont know they have that feature in the first place.

Also LOS preview do have config to change the icon order.

Zyxpsilon
Posts: 274
Joined: Fri Jan 20, 2017 1:26 am

Re: Is there a way to change order of buttons?

Post by Zyxpsilon » Wed Apr 26, 2017 5:30 am

I stand corrected.. never realized the "old" version was from somebody else -- lack of memory for sure! ;)

But *IF* that new "LOS preview" mod still has an alternate solution (yet for itself only) -- there you go.. the OP could manage to obtain an indirect solution or another Mod developper could pick up the slack for a fresh product that could scramble with those priority functions -- in theory. :D

Franzy
Posts: 69
Joined: Thu Apr 06, 2017 9:05 am

Re: Is there a way to change order of buttons?

Post by Franzy » Wed Apr 26, 2017 7:18 am

Code: Select all

+IconOrder=199
; For IconOrder, smaller numbers make the ability more to the left side.
; Notable icon index: Reload when out of ammo - 70, standard shot - 100, Overwatch - 200, pistol shot - 210, Reload - 700
; Evac - 240, class perks - 310-370 (Each rank increments at step of 10), hunker - 400, most items 1000 - 1800
This comment in "LoS Preview" mod config made me believe there is some intrinsic mechanism for ordering icons :)

LordYanaek
Posts: 940
Joined: Mon Jan 23, 2017 1:34 pm

Re: Is there a way to change order of buttons?

Post by LordYanaek » Wed Apr 26, 2017 3:42 pm

Well, there is some intrinsic mechanism for ordering icons, it's simply usually not exposed to the ini.

Also it might not be exactly what you want but Grimy's Hotkeys mod allows you to hide some abilities, typically abilities you want to trigger with hotkeys such as overwatch. It helps reduce clutter on the "ability bar" when playing with mods that add a lot of those.

Zyxpsilon
Posts: 274
Joined: Fri Jan 20, 2017 1:26 am

Re: Is there a way to change order of buttons?

Post by Zyxpsilon » Wed Apr 26, 2017 6:18 pm

That "LOS" comment paragraph surely reminds me of the old (30 Ability) version where it also gave a summary of common types & provided a set of custom iconorder instructions for us to adjust.

I went into --Overwatch/All+Others-- UC scripts to try finding such indirect gimmicks but i think it only hooks to the GameState to insert its own set.

Post Reply