Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Modding:Maps
(view source)
Revision as of 20:09, 19 October 2017
96 bytes added
,
20:09, 19 October 2017
→Map properties
:
+ remove property
Line 146:
Line 146:
Game1.currentLocation.map.Properties.TryGetValue("Music", out string value);
Game1.currentLocation.map.Properties.TryGetValue("Music", out string value);
−
// set the 'Music' value
+
//
add or
set the 'Music' value
Game1.currentLocation.map.Properties["Music"] = "MarlonsTheme";
Game1.currentLocation.map.Properties["Music"] = "MarlonsTheme";
+
+
// remove the 'Music' value
+
Game1.currentLocation.map.Properties.Remove("Music");
}
}
</source>
</source>
Pathoschild
translators
8,404
edits