How to UI

Ask and answer any and all questions pertaining to Salem's game-play.

Re: How to UI

Postby Arurra » Thu Mar 28, 2013 2:43 pm

Can anyone tell me the command for open mini map?
Arurra
 
Posts: 33
Joined: Wed Aug 01, 2012 1:44 pm

Re: How to UI

Postby MagicManICT » Thu Mar 28, 2013 3:30 pm

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.
I am a moderator. I moderate stuff. When I do, I write in this color.
JohnCarver wrote:anybody who argues to remove a mechanic that allows "yet another" way to summon somebody is really a carebear in disguise trying to save his own hide.
MagicManICT
 
Posts: 5088
Joined: Wed Aug 01, 2012 1:46 am

Re: How to UI

Postby thl111 » Thu Apr 25, 2013 8:37 am

could anyone tell me how to see braziers' radius?
We make sword stone for keeper and pull they do it and excalibur come out. have no make stone to for sword we make sword box for sword to put sword in for sword. -Moniker (Anarchy online)
User avatar
thl111
 
Posts: 393
Joined: Wed Aug 01, 2012 1:28 am

Re: How to UI

Postby dageir » Thu Apr 25, 2013 5:17 pm

Right now it seems you can only see it when you start building a new one.
Somebody once wrote, "Hell is the impossibility of reason." That's what this place feels like. Hell
User avatar
dageir
 
Posts: 1270
Joined: Sat Nov 17, 2012 2:36 pm

Re: How to UI

Postby Chiprel » Wed May 08, 2013 10:36 am

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
dem M_O_V_E_M_E_N_T_O_A_T_M_E_A_L_C_R_A_C_K_E_R_S
Winner of bracket ( award.
<@TotalyMoo> Mushi, will you be my new lover? :<
User avatar
Chiprel
 
Posts: 778
Joined: Wed Aug 01, 2012 1:25 am

Re: How to UI

Postby MagicManICT » Thu May 09, 2013 5:16 am

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.
I am a moderator. I moderate stuff. When I do, I write in this color.
JohnCarver wrote:anybody who argues to remove a mechanic that allows "yet another" way to summon somebody is really a carebear in disguise trying to save his own hide.
MagicManICT
 
Posts: 5088
Joined: Wed Aug 01, 2012 1:46 am

Re: How to UI

Postby Chiprel » Fri May 10, 2013 12:21 pm

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;
}
}
};
dem M_O_V_E_M_E_N_T_O_A_T_M_E_A_L_C_R_A_C_K_E_R_S
Winner of bracket ( award.
<@TotalyMoo> Mushi, will you be my new lover? :<
User avatar
Chiprel
 
Posts: 778
Joined: Wed Aug 01, 2012 1:25 am

Re: How to UI

Postby MagicManICT » Fri May 10, 2013 3:40 pm

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.
I am a moderator. I moderate stuff. When I do, I write in this color.
JohnCarver wrote:anybody who argues to remove a mechanic that allows "yet another" way to summon somebody is really a carebear in disguise trying to save his own hide.
MagicManICT
 
Posts: 5088
Joined: Wed Aug 01, 2012 1:46 am

Re: How to UI

Postby Chiprel » Fri May 10, 2013 8:12 pm

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)
dem M_O_V_E_M_E_N_T_O_A_T_M_E_A_L_C_R_A_C_K_E_R_S
Winner of bracket ( award.
<@TotalyMoo> Mushi, will you be my new lover? :<
User avatar
Chiprel
 
Posts: 778
Joined: Wed Aug 01, 2012 1:25 am

Re: How to UI

Postby MagicManICT » Fri May 10, 2013 11:59 pm

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:
I am a moderator. I moderate stuff. When I do, I write in this color.
JohnCarver wrote:anybody who argues to remove a mechanic that allows "yet another" way to summon somebody is really a carebear in disguise trying to save his own hide.
MagicManICT
 
Posts: 5088
Joined: Wed Aug 01, 2012 1:46 am

PreviousNext

Return to Help!

Who is online

Users browsing this forum: Google [Bot] and 11 guests