Page 1 of 1
Geom("ParentWidth", "ParentHeight")
Posted: Thu May 12, 2011 6:28 pm
by TheJamsh
Okay, where on earth does BZ2's shell code get these values from, and where can I change it?
Re: Geom("ParentWidth", "ParentHeight")
Posted: Thu May 12, 2011 6:34 pm
by Nielk1
From whatever holds the element. Unless that is on the parent most element, then I am at a loss and it might be hard-coded to 640 by 480 in shell, which might be your issue.
Re: Geom("ParentWidth", "ParentHeight")
Posted: Thu May 12, 2011 6:49 pm
by TheJamsh
I have a horrible feeling it gets its values as 640*480 until a world is loaded and then back out again... manually setting the shell size seems to be off a bit as well... at a loss at the moment as to where things are going wrong.
Anybody know what the VERY first shell file loaded by BZ2 is? I assume if i can do anything about the values, they would be in there...
Re: Geom("ParentWidth", "ParentHeight")
Posted: Thu May 12, 2011 6:54 pm
by Nielk1
I am guessing "init" or something. It is what would have all the color groups in it.
If it turns out to be an issue of the default value being 640 and 480 when no other is found (parent most element with said setting) then I sugest opening a request that it instead return the shell's internal pre-scale resolution.
Re: Geom("ParentWidth", "ParentHeight")
Posted: Fri May 13, 2011 3:08 am
by General BlackDragon
I think the first one is bzshell_init.cfg,
Re: Geom("ParentWidth", "ParentHeight")
Posted: Fri May 13, 2011 9:48 am
by TheJamsh
It must be coded in then, thats a shame. It turns out that setting shellresy and shellresx don't always seem to line up with my screen very well. In fact something that should be on the left, is somewhere else. It gets very confusing.
Trouble is when i return from a game, all the shell components move again, even the stock ones this time (vehicle list is on far right of screen etc). Nightmare
EDIT: Okay, its (strangely) working now, but you have to get rid of the parentheight and parentwidth commands, and add this to the first window in each file. Not sure if this is a workaround or if its meant to work this way, but at least it does now
//Geometry("PARENTWIDTH", "PARENTHEIGHT");
Style("TRANSPARENT", "INERT");
Size(1440, 900);
Re: Geom("ParentWidth", "ParentHeight")
Posted: Fri May 13, 2011 3:28 pm
by General BlackDragon
Yup yup yup, that works

Re: Geom("ParentWidth", "ParentHeight")
Posted: Fri May 13, 2011 4:03 pm
by Ded10c
What does it achieve? I'm no good with the shell.