comparison orpg/tools/scriptkit.py @ 228:24769389a7ba alpha

Traipse Alpha 'OpenRPG' {100612-01} 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 04:38:29 -0500
parents b633f4c64aae
children
comparison
equal deleted inserted replaced
225:2c6db2043764 228:24769389a7ba
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 ).