summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/MoreInfoDialog.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/MoreInfoDialog.java
downloadworlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz
worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/scape/MoreInfoDialog.java')
-rw-r--r--NET/worlds/scape/MoreInfoDialog.java75
1 files changed, 75 insertions, 0 deletions
diff --git a/NET/worlds/scape/MoreInfoDialog.java b/NET/worlds/scape/MoreInfoDialog.java
new file mode 100644
index 0000000..bb24c2b
--- /dev/null
+++ b/NET/worlds/scape/MoreInfoDialog.java
@@ -0,0 +1,75 @@
+/* */ 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;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class MoreInfoDialog
+/* */ extends PolledDialog
+/* */ implements ImageButtonsCallback
+/* */ {
+/* */ private static final long serialVersionUID = 1L;
+/* */ private ImageButtons ib;
+/* */
+/* */ public MoreInfoDialog(Window parent, DialogReceiver receiver)
+/* */ {
+/* 30 */ super(parent, receiver, Console.message("BrowseQ"), false);
+/* 31 */ setAlignment(1);
+/* 32 */ Rectangle[] rects = new Rectangle[2];
+/* 33 */ int yesX = IniFile.override().getIniInt("moreinfoYesX", 48);
+/* 34 */ int yesY = IniFile.override().getIniInt("moreinfoYesY", 22);
+/* 35 */ int yesW = IniFile.override().getIniInt("moreinfoYesW", 60);
+/* 36 */ int yesH = IniFile.override().getIniInt("moreinfoYesH", 19);
+/* 37 */ rects[0] = new Rectangle(yesX, yesY, yesW, yesH);
+/* 38 */ int noX = IniFile.override().getIniInt("moreinfoNoX", 139);
+/* 39 */ int noY = IniFile.override().getIniInt("moreinfoNoY", 22);
+/* 40 */ int noW = IniFile.override().getIniInt("moreinfoNoW", 54);
+/* 41 */ int noH = IniFile.override().getIniInt("moreinfoNoH", 19);
+/* 42 */ rects[1] = new Rectangle(noX, noY, noW, noH);
+/* 43 */ String migif = IniFile.override().getIniString("moreInfoDlg",
+/* 44 */ Console.message("moreinfo.gif"));
+/* 45 */ this.ib = new ImageButtons(migif, rects, this);
+/* 46 */ ready();
+/* */ }
+/* */
+/* */ protected void build()
+/* */ {
+/* 51 */ add("Center", this.ib);
+/* */ }
+/* */
+/* */ public Object imageButtonsCallback(Component who, int which)
+/* */ {
+/* 56 */ done(which == 0);
+/* 57 */ return null;
+/* */ }
+/* */
+/* */ @Deprecated
+/* */ public boolean keyDown(Event event, int key)
+/* */ {
+/* 63 */ if (key == 27)
+/* 64 */ return done(false);
+/* 65 */ if (key == 10)
+/* 66 */ return done(true);
+/* 67 */ return super.keyDown(event, key);
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\MoreInfoDialog.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file