I was only thinking of panel sizes as you previously suggested. Do you really think it is a helpful idea to allow the placement to be changed? I'm open to suggestions.
import "zlib.ash";
void main(){
setvar('game.charpane','200');
setvar('game.chatpane','20%');
setvar('game.chatpane.page','launcher');//launcher, modern, older, ancient, mafia
writeln('<html><head><title>The Kingdom of Loathing</title><script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.css" /></head>');
writeln('<frameset border="1" id="rootset" cols="'+vars['game.charpane']+',*,'+vars['game.chatpane']+'">');
writeln(' <frame name="charpane" src="charpane.php"></frame>');
writeln(' <frameset border="1" id="mainset" rows="55,*">');
writeln(' <frame name="menupane" src="topmenu.php" scrolling=no></frame>');
writeln(' <frame name="mainpane" src="main.php"></frame>');
writeln(' </frameset>');
write(' <frame name="chatpane" src="');
switch(vars['game.chatpane.page']){
case 'launcher':writeln('chatlaunch.php');break;
case 'modern':writeln('mchat.php');break;
case 'older':writeln('lchat.php');break;
case 'ancient':writeln('chat.php');break;
case 'mafia':writeln('chat.html');break;
}
writeln('"></frame></frameset>');
writeln('<script src="/onfocus.js"></script></html>');
}
Do you have Mafia set to cache images? I think my problem with that went away when I unchecked that option.
Usually when I want to disable ChIT, it's to get a manageable debug log for the HTML of the main frame. Setting chit.disable = true still results in a large number of function calls, so I generally ignore the setting and rename charpane.ash instead.
Hrm, that's weird I never knew I had that option checked.
This has very little to do with ChIT, but since it now includes game.ash, I thought I'd mention...does anyone else always enter chat immediately upon logging in? Because long, long ago, I made my own game.ash that bypasses chatlaunch.php and goes straight into chat (simply by referring the chatpane to chat.html instead of chatlaunch.php). Just wondering if anyone else was interested in that, and if so, maybe it can be included (with a variable to opt-out for anyone who doesn't want it).
Panel sizes would be easy.
EDITED: Including auto launching chat window.
I don't understand all of that. What is the meaning of those 5 options for game.chatpane.page? (Obviously I'd be changing your var names to match others in my script, since they don't start with chit.)
import "zlib.ash";
string chatpane() {
if(vars['chit.game.chatlaunch'] == 'true') {
matcher chat = create_matcher('"([^"]*)"><b>Enter the Chat', visit_url('chatlaunch.php'));
if(chat.find())
return chat.group(1);
}
return 'chatlaunch.php';
}
// Rewritten game.php by bordemstirs
void main() {
setvar('chit.game.chatlaunch', false);
writeln('<html><head><title>The Kingdom of Loathing</title><script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.css" /></head>');
writeln('<frameset id=rootset cols="200,3*,*">');
writeln(' <frame name=charpane src="charpane.php"></frame>');
writeln(' <frameset id=mainset rows="50,*">');
writeln(' <frame name=menupane src="topmenu.php" scrolling=no></frame>');
writeln(' <frame name=mainpane src="main.php"></frame>');
writeln(' </frameset>');
writeln(' <frame name=chatpane src="'+ chatpane() +'"></frame>');
writeln('</frameset>');
writeln('<script src="/onfocus.js"></script></html>');
}
Thanks for the link! I knew there was a way, but I was too lazy to look it up. =/I was wondering if other people had a game.php which I would be conflicting with. First, do you know how to merge your changes to game.php with mine, by editing the version in the /svn folder? (Informational Link) Also, I am now considering making that an option for ChIT if anyone else speaks up about wanting to do it.
I think he just meant the bit about the chat launcher.I consider that anything which affects the charpane can be part of the Character Info Toolbox. Making the charpane taller certainly seems relevant to me.
I technically never use chat in the relay browser so code to launch that would be completely useless for me as I would close it again (I use Mafia's builtin chat that opens up on login) which would be several unnecessary server hits.
Oh yeah. That is kinda odd for ChIT. Maybe I shouldn't include it? I'm going a little off the reservation there...
I'd really like to hear if people reading this thread approve or disapprove of chat launching and changing frame arrangement to allow the charpane to be taller. Your opinions greatly matter to me.