Skip to content

Commit

Permalink
Added exiling from the kin list.
Browse files Browse the repository at this point in the history
  • Loading branch information
dolda2000 committed Nov 8, 2010
1 parent 9168b35 commit cb1cc13
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/haven/BuddyWnd.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private class BuddyInfo extends Widget {
private GroupSelector grp = null;
private Text atime = null;
private int id = -1;
private Button rmb, invb, chatb;
private Button rmb, invb, chatb, descb, exb;

public BuddyInfo(Coord c, Coord sz, Widget parent) {
super(c, sz, parent);
Expand Down Expand Up @@ -223,6 +223,10 @@ protected void changed(int group) {
ui.destroy(invb);
if(chatb != null)
ui.destroy(chatb);
if(descb != null)
ui.destroy(descb);
if(exb != null)
ui.destroy(exb);
rmb = invb = chatb = null;
int fl = (Integer)args[0];
if((fl & 1) != 0)
Expand Down Expand Up @@ -250,11 +254,17 @@ public void click() {
}
};
if((fl & 16) != 0)
invb = new Button(new Coord(10, 240), sz.x - 20, this, "Describe to...") {
descb = new Button(new Coord(10, 240), sz.x - 20, this, "Describe to...") {
public void click() {
BuddyWnd.this.wdgmsg("desc", id);
}
};
if((fl & 32) != 0)
exb = new Button(new Coord(10, 265), sz.x - 20, this, "Exile") {
public void click() {
BuddyWnd.this.wdgmsg("exile", id);
}
};
}
}

Expand Down

0 comments on commit cb1cc13

Please sign in to comment.