边缘世界 RimWorld

边缘世界 RimWorld

89 个评价
Faction Display Fix
3
   
奖励
收藏
已收藏
取消收藏
Mod, 1.6
文件大小
发表于
更新日期
345.237 KB
12 月 4 日 上午 1:30
12 月 5 日 上午 2:20
2 项改动说明 ( 查看 )

订阅以下载
Faction Display Fix

在 Warachia 的 1 个合集中
Too Many Mods
420 件物品
描述
Details

Vanilla RimWorld does not account for setups with many modded factions. Enemy factions always start drawing from the center, and every additional row is placed beneath it. As a result, the list quickly overflows downward and overlaps with other faction icons. Moreover, it even extends past the right edge of the window.

This mod adjusts the layout so that any number of factions can be displayed at once without breaking the UI.

Compatibility

- Compatible with VFE - Classical: accounts for "View Senators" box.
- Probably incompatible with other mods that touches the same UI.

How this work

- Since the vanilla faction UI logic is all handled inside a single method, this mod applies a Harmony prefix that re-implements most of that logic (drawing the main faction icon, faction names, ideos, relations, etc.) with mostly copy&pasted codes, except for the part that draws enemy factions. The prefix then skips the vanilla drawing routine entirely.

- As a result, if you view Dubs Performance Analyzer while looking at faction UI, it may look like the prefix is taking some performance. However, the analyzer does not account for the fact that the original vanilla drawing code, much of which performs the same work and is now being skipped, would have incurred a similar cost. You can ignore it.
7 条留言
Pablo Discobar 22 小时以前 
True. Winner mod.
Warachia  [作者] 12 月 6 日 下午 9:34 
@TurtleShroom
Works with any mods that doesn't touch the same faction UI. Faction Control Mod doesn't.
TurtleShroom 12 月 6 日 下午 9:06 
Does this work with the Faction Control Mod?
TimesFaded 12 月 6 日 下午 8:54 
get this man a medal
lorxy 12 月 6 日 下午 1:09 
Awesome. Thx:)
pointemorte. 12 月 4 日 上午 5:11 
omega based mod