Implemented overworld gamepad control functions. Added ability to have certain inputer helper labels to be hidden away. When click functions are called on MenuComponents, it should also apply the menu navigation rules of the button.

This commit is contained in:
2024-01-20 14:42:35 -06:00
parent 7cd3600f42
commit 4eec0ce337
10 changed files with 112 additions and 79 deletions
@@ -92,6 +92,10 @@ public:
virtual inline void SetScrollAmount(vf2d scrollOffset){
this->targetScrollOffset=scrollOffset;
}
//Provide an amount to scroll by in units/sec.
virtual inline void Scroll(float amt){
SetScrollAmount(GetTargetScrollAmount()-vf2d{0,amt*game->GetElapsedTime()*"Interface.AnalogScrollSpeed"_F});
}
//Use this when you need to add more scrolling offset to a previous amount as GetScrollAmount() is used to get the internal scroll offset specifically.
virtual inline vf2d GetTargetScrollAmount()const{
return targetScrollOffset;