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