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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user