
Valheim
You are viewing a potentially older version of this package. View Latest Version

ColorfulPieces.dll to your /Valheim/BepInEx/plugins/ folder.ColorfulPieces_v1.7.0.zip.LeftShift + R to change the building piece color to the target color and emission factor.LeftAlt + R to clear any existing colors from the building piece.LeftCtrl + R to copy the existing color from a piece.showChangeRemoveColorPrompt setting.colorPromptFontSize setting.PluginConfig to match more recent mods.PlayerPatch, TerminalPatch and HudPatch classes.IsModEnabled for initial add and in the commands themselves.manifest.json and changed icon.png.WearNTear instance itself as the key tied to Awake/Destroy.Changed how hotkeys are detected from Player.TakeInput() prefix to better Player.Update() transpiler.
Moved more config-related logic into PluginConfig class.
Moved ZDO extensions to a new ZdoExtensions class.
Added two new Terminal.ConsoleCommand:
/clearcolor <radius> (in chatbox)
clearcolor <radius> (in console)
/changecolor <radius> (in chatbox)
changecolor <radius> (in console)
These two commands still call the same action as the hotkey and so will obey all ward permissions.
Update:
WearNTear.m_nview.m_zdo.m_uid as the cache key for compatibility with ValheimPerformanceOptimizations.ClearWearNTearColors() in WearNTear.Awake() and WearNTear.OnDestroy() to assist with the above.PieceEmissionColorFactor not being copied during copy color action.LastColoredBy to PieceLastColoredBy to be more consistent with other colorful mods.LeftCtrl + R.0.6 to 0.8 to allow for brighter colors.LastColoredBy long ZDO property set to the PlayerId on set or clear.WearNTear.OnDestroy() to remove the reference.