mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-01 06:24:39 -05:00
parent
6b678ac704
commit
4e1b5ab87f
|
|
@ -748,7 +748,10 @@ private void LB_Items_SelectedIndexChanged(object sender, EventArgs e)
|
|||
if (LB_Items.SelectedIndex < 0)
|
||||
return;
|
||||
LoadIndex(LB_Items.SelectedIndex);
|
||||
ReloadBuildingsTerrain();
|
||||
|
||||
// View location snap has changed the view. Reload everything
|
||||
LoadItemGridAcre();
|
||||
ReloadMapBackground();
|
||||
}
|
||||
|
||||
private void LoadIndex(int index)
|
||||
|
|
@ -765,6 +768,11 @@ private void LoadIndex(int index)
|
|||
NUD_TypeArg.Value = b.TypeArg;
|
||||
NUD_UniqueID.Value = b.UniqueID;
|
||||
Loading = false;
|
||||
|
||||
// -32 for relative offset on map (buildings can be placed on the exterior ocean acres)
|
||||
// -16 to put it in the center of the view
|
||||
const int shift = 48;
|
||||
View.SetViewTo(b.X - shift, b.Y - shift);
|
||||
}
|
||||
|
||||
private void NUD_BuildingType_ValueChanged(object sender, EventArgs e)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user