Skip to content

Commit

Permalink
additional marker exports on change
Browse files Browse the repository at this point in the history
  • Loading branch information
BoyC committed Apr 9, 2022
1 parent 5903639 commit cd17dd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 33 deletions.
2 changes: 1 addition & 1 deletion BuildCount.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//Automatically generated build count file. DO NOT EDIT MANUALLY!

#define BUILD_COUNT_ANUBIS 91
#define BUILD_COUNT_DESKTOP_EDTCHAL 3596
#define BUILD_COUNT_DESKTOP_EDTCHAL 3597

#define RELEASE_COUNT_ANUBIS 0
#define RELEASE_COUNT_DESKTOP_EDTCHAL 62
Expand Down
37 changes: 5 additions & 32 deletions MarkerEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,42 +111,12 @@ void MarkerActionData::Do()
{
auto marker = FindMarkerByGUID( guid );
if ( marker )
marker->position = position;
break;
}
/*
case MarkerAction::AddTrail:
{
GW2Trail* poi = new GW2Trail();
poi->guid = guid;
auto cat = GetCategory( GetStringFromMap( intData ) );
if ( cat )
poi->SetCategory( App, cat );
auto& POIs = GetMapTrails();
poi->typeData.trailData = stringID;
poi->typeData.saveBits.trailDataSaved = true;
POIs[ poi->guid ] = poi;
poi->Reload();
ExportPOIS();
if ( Config::IsWindowOpen( "MarkerEditor" ) )
{
auto editor = App->GetRoot()->FindChildByID<GW2MarkerEditor>( "MarkerEditor" );
if ( editor && !editor->IsHidden() )
editor->SetEditedGUID( poi->guid );
marker->position = position;
ExportPOIS();
}
break;
}
*/
case MarkerAction::AddTrailFull:
{
if ( !fullTrail )
Expand Down Expand Up @@ -214,6 +184,8 @@ void MarkerActionData::Do()
//LOG_NFO( "Action: delete marker/trail %s", CString::EncodeToBase64( (TU8*)&( guid ), sizeof( GUID ) ).GetPointer() );
RemoveMarkerByGUID( guid );
RemoveTrailByGUID( guid );

ExportPOIS();
break;
}
case MarkerAction::SetMarkerTrailCategory:
Expand Down Expand Up @@ -351,6 +323,7 @@ void MarkerActionData::Do()
}
}

ExportPOIS();
}
break;
}
Expand Down

0 comments on commit cd17dd4

Please sign in to comment.