blob: b4abf72ac940ce0d1d98ec6a7428d3918ee394d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/* */ package NET.worlds.console;
/* */
/* */ import NET.worlds.core.IniFile;
/* */ import java.io.PrintStream;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class AdBanner
/* */ {
/* */ public AdBanner(int width, int height, String url)
/* */ {
/* 17 */ if (IniFile.gamma().getIniInt("NoAdBanners", 0) == 1) {
/* 18 */ return;
/* */ }
/* 20 */ Console c = Console.getActive();
/* 21 */ if ((c != null) && ((c instanceof DefaultConsole))) {
/* 22 */ DefaultConsole dc = (DefaultConsole)c;
/* */
/* */ try
/* */ {
/* 26 */ RenderCanvas canvas = dc.getRender();
/* 27 */ if (canvas == null) {
/* 28 */ return;
/* */ }
/* 30 */ this.wc = new WebControl(canvas, width, height, false, true, true);
/* 31 */ this.wc.activate();
/* 32 */ this.wc.setURL(url);
/* */ }
/* */ catch (NoWebControlException e) {
/* 35 */ System.out.println("Error creating IE control; " + e.toString());
/* */ }
/* */ }
/* */ }
/* */
/* */
/* */ public void detach()
/* */ {
/* 43 */ if (this.wc != null)
/* 44 */ this.wc.detach();
/* 45 */ this.wc = null;
/* */ }
/* */
/* 48 */ private WebControl wc = null;
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\AdBanner.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|