You are viewing a potentially older version of this package. View all versions.
Ultra_arting-ItemDockFix-1.1.0 icon

ItemDockFix

Replaces the overlapping passive item dock row with a multi-row grid plus Up/Down paging, a page indicator, keyboard selection and F to drop. Fixes passives that vanilla cannot select or drop.

Date uploaded 5 days ago
Version 1.1.0
Download link Ultra_arting-ItemDockFix-1.1.0.zip
Downloads 21
Dependency string Ultra_arting-ItemDockFix-1.1.0

This mod requires the following mods to function

BepInEx-BepInExPack_EtG-5.4.2101 icon
BepInEx-BepInExPack_EtG

BepInEx pack for Enter the Gungeon. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2101

README

ItemDockFix

Makes the passive item dock in Enter the Gungeon actually usable when you carry a lot of passive items.

Long-press Tab to open the map, and the dock at the bottom shows every passive you own so you can pick one and drop it with F. Vanilla lays all of them out in a single 270-unit row: once you have more than ~13 passives the icons pile on top of each other, and since the click test walks the list in order and stops at the first hit inside a fixed radius, the later icons can never be selected — so they can never be dropped.

This mod replaces that layout with a grid and adds keyboard control.

What it does

  • Multi-row grid instead of one overlapping row. Icons are laid out in rows sized to the width of the dock strip, so nothing overlaps and every icon is individually clickable.
  • Paging. When you own more than one page's worth, the extra items go to further pages; a small 1/2 indicator appears in the top-right corner of the dock. Default page size is 14 x 3 = 42 passives (auto width, 3 rows) on a 16:9 display.
  • Rows adapt to the panel. If the dock panel is shorter than RowsPerPage rows, the effective page size is reduced instead of letting the grid spill out of the panel — raising RowsPerPage can never push icons out of the dock.
  • Keyboard support. The mouse is no longer the only way in: arrow keys select, Up/Down page, F drops — all while the map is held open. (In vanilla the keyboard branch of the minimap controller is skipped entirely, so keyboard players could not drop passives at all.)
  • Reliable clicking. Because rows are packed tighter than vanilla's click radius, a click now selects the nearest icon instead of the first one in the list.
  • Slightly smaller icons. Icons render at 80% of vanilla size by default so a dense grid stays readable — configurable.
  • Safe dropping. F only drops an item that is visibly selected on the current page and allowed to be dropped. An item that is off-page, not selected, or undroppable (quest/undroppable passives) is never dropped silently.

Only the passive dock is touched. Guns, actives, co-op split-screen docks, the map itself and everything else behave exactly like vanilla.

Controls

Input Action
Hold Tab Open the map and the item dock (vanilla)
Mouse click on an icon Select it (now always the nearest one)
Left / Right Select previous / next icon on the current page
Up / Down Previous / next page
F Drop the selected passive (vanilla Action4)

Gamepad behaviour is unchanged from vanilla (d-pad cycling, Action4 to drop).

Configuration

BepInEx/config/hawkhao.etg.itemdockfix.cfg

Key Default Range Meaning
Layout/ItemsPerRow 0 0-32 Icons per row. 0 = fit the dock strip width automatically; a positive number caps it.
Layout/RowsPerPage 3 1-8 Rows per page. Beyond ItemsPerRow x RowsPerPage items the dock pages with Up/Down. The real value is also capped by how many rows fit inside the dock panel.
Layout/IconScale 0.8 0.4-1.2 Icon size relative to vanilla (1.0 = vanilla size).
Debug/LogLayout false - Log the computed grid geometry when it changes.
Debug/EnableDebugHotkeys false - Dev hotkeys F6-F11: grant random passives, dump dock geometry / passive registry, force a re-layout. For testing only — they cheat, keep this off during normal play.

Values outside the range are confined by BepInEx when the config is written, and the mod also clamps them internally, so a hand-edited cfg cannot produce a broken layout.

Installation

  • r2modman / Gale / Thunderstore Mod Manager: install BepInExPack_EtG first, then this package. Gale users can keep the default Default profile.
  • Manual: install BepInEx 5.4.x (x64) into the game folder, then copy BepInEx/plugins/ItemDockFix/ItemDockFix.dll into the game's BepInEx/plugins/.

Compatibility

  • Built against the current Steam build (Unity 2017.4.27, BepInEx 5.4.21).
  • Works with mods that add passive items: they all go through PlayerController.AcquirePassiveItem / GameUIRoot.AddPassiveItemToDock, which is the path this mod lays out. Tested with a heavy mod list (715 PassiveItem subclasses across 8 mod assemblies, 767 registered passive pickups) and 60+ passives in the dock at once.
  • Every hook is a postfix/prefix around vanilla logic and every callback is wrapped in try/catch with a log line, so a failure in the dock layout degrades to vanilla behaviour instead of breaking the map screen.
  • If another mod replaces MinimapUIController.ArrangeDockItems or Update itself, the two will conflict; otherwise there is no shared state.

