#W# Change: [Go menu now uses 1 file Data/go.json. It also excepts a 'map' destination.
This commit is contained in:
parent
3aeeb3705b
commit
6388a96fa9
23 changed files with 519 additions and 38 deletions
|
|
@ -159,10 +159,23 @@ public class GoGump : DynamicGump
|
|||
index -= _node.Categories.Length;
|
||||
if (index < _node.Locations.Length)
|
||||
{
|
||||
from.MoveToWorld(_node.Locations[index].Location, _tree.Map);
|
||||
//from.MoveToWorld(_node.Locations[index].Location, _tree.Map);
|
||||
var loc = _node.Locations[index];
|
||||
Map targetMap = _tree.Map;
|
||||
if (!string.IsNullOrEmpty(loc.MapName))
|
||||
{
|
||||
foreach (Map m in Map.AllMaps)
|
||||
{
|
||||
if (m != null && string.Equals(m.Name, loc.MapName, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
targetMap = m;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
from.MoveToWorld(loc.Location, targetMap);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue