边缘世界 RimWorld

边缘世界 RimWorld

66 个评价
Recolor Areas
   
奖励
收藏
已收藏
取消收藏
Mod, 1.5
文件大小
发表于
1.023 MB
2024 年 11 月 11 日 下午 10:12
1 项改动说明 ( 查看 )

订阅以下载
Recolor Areas

描述
UPDATE: Recoloring areas is now vanilla in RimWorld v1.6! This mod should no longer be needed.

This mini-mod lets you recolor Allowed Areas!

Mod Content

This mod lets you change the color of Allowed Areas by clicking on the color swatch in the Manage Areas dialogue. This allows you to freely change the color of each area as well as choose colors far brighter or darker than vanilla normally allows.

Technical Details

This mod uses a single Harmony Transpiler on Dialog_ManageAreas.DoAreaRow that replaces the call to WidgetRow.Icon with a pass-through method that catches click events and pops open a custom dialogue to alter an area's color.

Dialog_RecolorArea uses four Harmony FieldRefs to bypass encapsulation on Area, Area_Allowed, and CellBoolDrawer in order to alter said area's color and clear its cached Unity Texture and Material. This only happens when a color is actually changed (not cancelled) and said textures and materials are cached by the game's asset pools, which minimizes VRAM usage.

Dialog_RecolorArea also gives you full RGB control over Allowed Area colors; vanilla normally chooses a random color, then blends it with a 50% gray, which is why all vanilla Allowed Area colors feel faded.

Compatibility

This mod should be safe to add or remove from a running save. Any altered area colors will remain altered even if this mod is removed.

This mod appears to be incompatible with TD Enhancements Pack, which fully overlaps its functionality; if you are using that mod then you should not need this one.
19 条留言
T.J. 8 月 23 日 上午 2:41 
o7
WimRorld 7 月 27 日 下午 12:30 
o7
Ƶ𝗢͟𝗟͟𝗙͟ 7 月 17 日 下午 4:21 
o7
Eokai 7 月 15 日 下午 2:58 
o7
IA-3S 6 月 28 日 上午 2:26 
o7
구양 6 月 18 日 下午 5:56 
o7
Malware 6 月 14 日 上午 8:11 
o7
Justacommonegg 6 月 12 日 下午 12:15 
o7
Aelanna  [作者] 2024 年 11 月 13 日 上午 9:33 
@krzarb @Beschi - Thanks for looking into it, I'll see what I can do!
Beschi 2024 年 11 月 13 日 上午 9:27 
@krzarb is right. You just can insert hex colour values, and I found no option to disable it in TD Enh. Pack.