History

Avatar resizing final commit

atlante45 committed 13 years ago

Commit bf3c4fa1 parent 078a47b5 files · +17 −17Browse files

Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Application.cpp+6−6
@@ -1183,21 +1183,21 @@ void Application::setRenderThirdPerson(bool thirdPerson) { · 1182 unmodified lines
11831183 }
11841184
11851185 void Application::increaseAvatarSize() {
1186− if (3.0f < _myAvatar.getScale() + 0.25f) {
1186+ if (5.0f < _myAvatar.getScale() + 0.05f) {
11871187 return;
11881188 }
11891189
1190− _myAvatar.setScale(_myAvatar.getScale() + 0.25f);
1191− _myCamera.setScale(_myAvatar.getScale() + 0.25f);
1190+ _myAvatar.setScale(_myAvatar.getScale() + 0.05f);
1191+ _myCamera.setScale(_myAvatar.getScale() + 0.05f);
11921192 }
11931193
11941194 void Application::decreaseAvatarSize() {
1195− if (_myAvatar.getScale() + 0.25f < 0.25f) {
1195+ if (_myAvatar.getScale() - 0.05f < 0.15f) {
11961196 return;
11971197 }
11981198
1199− _myAvatar.setScale(_myAvatar.getScale() - 0.25f);
1200− _myCamera.setScale(_myAvatar.getScale() - 0.25f);
1199+ _myAvatar.setScale(_myAvatar.getScale() - 0.05f);
1200+ _myCamera.setScale(_myAvatar.getScale() - 0.05f);
12011201 }
12021202
12031203 void Application::setFrustumOffset(bool frustumOffset) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t