Mercurial > traipse_dev
comparison orpg/tools/scriptkit.py @ 227:81d0bfd5e800 alpha
Traipse Alpha 'OpenRPG' {100612-00}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for
developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to
the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user.
Update Summary (Preparing to close updates)
New Features:
New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order
Fixes:
Fix to InterParse that was causing an Infernal Loop with Namespace Internal
Fix to XML data, removed old Minidom and switched to Element Tree
Fix to Server that was causing eternal attempt to find a Server ID, in Register Rooms thread
Fix to metaservers.xml file not being created
author | sirebral |
---|---|
date | Sat, 12 Jun 2010 03:50:37 -0500 |
parents | c54768cffbd4 |
children |
comparison
equal
deleted
inserted
replaced
182:4b2884f29a72 | 227:81d0bfd5e800 |
---|---|
19 # | 19 # |
20 # File: scriptkit.py | 20 # File: scriptkit.py |
21 # Author: Ted Berg | 21 # Author: Ted Berg |
22 # Maintainer: | 22 # Maintainer: |
23 # Version: | 23 # Version: |
24 # $Id: scriptkit.py,v 1.15 2006/11/04 21:24:22 digitalxero Exp $ | 24 # $Id: scriptkit.py,v Traipse 'Ornery-Orc' prof.ebral Exp $ |
25 # | 25 # |
26 # Description: Class that contains convenience methods for various operations. Was created with the purpose | 26 # Description: Class that contains convenience methods for various operations. Was created with the purpose |
27 # of exposing a simple API to users of an as yet uncreated scripting interface. | 27 # of exposing a simple API to users of an as yet uncreated scripting interface. |
28 # | 28 # |
29 | 29 |
30 | 30 |
31 import time | 31 import time |
32 from orpg.orpg_windows import * | 32 from orpg.orpg_windows import * |
33 from orpg.orpg_xml import * | 33 #from orpg.orpg_xml import * |
34 from orpg.orpg_wx import * | 34 from orpg.orpg_wx import * |
35 import orpg.chat.chat_msg | 35 import orpg.chat.chat_msg |
36 | 36 |
37 class scriptkit: | 37 class scriptkit: |
38 def __init__(self): | 38 def __init__(self): |
43 """ | 43 """ |
44 self.chat = component.get( 'chat' ) | 44 self.chat = component.get( 'chat' ) |
45 self.map = component.get( 'map' ) | 45 self.map = component.get( 'map' ) |
46 self.settings = component.get( 'settings' ) | 46 self.settings = component.get( 'settings' ) |
47 self.session = component.get('session') | 47 self.session = component.get('session') |
48 self.xml = component.get('xml') | 48 #self.xml = component.get('xml') |
49 | 49 |
50 def addMiniatureToMap( self, min_label, min_url, unique=0 ): | 50 def addMiniatureToMap( self, min_label, min_url, unique=0 ): |
51 """Adds a new miniature icon to the map. Miniature <em>will</em> be labeled unless autolabel is | 51 """Adds a new miniature icon to the map. Miniature <em>will</em> be labeled unless autolabel is |
52 turned off on the map <em>and</em> the min_label field is blank. Miniature will be numbered unless | 52 turned off on the map <em>and</em> the min_label field is blank. Miniature will be numbered unless |
53 the 'unique' argument evaluates to True ( i.e. nonzero or a non-empty string ). | 53 the 'unique' argument evaluates to True ( i.e. nonzero or a non-empty string ). |