Skip to content

Commit d18f3f3

Browse files
committed
make MarkerImage public and fix ModInterop name for LobbyMapUI
1 parent d487f91 commit d18f3f3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

UI/LobbyMapUI.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,9 @@ public override void Render() {
715715
if (CollabModule.Instance.SaveData.ShowVisitedPoints) {
716716
drawVisitedPoints();
717717
}
718-
719-
if (CustomRenderActions.TryGetValue(LobbyHelper.GetCollabNameForSID(lobbyMapInfo.LevelSet), out Action<Entity, List<Component>> customRenderAction))
718+
719+
string currentCollabName = LobbyHelper.GetCollabNameForSID(SceneAs<Level>().Session.Area.SID);
720+
if (CustomRenderActions.TryGetValue(currentCollabName, out Action<Entity, List<Component>> customRenderAction))
720721
customRenderAction(this, markerComponents);
721722

722723
drawForeground();
@@ -1179,7 +1180,7 @@ public bool CheckLocked() {
11791180
/// <summary>
11801181
/// Represents a map marker as an image.
11811182
/// </summary>
1182-
private class MarkerImage : Image {
1183+
public class MarkerImage : Image {
11831184
public readonly LobbyMapController.MarkerInfo Info;
11841185

11851186
public MarkerImage(LobbyMapController.MarkerInfo info) : base(null) {
@@ -1225,7 +1226,7 @@ public LobbySelection(EntityData data, MapData map) {
12251226
#region ModInterop
12261227

12271228
// ModInterop exports
1228-
[ModExportName("CollabUtils2.JournalHelper")]
1229+
[ModExportName("CollabUtils2.LobbyMapUI")]
12291230
private static class ModExports {
12301231
public static void AddCustomRenderAction(string collabID, Action<Entity, List<Component>> editor) {
12311232
LobbyMapUI.AddCustomRenderAction(collabID, editor);

0 commit comments

Comments
 (0)