diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/ChangeAvatarDialog.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/scape/ChangeAvatarDialog.java')
| -rw-r--r-- | NET/worlds/scape/ChangeAvatarDialog.java | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/NET/worlds/scape/ChangeAvatarDialog.java b/NET/worlds/scape/ChangeAvatarDialog.java new file mode 100644 index 0000000..05416cb --- /dev/null +++ b/NET/worlds/scape/ChangeAvatarDialog.java @@ -0,0 +1,81 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import NET.worlds.console.Console; +/* */ import NET.worlds.console.DialogReceiver; +/* */ import NET.worlds.console.ImageButtons; +/* */ import NET.worlds.console.ImageButtonsCallback; +/* */ import NET.worlds.console.PolledDialog; +/* */ import NET.worlds.core.IniFile; +/* */ import java.awt.Component; +/* */ import java.awt.Event; +/* */ import java.awt.Rectangle; +/* */ import java.awt.Window; +/* */ import java.text.MessageFormat; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class ChangeAvatarDialog +/* */ extends PolledDialog +/* */ implements ImageButtonsCallback +/* */ { +/* */ private static final long serialVersionUID = 1L; +/* */ private ImageButtons ib; +/* */ +/* */ public ChangeAvatarDialog(Window parent, DialogReceiver receiver, String name) +/* */ { +/* 32 */ super(parent, receiver, Console.message("Change-Avatar"), false); +/* 33 */ setAlignment(1); +/* 34 */ Rectangle[] rects = new Rectangle[2]; +/* 35 */ int yesX = IniFile.override().getIniInt("changeavYesX", 39); +/* 36 */ int yesY = IniFile.override().getIniInt("changeavYesY", 23); +/* 37 */ int yesW = IniFile.override().getIniInt("changeavYesW", 48); +/* 38 */ int yesH = IniFile.override().getIniInt("changeavYesH", 18); +/* 39 */ rects[0] = new Rectangle(yesX, yesY, yesW, yesH); +/* 40 */ int noX = IniFile.override().getIniInt("changeavNoX", 96); +/* 41 */ int noY = IniFile.override().getIniInt("changeavNoY", 23); +/* 42 */ int noW = IniFile.override().getIniInt("changeavNoW", 42); +/* 43 */ int noH = IniFile.override().getIniInt("changeavnoH", 18); +/* 44 */ rects[1] = new Rectangle(noX, noY, noW, noH); +/* 45 */ Object[] arguments = { new String(name) }; +/* 46 */ this.ib = new ChangeAvatarImageButtons( +/* 47 */ IniFile.override().getIniString("changeAvDlg", Console.message( +/* 48 */ "changeav.gif")), +/* 49 */ rects, this, +/* 50 */ MessageFormat.format(Console.message("Change-avatar-to"), +/* 51 */ arguments)); +/* 52 */ ready(); +/* */ } +/* */ +/* */ protected void build() +/* */ { +/* 57 */ add("Center", this.ib); +/* */ } +/* */ +/* */ public Object imageButtonsCallback(Component who, int which) +/* */ { +/* 62 */ done(which == 0); +/* 63 */ return null; +/* */ } +/* */ +/* */ @Deprecated +/* */ public boolean keyDown(Event event, int key) +/* */ { +/* 69 */ if (key == 27) +/* 70 */ return done(false); +/* 71 */ if (key == 10) +/* 72 */ return done(true); +/* 73 */ return super.keyDown(event, key); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\ChangeAvatarDialog.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |