Page 6 of 9

Re: How to UI

PostPosted: Thu Mar 28, 2013 2:43 pm
by Arurra
Can anyone tell me the command for open mini map?

Re: How to UI

PostPosted: Thu Mar 28, 2013 3:30 pm
by MagicManICT
You can't close it.

If you're using a modded client, you need to make sure to mention that and will usually get help a bit faster if you look through the modder's thread where you downloaded the client.

Re: How to UI

PostPosted: Thu Apr 25, 2013 8:37 am
by thl111
could anyone tell me how to see braziers' radius?

Re: How to UI

PostPosted: Thu Apr 25, 2013 5:17 pm
by dageir
Right now it seems you can only see it when you start building a new one.

Re: How to UI

PostPosted: Wed May 08, 2013 10:36 am
by Chiprel
To change window size to x y:
:sz x y
example:
:sz 640 480
:sz 1024 768

To lock window resizing:
:sz lock
To unlock window resizing:
:sz dyn

Re: How to UI

PostPosted: Thu May 09, 2013 5:16 am
by MagicManICT
Thanks, Chiprel. Did I forget to add those in a while back when the update came out or were they something you came across elsewhere?

Adding them to the OP now.

Re: How to UI

PostPosted: Fri May 10, 2013 12:21 pm
by Chiprel
I thought that all commands were listed back then. Seems I was wrong. Did cmdmap.put search lately and this is what I got:
(Line number from Enders source code, might(probably will) be different in loftars default client source code but code is the same.)
It seems that those commands were in for long time already. For example last time loftar made some changes to 'MainFrame.java' was 7 months ago.

