123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html><head><title>Python: olc</title>
- </head><body bgcolor="#f0f0f8">
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
- <tr bgcolor="#7799ee">
- <td valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>olc</strong></big></big></font></td
- ><td align=right valign=bottom
- ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br>(built-in)</font></td></tr></table>
- <p><tt>This is the Python wrapper for the online creation module. Allows users<br>
- to set up new menus and handlers for editing data, such as characters,<br>
- while online.</tt></p>
- <p>
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
- <tr bgcolor="#eeaa77">
- <td colspan=3 valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
-
- <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
- <td width="100%"><dl><dt><a name="-do_olc"><strong>do_olc</strong></a>(...)</dt><dd><tt><a href="#-do_olc">do_olc</a>(sock, menu_func, chooser_func, parse_func, saver_func, data, autosave=False)<br>
- <br>
- Entry point to the olc system. See olc2/olc.h for documentation.</tt></dd></dl>
- <dl><dt><a name="-extend"><strong>extend</strong></a>(...)</dt><dd><tt><a href="#-extend">extend</a>(olc_type, optname, menu_func, chooser_func, parse_func = None,<br>
- fromproto_func = None, toproto_func = None)<br>
- <br>
- Register a new olc menu extender. Types are medit, redit, and oedit. See<br>
- olc2/olc_extender.h for documentation.</tt></dd></dl>
- <dl><dt><a name="-item_add_olc"><strong>item_add_olc</strong></a>(...)</dt><dd><tt><a href="#-item_add_olc">item_add_olc</a>(itemtype, menu_func, chooser_func, parse_func,<br>
- fromproto_func, toproto_func)<br>
- <br>
- Register a new olc handler for an item type. See items/iedit.h for<br>
- documentation.</tt></dd></dl>
- </td></tr></table><p>
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
- <tr bgcolor="#55aa55">
- <td colspan=3 valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
-
- <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
- <td width="100%"><strong>MENU_CHOICE_INVALID</strong> = -1<br>
- <strong>MENU_CHOICE_OK</strong> = -2<br>
- <strong>MENU_NOCHOICE</strong> = 0</td></tr></table>
- </body></html>
|