Correct memory leak in consuming items from inventory. Added overworld menu layout. Warrior Up walk animation has head bobbing like all the others now. Fixed alignment of items for ScrollableWindowComponents, fix scrollbar resizing when parent component has offsets.

This commit is contained in:
2023-11-11 17:31:53 -06:00
parent 395b2e3ab8
commit 30a5cdc488
33 changed files with 30083 additions and 30093 deletions
+11
View File
@@ -183,6 +183,17 @@ namespace olc::utils
return m_vEdgeTriggerDistance;
}
// Directly moves the camera to a new point, useful when transitioning areas.
inline void MoveCamera(vf2d pos){
Mode prevMode=m_nMode;
vf2d&prevTarget=*m_pTarget;
SetMode(Mode::Simple);
SetTarget(pos);
Update(0);
SetMode(prevMode);
SetTarget(prevTarget);
}
// Update camera, animating if necessary, obeying world boundary rules
// returns true if target is visible
inline virtual bool Update(const float fElapsedTime)