ID:163659
 
Is there a way to get the browse() command to take a space in the window instead of a popup?

I want to do this because most of my stat panels (HP, MP, EXP, etc) is shown when you click on the HUD-Stats, and shows up in a browse(). I want it so that you can click (Or just always have it) there for constant display to see it, but not be in a statpanel, so you can use Statpanels for other stuff like your Inventory or other information that is shown in statpanels instead.
If you're using BYOND 4.0, you can drop a browser control anywhere you want. You can have more than one, too.
In response to Jon88
Thats what I thought, but I added it, and when I clicked the thing that created the window, it appeared as a seperate window again.
In response to Polantaris
Instead of using browse(), I think you need to use output(). That way you can point it to a particular named control.
In response to Jon88
Oh okay, I'll try it.
In response to Polantaris
That worked, but is it possible to change the font and foreground/background?

Edit: Oops, sorry for the dbl post, meant to edit.
In response to Polantaris
Polantaris wrote:
Edit: Oops, sorry for the dbl post, meant to edit.

There's the 'Delete' button right next to the 'Edit' one.*
And you should be able to change the colors for the other window too, yes, AFAIK. Could also use HTML.

<small>*: It won't be there now, because you can only delete a post if nobody has replied after it yet.</small>
In response to Kaioken
It wont let me change the text stuff for the browser, but I make a second output and it seems to be working, but I need to make sure it doesnt get effected by stuff the first one is.

Also: whats the HTML for centering text? As in like having it like the following (But obviously done better because Im bad at centering)
Information!
Stuff
More Stuff
Stuff 2

Edit: Nevermind, thanks for the help.
In response to Jon88
Nope. You can use browse() you just need to set the window parameter as the control.
In response to Kalzar
does it have to be a browser object then? I cant change the font, fore or back ground colors with a browser object, which doesn't work for my interface, because its all dark, and a giant white space on the side would be pretty ugly.
In response to Polantaris
You can manually change that using CSS and HTML in the actual code.
In response to Kalzar
Whats the background color command for HTML? I was trying <bgcolor = black> but it doesnt work.
In response to Polantaris
http://www.w3schools.com/html/

To answer your particular question, you want the bgcolor attribute of the body tag. bgcolor isn't a tag in itself.
In response to Jon88
Ah, there we go. Thanks.