Skip to content

Commit

Permalink
Changed typography and switched the monster avatar for a wizard avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Hermida committed May 12, 2011
1 parent fe52409 commit c286a1d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Binary file removed icons/.DS_Store
Binary file not shown.
Binary file modified icons/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed icons/monster.png
Binary file not shown.
Binary file modified icons/times-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/wizard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/com/happyprog/pairhero/Activator.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected void initializeImageRegistry(ImageRegistry reg) {
private void loadMessages(ImageRegistry reg) {
reg.put("blank", getImageDescriptor("icons/blank.png"));
reg.put("green", getImageDescriptor("icons/green.png"));
reg.put("refactoring", getImageDescriptor("icons/refactoring.png"));
reg.put("refactoring", getImageDescriptor("icons/refactor.png"));
reg.put("switch-4x", getImageDescriptor("icons/switch-4x.png"));
reg.put("switch-2x", getImageDescriptor("icons/switch-2x.png"));
reg.put("switch", getImageDescriptor("icons/switch.png"));
Expand All @@ -98,7 +98,7 @@ private void loadAvatars(ImageRegistry reg) {
reg.put("explorator", getImageDescriptor("icons/explorator.png"));
reg.put("king", getImageDescriptor("icons/king.png"));
reg.put("robin", getImageDescriptor("icons/robin.png"));
reg.put("monster", getImageDescriptor("icons/monster.png"));
reg.put("wizard", getImageDescriptor("icons/wizard.png"));
reg.put("no-avatar", getImageDescriptor("icons/no-avatar.png"));
}

Expand Down
10 changes: 5 additions & 5 deletions src/com/happyprog/pairhero/views/AvatarSelection.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class AvatarSelection {
private Button explorator;
private Button king;
private Button robin;
private Button monster;
private Button wizard;

public AvatarSelection(Composite composite) {
buildUI(composite);
Expand All @@ -31,8 +31,8 @@ protected void buildUI(Composite composite) {
robin = new Button(group, SWT.RADIO);
robin.setImage(Activator.getDefault().getImageFromKey("robin"));

monster = new Button(group, SWT.RADIO);
monster.setImage(Activator.getDefault().getImageFromKey("monster"));
wizard = new Button(group, SWT.RADIO);
wizard.setImage(Activator.getDefault().getImageFromKey("wizard"));
}

public String getSelection() {
Expand All @@ -48,8 +48,8 @@ public String getSelection() {
return "robin";
}

if (monster.getSelection()) {
return "monster";
if (wizard.getSelection()) {
return "wizard";
}

return "no-avatar";
Expand Down

0 comments on commit c286a1d

Please sign in to comment.