Notes

  • The page indicator only shows up when there is more than one page; it hides when the map is closed and is clamped to the screen so it cannot be left floating outside the UI.
  • RowsPerPage also controls the vertical centering of the grid inside the dock panel, so a smaller value keeps the icons visually balanced instead of pinned to the bottom.

中文速览

长按 Tab 打开地图后,底部的被动道具栏在原版里是单行 270 单位排布:被动超过十几个后图标互相重叠,而点击判定会在图标列表里"取第一个命中就停",于是后面的图标永远选不中、也就永远丢不掉。

本 mod 把它换成了网格布局:

  • 按道具栏白条的宽度自动铺满,每行 14 个(默认)、每页 3 行 = 一页 42 个,超出后用 ↑/↓ 翻页,右上角显示 1/2 这样的页数
  • 每行行数会再受面板高度限制:把 RowsPerPage 调大也不会让网格顶出道具栏
  • 键盘可用:←/→ 选择、↑/↓ 翻页、F 丢弃(原版键盘玩家其实没法丢被动)
  • 点击改为"取最近图标",相邻图标再密也不会点错
  • F 只会丢弃"当前页上确实被选中、且允许丢弃"的道具;不在当前页、没选中、或不可丢弃的道具不会被误丢
  • 图标默认缩到原版的 80%,密排时更好认

配置在 BepInEx/config/hawkhao.etg.itemdockfix.cfg,可调每行个数(0-32)、每页行数(1-8)、图标缩放(0.4-1.2),超出范围的数值会被夹回。只改被动道具栏,枪械、主动道具、双人分屏均保持原版行为。

CHANGELOG

Changelog

1.1.2

Store listing is now bilingual - no in-game change.

  • Description carries both the English and the Chinese summary (Thunderstore shows it in search results and the package header).
  • README now opens with a Chinese tagline under the title, so the page reads well for both audiences.
  • The package name itself is fixed by Thunderstore and cannot be renamed after the first upload; a bilingual page title is not possible beyond the description and README.

1.1.1

Packaging refresh only - the in-game code is identical to 1.1.0.

  • New icon and social preview. The three faces in the icon are now replaced with the Bomb, Ice Cube and Rolling Eye item sprites.
  • README and License metadata. The store page now carries the same README (with config table, controls and license note) as the repository, and the project is MIT licensed.
  • Republished so the listing matches the current repository assets.

1.1.0

Robustness pass — the dock still looks the same in the normal case, but it now degrades safely instead of misbehaving.

  • Rows adapt to the dock panel. The effective rows per page is the smaller of RowsPerPage and how many rows actually fit in the panel, so raising RowsPerPage (or a differently proportioned UI) can no longer push the grid out of the dock.
  • Config values are clamped to sane ranges (ItemsPerRow 0-32, RowsPerPage 1-8, IconScale 0.4-1.2), both through BepInEx's acceptable-value ranges and internally, so a hand-edited cfg cannot produce a broken layout.
  • F only drops what you can see and drop. Dropping now requires a selection that is on the current page, has a live item and owner, and passes CanActuallyBeDropped. Off-page or undroppable items are skipped with a log line instead of being silently dropped.
  • Stale selections are cleared. When the page size or item count changes (window resize, mods adding passives, dropping items), a selection that is no longer visible is cleared, so F can never act on an icon that has been parked off-screen.
  • Per-icon failures are contained. A destroyed or invalid tk2d sprite is skipped and logged instead of aborting the whole layout pass, and already-placed icons are not re-moved every frame.
  • Page indicator hardened. It hides when the dfGUI font or panel is unavailable, and its position is clamped to the screen so it cannot be left floating outside the UI after a resolution change.
  • Missing dock geometry fallback. If DockSprite width cannot be read, the grid falls back to fixed spacing and stays centred instead of being stretched over the wider DockPanel.

1.0.0

Initial release.

  • Passive item dock is now a multi-row grid that fits the dock strip width instead of a single 270-unit row, so icons no longer overlap and every item can be selected and dropped.
  • Paging with Up / Down (default 14 per row x 3 rows = 42 per page) plus a 1/2 page indicator in the top-right corner of the dock.
  • Keyboard support for the dock: Left / Right to select, Up / Down to page, F to drop. Vanilla skips its keyboard branch in the minimap controller, so keyboard players previously could not drop passives at all.
  • Mouse clicks now select the nearest icon rather than the first icon of the list that falls inside the fixed click radius.
  • Icons render at 80% of vanilla size (Layout/IconScale), so a dense grid stays readable.
  • Configurable via BepInEx/config/hawkhao.etg.itemdockfix.cfg.
  • Dev hotkeys (F6-F11) for granting random passives, dumping dock geometry and forcing a re-layout, behind Debug/EnableDebugHotkeys (off by default).