- Jan 06, 2006
-
-
runemaster authored
-
rswindell authored
The variable 'exit_code' is only used for the return value if it's a number. Bug-fix: sbbs_srand() wasn't being called - random number generator wasn't being seeded.
-
- Jan 04, 2006
-
-
runemaster authored
-
runemaster authored
Added a "Happy Birthday" message to user if it is their Birthday.
-
runemaster authored
-
- Dec 30, 2005
-
-
deuce authored
-
deuce authored
-
deuce authored
-
deuce authored
a non-zero positive number.
-
deuce authored
selected and acts as a seperator. Pipe-codes still result in highlighting, but the "hotkey" isn't.
-
deuce authored
-
deuce authored
I can't find a way to pass a single numeric variable by reference. Oh well, JS is supposed to do objects anyways. :-)
-
deuce authored
-
deuce authored
***NOTE*** Current is the first item that had the returned retval, NOT necessarily the selected item (if the same retval is used by multiple items)
-
deuce authored
Make spaces between horizontal options the default attribute. Rename uber-function to lightbar_func. Add object support. Create a new Lightbar object with: var lb=new Lightbar(); Or optionally specify items like so: var lb=new Lightbar([{text:"Option1",retval:"1"},{text:"Option2",retval:"2"}]); Add a new option to the end of the items like this: lb.add(text, retval [, width]); Clear the items array using: lb.clear(); Execute the lightbar with: lb.getval([currentindex]); // Returns the retval for the selected item Properties are: xpos: Horizontal position of lightbar menu (1-based) xpos: Vertical position of lightbar menu (1-based) items: an array of objects each having the following properties: text - The displayed text. A | prefixes a hotkey retval - The value to return if this is selected OPTIONAL Properties: width - The width of this item. If not specified, is the width of the text. Otherwise, the text is truncated or padded with spaces to fit the width. direction: 0 for vertical, 1 for horizontal. Horizontal menus always have one space of padding added between items. fg: Foreground colour of a non-current item bg: Background colour of a non-current item hfg: Foreground colour of a current item hbg: Background colour of a current item kfg: Hotkey forground colour for non-current item khfg: Hotkey foreground colour for current item current: Index of currently highlighted item (ToDo: This should be passed by reference (how?)!) align: If width is greater than the text length, a zero indicates the text should be left-aligned, a 1 indicates it should be right-aligned, and a 2 indicates it should be centered. The Lightbar object will display a list of options and prompt the user for a selection if lightbar_func() returns NULL. Still todo... make the current value stay at the last selected one.
-
deuce authored
Currently, there are WAY to many options... this needs a set of simplified wrappers and current needs to be passed by reference somehow.
-
- Dec 29, 2005
-
-
deuce authored
"(null)" or "[null]"). digital man He has Spoken. So Shall it be.
-
- Dec 23, 2005
- Dec 22, 2005
-
-
deuce authored
Hopefully, he'll fix this one up so I don't need to.
-
deuce authored
-
deuce authored
getfiles() support... problem just be a read-only dir_list[i] property (file_count?)
-
deuce authored
the string, or should it replace the %c with "[null]" instead (similar to what %s does with a NULL)
-
deuce authored
unimplemented.
-
rswindell authored
-
rswindell authored
New properties: sysop_dir, user_dir, upload_dir, and lib[x].offline_dir
-
deuce authored
-
rswindell authored
the values of the newly defined macros of the same names. These allow easy comparison for scripts. Example: if(system.version_num < 31301) /* v3.13b */ print("version 3.13b or later required"); system.version_hex allows easy major/minor version number checking, parsing or printing using right-shift operations instead of division/rounding. Example: 31301/100 == 313.01 0x31301>>8 == 0x313
-
rswindell authored
properties).
-
rswindell authored
Use new VERSION_HEX macro for bbs_ver_num() result check.
-
rswindell authored
-
rswindell authored
VERSION_HEX macro).
-
rswindell authored
in a decimal number) and VERSION_HEX, ditto encoded in a hexadecimal number.
-
deuce authored
-
deuce authored
-
deuce authored
;POFF now displays the updated paging status. Add view/delete support to the ;PLAN command.
-
deuce authored
editing of .plan files.
-
- Dec 21, 2005