MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / scrollNext

Method scrollNext

forms/scrollbar.cpp:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void ScrollBar::scrollNext(int amount)
81{
82 if (!setValue(Value + (amount != 0 ? amount : ScrollChange)))
83 {
84 fw().soundBackend->playSample(buttonerror);
85 }
86}
87
88void ScrollBar::eventOccured(Event *e)
89{

Callers 1

eventOccuredMethod · 0.80

Calls 1

playSampleMethod · 0.45

Tested by

no test coverage detected