If you have ever programmed in Visual Basic from Microsoft, you would know that when you type something such as an object's name, then a period, a pop up box comes up of all its variables, properties, and its subs and functions. I would like something similiar to this in byond, if at all possible.
If you happen to have Visual Basic on your computer at the moment, you can see a perfect example of what im talking about with the following example.
Start a new Standard Exe project, and create a button on the form. Double Click that button, and you will then go to the code page. On the code page, type the following, then stop typing.
Project1.Form1.
if the name of your project is project1, you will notice that a pop up box of all the contents of the project will have poped up, then we typed form1., now we have a pop up box of all the properties and variables, functions, subs of form1 in a pop up box.
this would make programming in byond yet again, easier and more faster than ever. With this added feature, we could see all of the variables in our mob, such as
usr.
a pop up box would then come up of all of his variables, such as hp, mp, whatever you have given him. The defualt variables and procs would show up as well, such as Move(), and the likes.
I believe this feature is well worth it, because it makes byond even easier, faster, and a better interface/environment for the programmer to work in.
and for the people that this annoys, there could be a little option to turn it off, so it wont pop up.
FIREking
1
2
ID:137485
Nov 9 2001, 4:39 pm
|
|
Nov 9 2001, 5:44 pm
|
|
You realise how much work that would involve to implement?
|
I had a post back awhile ago about a card datum...
I like that idea better. It was thrown out the door, though... :-( |
In response to Lord of Water
|
|
Lord of Water wrote:
I had a post back awhile ago about a card datum... It wasn't thrown out the door. It's something you can already easily impliment on your own in BYOND. |
In response to Shadowdarke
|
|
Okay, could you send me in the right direction?
I want, in simple terms, an extention of the alert() proc that uses a mix of BYOND procs and HTML tables to make a formatted command center in a card. I want to format this into a datum, and want to use it like this: card I have no idea how to go about forming such a datum and having it work the way I want it to. Thanks for beleiving in me, though: It's nice to know that you think I can accomplish this. If and when I finish the card datum, I'll be sure to release it. |
In response to Lord of Water
|
|
BYOND doesn't provide a way to overide operators, so usr << room_desc_card won't be available. room_desc_card.Display(usr) or DisplayCard(usr,room_desc_card), if you prefer, would work though and isn't any worse than an alert call. Your best bet would be to work with the built in browser and avoid popups. (I hate alerts and popups.) Check out the html library. If you really must have a popup, you'll have to use a bit of javascript to open a new browser window.
|
In response to Shadowdarke
|
|
I still think that BYOND needs a larger, more extensive pop-up system. I mean, when you go to "save" your game on most commercial games, you don't click on Save in a statpanel. there is a pop up and guides you through saving. I don't think BYOND is a complete system without somthing similar to the card datum.
|
In response to Lord of Water
|
|
you do know that what you said has nothing to do with what im talking about right?
|
In response to Lord of Water
|
|
Lord of Water wrote:
I still think that BYOND needs a larger, more extensive pop-up system. I mean, when you go to "save" your game on most commercial games, you don't click on Save in a statpanel. there is a pop up and guides you through saving. I don't think BYOND is a complete system without somthing similar to the card datum. Whoever said you had to do that? Its up to you how you handle saving: through a web browser topic link, through a statpanel, through clicking on a bed, through clicking on an image of a save button. Alathon |
In response to Alathon
|
|
no, he has to have a "special" window alathon!
lol FIREking |
In response to FIREking
|
|
I simply want more functionality. I'll cope, though. See you later.
|
In response to Lord of Water
|
|
Oh! You want dialog boxes! Heh, now it makes a little more sense.
You can do almost anything with an HTML form that you could with a dialog box. Only limit that comes to mind is that HTML forms aren't modal, but neither are the current input or alert boxes. A modal dialog box won't let the user do anything else in the program until they have exited the box. You can always code it in, but it's a hassle to add "if(usr.ModalBoxOpen) return" to the beginning of every verb. |
In response to Shadowdarke
|
|
I can do an browser-based popup for chat if I want to. I can have a JS program update it every so often (maybe, ten times a second?) and display things people say. I could do all of that, yes. But I want more functionality... and I want to move away from using the browser for those things.
|
In response to Lord of Water
|
|
Lord of Water wrote:
I can do an browser-based popup for chat if I want to. I can have a JS program update it every so often (maybe, ten times a second?) and display things people say. I could do all of that, yes. But I want more functionality... and I want to move away from using the browser for those things. Before you go updating at that rate, remember how many kilobytes a webpage is. Now remember how many users you need to send that many kilobytes to each time you update. Believe me, you'd be much better off updating each person individually of one another on the order of once every couple of seconds or more. |
In response to Lord of Water
|
|
i just didnt want to get you confused with the type of pop up im talking about.
|
In response to Spuzzum
|
|
probably alot more than anyone could stand, I wonder if somehow microsoft somehow stumbled onto it, and decided it was a good idea(which it was)
|
In response to Spuzzum
|
|
I wouldn't send the whole page to them again. I would only send the text, and it would be handeled as text only -- you'd have to have a big chat to waste cpu updating the page 10 times/second. Also, the program could keep only 50 lines of text -- when a line moves to #51, it is discarded.
|
In response to Lord of Water
|
|
Lord of Water wrote:
I can do an browser-based popup for chat if I want to. I'm not talking about a chat. A dialog box is a new window that pops up and allows the user to input data for use in the program. When you click Save as in a program, the "Save as dialog box" opens, letting you select where you want to save, the name and format of the file, and other nifty stuff. Dialog boxes allow several types of controls including radio boxs, check boxes, drop down lists, and more. HTML forms offer all these possibilities. |
a pop up box would then come up of all of his variables, such as hp, mp, whatever you have given him. The defualt variables and procs would show up as well, such as Move(), and the likes. I may be misunderstanding your point, but it seems to me that BYOND already has all that's needed in this area. You can browse vars and procs easily with the object tree, and in the map editor you can view and edit all the variables of a given object with Look. |
FIREking wrote:
If you have ever programmed in Visual Basic from Microsoft, you would know that when you type something such as an object's name, then a period, a pop up box comes up of all its variables, properties, and its subs and functions. I would like something similiar to this in byond, if at all possible. Well, this has been on the list for some time, because I am a jealous person when it comes to the programming environment's capabilities. There are a few technical hurdles to deal with to prevent this from being a major CPU suck. --Dan |
1
2