Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
https://ludeon.com/forums/index.php?topic=37177.msg382039#msg382039
ReColor Stockpile & Growing Zones
Preset Filtered Zones
hope you-ll implement Harony soon :-)
thanks Kiame for jumping in!
If you want to see examples of how to use it most of my mods use harmony. One that's close to what you're doing is: https://github.com/KiameV/rimworld-SaveStorageSettings/blob/master/Source/Main.cs
Harmony Prefix is called before a method. Postfix is called after. A method can have both. Prefix can be either a void or boolean return. In the bool case returning false prevents any other Prefixes from running and also prevents the method being Prefixed from being called (a true override)
[HarmonyPatch(typeof(Zone_Stockpile), "GetGizmos")]
static class Patch_Zone_GetGizmos
{
static void Postfix(Zone_Stockpile __instance, ref IEnumerable<Gizmo> __result)
{
__result = GizmoUtil.AddSaveLoadGizmos(__result, "Zone_Stockpile", __instance.settings.filter);
}
}
In this example it's using GizmoUtil to add the new buttons to the list. GizmoUtil is here for reference too: https://github.com/KiameV/rimworld-SaveStorageSettings/blob/master/Source/GizmoUtil.cs
butt still no buttons...
it migh also confilct zith this one: ReColor Stockpile & Growing Zones
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=959789865&searchtext=color+zone