GameUi.java:
Line 1274: cmdmap.put("afk", new Console.Command() { -doesnt seem to do anything
cmdmap.put("afk", new Console.Command() {
public void run(Console cons, String[] args) {
afk = true;
wdgmsg("afk");
}
});

Line 1280: cmdmap.put("act", new Console.Command() {
cmdmap.put("act", new Console.Command() {
public void run(Console cons, String[] args) {
Object[] ad = new Object[args.length - 1];
System.arraycopy(args, 1, ad, 0, ad.length);
wdgmsg("act", ad);
}
});

Line 1287: /*cmdmap.put("belt", new Console.Command() { -commented out in ender client, used in default
/*cmdmap.put("belt", new Console.Command() {
public void run(Console cons, String[] args) {
if(args[1].equals("f")) {
beltwdg.destroy();
beltwdg = new FKeyBelt(Coord.z, GameUI.this);
Utils.setpref("belttype", "f");
resize(sz);
} else if(args[1].equals("n")) {
beltwdg.destroy();
beltwdg = new NKeyBelt(Coord.z, GameUI.this);
Utils.setpref("belttype", "n");
resize(sz);
}
}
});*/

Line 1302: cmdmap.put("tool", new Console.Command() {
:tool
:tool ???
cmdmap.put("tool", new Console.Command() {
public void run(Console cons, String[] args) {
gettype(args[1]).create(new Coord(200, 200), GameUI.this, new Object[0]);
}
});


LocalMiniMap.java:
Line 218: cmdmap.put("radar", new Console.Command() { -Enders only
:radar
:radar on
:radar off
:radar reload
cmdmap.put("radar", new Console.Command() {
public void run(Console console, String[] args) throws Exception {
if (args.length == 2) {
String arg = args[1];
if (arg.equals("on")) {
radarenabled = true;
return;
}
else if (arg.equals("off")) {
radarenabled = false;
return;
}
else if (arg.equals("reload")) {
ui.sess.glob.oc.radar.reload();
return;
}
}
throw new Exception("No such setting");
}
});


MainFrame.java:
Line 133: cmdmap.put("sz", new Console.Command() {
:sz
:sz w h (width height)
:sz dyn
:sz lock
cmdmap.put("sz", new Console.Command() {
public void run(Console cons, String[] args) {
if(args.length == 3) {
int w = Integer.parseInt(args[1]),
h = Integer.parseInt(args[2]);
p.setSize(w, h);
pack();
Utils.setprefc("wndsz", new Coord(w, h));
} else if(args.length == 2) {
if(args[1].equals("dyn")) {
setResizable(true);
Utils.setprefb("wndlock", false);
} else if(args[1].equals("lock")) {
setResizable(false);
Utils.setprefb("wndlock", true);
}
}
}
});

Line 152: cmdmap.put("fsmode", new Console.Command() {
:fsmode w h (width height)
cmdmap.put("fsmode", new Console.Command() {
public void run(Console cons, String[] args) throws Exception {
if(args.length == 3) {
DisplayMode mode = findmode(Integer.parseInt(args[1]), Integer.parseInt(args[2]));
if(mode == null)
throw(new Exception("No such mode is available"));
fsmode = mode;
Utils.setprefc("fsmode", new Coord(mode.getWidth(), mode.getHeight()));
}
}
});

Line 163: cmdmap.put("fs", new Console.Command() {
:fs different_than_0 -fullscreen on
:fs 0 -fullscreen off
cmdmap.put("fs", new Console.Command() {
public void run(Console cons, String[] args) {
if(args.length >= 2) {
Runnable r;
if(Utils.atoi(args[1]) != 0) {
r = new Runnable() {
public void run() {
setfs();
}
};
} else {
r = new Runnable() {
public void run() {
setwnd();
}
};
}
getToolkit().getSystemEventQueue().invokeLater(r);
}
}
});


GLConfig.java:
Line 66: cmdmap.put("gl", new Console.Command() {
cmdmap.put("gl", new Console.Command() {
public void run(Console cons, String[] args) throws Exception {
if(args.length >= 3) {
String var = args[1].intern();
for(GLSettings.Setting<?> s : pref.settings()) {
if(s.nm == var) {
s.set(args[2]);
pref.save();
return;
}
}
throw(new Exception("No such setting: " + var));
}
}
});

For :gl:
GLSettings.java:
:gl usedl on/off?
:gl fsaa on/off?
:gl shuse on/off?
:gl light vlight
:gl light plight
:gl light pslight
:gl light vcel
:gl light pcel
public void set(String val) {
E eval;
try {
eval = Enum.valueOf(real, val.toUpperCase());
} catch(IllegalArgumentException e) {
throw(new SettingException("No such setting: " + e));
}
set(eval);
}
}

public final BoolSetting usedl = new BoolSetting("usedl") {
public Boolean defval() {return(true);}
public void validate(Boolean val) {}
};
public final BoolSetting fsaa = new BoolSetting("fsaa") {
public Boolean defval() {return(false);}
public void validate(Boolean val) {
if(val && !cfg.havefsaa())
throw(new SettingException("FSAA is not supported."));
}
};
public final BoolSetting shuse = new BoolSetting("shuse") {
public Boolean defval() {return(cfg.haveglsl());}
public void validate(Boolean val) {
if(val && !cfg.haveglsl())
throw(new SettingException("GLSL is not supported."));
}
};

public static enum Lights {
VLIGHT(Light.vlights),
PLIGHT(Light.plights),
PSLIGHT(Light.pslights),
VCEL(Light.vcel),
PCEL(Light.pcel);

public final GLState l;
Lights(GLState l) {
this.l = l;
}
};
public final EnumSetting<Lights> light = new EnumSetting<Lights>("light", Lights.class) {
public Lights defval() {return(Lights.VLIGHT);}
public void validate(Lights val) {
switch(val) {
case VLIGHT:
break;
case PLIGHT:
if(!cfg.haveglsl()) throw(new SettingException("Per-pixel lighting requires a shader-compatible video card."));
if(!shuse.val) throw(new SettingException("Per-pixel lighting requires shader usage."));
break;
case VCEL:
case PCEL:
if(!cfg.haveglsl()) throw(new SettingException("Cel-shading requires a shader-compatible video card."));
if(!shuse.val) throw(new SettingException("Cel-shading requires shader usage."));
break;
case PSLIGHT:
if(!cfg.haveglsl()) throw(new SettingException("Shadowed lighting requires a shader-compatible video card."));
if(!shuse.val) throw(new SettingException("Shadowed lighting requires shader usage."));
if(!cfg.havefbo()) throw(new SettingException("Shadowed lighting requires a video card supporting framebuffers."));
break;
}
}
};

Re: How to UI

PostPosted: Fri May 10, 2013 3:40 pm
by MagicManICT
The only ones I've put up there (that weren't posted in the thread) were posted by loftar at some point. Some of these are new to me, and if anyone can figure out what they do, I'll be glad to post them in the OP. Otherwise, there's not much reason to do so.

Re: How to UI

PostPosted: Fri May 10, 2013 8:12 pm
by Chiprel
belt f/n' switches between Fx/numeric toolbar. Default client only. No idea if there is other way of toolbars switching in default client. Didn't see anything in options.
:belt f (f1-f10 or f12 toolbar)
:belt n (numeric toolbar)

Re: How to UI

PostPosted: Fri May 10, 2013 11:59 pm
by MagicManICT
Alt+number swaps the toolbar from 1 to 10 (0). Good to know, and I think I forgot to put that in the OP, too. :oops: