FAForever / FAForever/fa

Feature: ability to re-order user build templates

Open
#6,117 0 comments 1 reaction 1 assignee Claimed by @clyfordv View on GitHub
area: ui ui: construction
Dominant language
Lua
Stars
264
Forks
260
Avg merge
3d 2h
Merged PRs (30d)
21

Description

**Describe the feature**
"Be able to re-order hotkey cycling of templates without having to re-create them all in the desired order." ([Arran on the forum](https://forum.faforever.com/topic/7502/templates))

**Expected behavior**
Be able to drag user templates around
![image](https://github.com/FAForever/fa/assets/82986251/3e569d06-9b0b-4757-a762-687e7666933e)

like you can drag units in the factory queue:
![Construction menu dragging](https://github.com/FAForever/fa/assets/82986251/71ad3e56-4659-4bce-a653-a9fff80c6b64)
and then it should update the order in which they appear when using the "cycle user templates" hotkey.
I think the place to start looking is in `build_templates.lua`. The current issue is that the hotkey relies entirely on the order of templates in the game.prefs file/table.

This should also apply to factory build queue templates.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.