| 103 | } |
| 104 | |
| 105 | void GuiFastSelect::update(int deltaTime) |
| 106 | { |
| 107 | if(mScrollOffset != 0) |
| 108 | { |
| 109 | mScrollTimer += deltaTime; |
| 110 | |
| 111 | if(!mScrolling && mScrollTimer >= SCROLLDELAY) |
| 112 | { |
| 113 | mScrolling = true; |
| 114 | mScrollTimer = SCROLLSPEED; |
| 115 | } |
| 116 | |
| 117 | if(mScrolling && mScrollTimer >= SCROLLSPEED) |
| 118 | { |
| 119 | mScrollTimer = 0; |
| 120 | scroll(); |
| 121 | } |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | void GuiFastSelect::scroll() |
| 126 | { |
nothing calls this directly
no outgoing calls
no test coverage detected