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
1183}1183}
1184 1184
1185void Application::increaseAvatarSize() {1185void Application::increaseAvatarSize() {
1186 if (3.0f < _myAvatar.getScale() + 0.25f) {1186 if (5.0f < _myAvatar.getScale() + 0.05f) {
1187 return;1187 return;
1188 }1188 }
1189 1189
1190 _myAvatar.setScale(_myAvatar.getScale() + 0.25f);1190 _myAvatar.setScale(_myAvatar.getScale() + 0.05f);
1191 _myCamera.setScale(_myAvatar.getScale() + 0.25f);1191 _myCamera.setScale(_myAvatar.getScale() + 0.05f);
1192}1192}
1193 1193
1194void Application::decreaseAvatarSize() {1194void Application::decreaseAvatarSize() {
1195 if (_myAvatar.getScale() + 0.25f < 0.25f) {1195 if (_myAvatar.getScale() - 0.05f < 0.15f) {
1196 return;1196 return;
1197 }1197 }
1198 1198
1199 _myAvatar.setScale(_myAvatar.getScale() - 0.25f);1199 _myAvatar.setScale(_myAvatar.getScale() - 0.05f);
1200 _myCamera.setScale(_myAvatar.getScale() - 0.25f);1200 _myCamera.setScale(_myAvatar.getScale() - 0.05f);
1201}1201}
1202 1202
1203void Application::setFrustumOffset(bool frustumOffset) {1203void 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