ID:170299
Feb 17 2005, 7:08 am
|
|
stacking statpanels can it be done is the question can it be done and how i tried many way to do it in more detail i mean the 'tabs' stacking on eachoter to save room
|
In response to Shadowdarke
|
|
ok thanks for letting me know Shadowdarke.but how would i go and set it up in the browser or should i do a hud for the verb which do you suggest?
|
In response to Jokerjohn
|
|
I would suggest using the Browser for information that won't change often, or at all, like skills, traits or descriptions. Keep the stat panels for commands and your inventory, and put the stats that change often on the game screen as a HUD. This way, you can give the player the info they want right up front without 100 stat panels.
~X |
In response to Jokerjohn
|
|
Jokerjohn wrote:
ok thanks for letting me know Shadowdarke.but how would i go and set it up in the browser You'll need to familiarize yourself with the Topic() proc in the reference and study up on HTML. To display the page, you'll have to make your program build the HTML as a string of text, then send it to the player though browse(). To make the tabs, I would display a table and make a clickable <TD> (with the onClick javascript method) for each tab. (Rollovers would be nice too, so the player knows which areas are interactive.) Clicking the tab sends BYOND a message to display the new tab. Below that table, display the information for the currently selected page. Lucky for you, I happen to have a snippet handy that does just that. It only has one row of tabs, because I only have 3 of them in this particular interface. Note that this one is for submitting a form in multiple parts. As such, it calls the form's submit method instead of directly sending the new page name to BYOND when the tab is clicked. These procs belong to a custom datum. Topic(href,hlist[]) If all that seems too complex, you may be interested in my sd_Tree library, which is coming to BYONDscape soon. It doesn't show a tabbed page view (though it could with a little modification) but it does allow you to easily navigate between pages in the browser. Maybe I'll add a tabbed view or even multi-tiered tab view to it. :) should i do a hud for the verb which do you suggest? It depends. How many verbs are you wanting to display? A lot of HUD items tend to slow down the client, but they are quite a bit easier to program in DM. |
You could make a multiple row tab interface through the browser. It's not the statpanel, but it looks pretty. :) If you choose this method, you'll have to determine when to update the browser page.