ID:166607
Jul 15 2006, 9:50 am
|
|
I noticed alot of game have a FAQ or their rules pop up in the browser after people log in. How would I do this? Could you show me the code commands plz?
|
Jul 15 2006, 9:54 am
|
|
Look up browse in the reference. You just pass to it the text that you want it to put in the browser. If you want a popup window, read up on the second argument. Giving it a window value will make it come up in a new window.
|
In response to Loduwijk
|
|
ok i know html and stuff but what I dont know how to do is format it in BYOND. For example how would i get it to show:
1.follow rules 2.blah blah info info info info info info info info info info info info infoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfo infoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfo infoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfo infoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfo infoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfo infoinfoinfoinfo i tryed using the break command but it puts things too far appart |
In response to FriesOfDoom
|
|
I showed you an example that pops up a window that says some stuff; you just have to make some minor adaptations to it to make it show anything else. The first argument to browse is what you change to show different stuff.
mob/verb/popup_test() To make doing html easy on you, you can also include constants for html opening and closing text, like the followin. var/const Then you can use them like so. var/const If you want to know more about being able to use hyperlinks to change between pages within a popup, look up the client/Topic function. You can also close a popup browser window by passing null as the first argument to browse. mob/proc/close_rules() Also, concerning the html opening, you can make a function that returns that text instead if you want, and then you could give it a parameter that allows you to give it a title if you want, then you can call that function and pass nothing to have a normal html heading, or pass a text string if you want to title it. proc/html_open(title) Then you could do something more like... mob/proc/show_rules() |
In response to Loduwijk
|
|
ummm thx man but i already put it in awhile ago, i already got it too come up when the usr logs in. I was just wonder if there was a command unstead of
or cuz they put in too much of a space. But i just used them anyway. Sorry should of posted earlier.:/ |
In response to FriesOfDoom
|
|
Make a list.
<ul> |
In response to FriesOfDoom
|
|
FriesOfDoom wrote:
I was just wonder if there was a command unstead ofor cuz they put in too much of a space. But i just used them anyway. |