Geom("ParentWidth", "ParentHeight")
Moderators: GSH, VSMIT, Red Devil, Commando
Geom("ParentWidth", "ParentHeight")
Okay, where on earth does BZ2's shell code get these values from, and where can I change it?
Re: Geom("ParentWidth", "ParentHeight")
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")
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...
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")
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.
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.
- General BlackDragon
- Flying Mauler
- Posts: 2408
- Joined: Sat Feb 19, 2011 6:37 am
- Contact:
Re: Geom("ParentWidth", "ParentHeight")
I think the first one is bzshell_init.cfg,
Re: Geom("ParentWidth", "ParentHeight")
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);
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);
- General BlackDragon
- Flying Mauler
- Posts: 2408
- Joined: Sat Feb 19, 2011 6:37 am
- Contact:
Re: Geom("ParentWidth", "ParentHeight")
Yup yup yup, that works 

Re: Geom("ParentWidth", "ParentHeight")
What does it achieve? I'm no good with the shell.