comparison orpg/gametree/nodehandlers/voxchat.py @ 66:c54768cffbd4 ornery-dev

Traipse Dev 'OpenRPG' {090818-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: *Unstable* This is the first wave of Code Refinement updates. Includes new material from Core Beta; new debugger material (partially implemented), beginnings of switch to etree, TerminalWriter, and a little more. open_rpg has been renamed to component; functioning now as component.get(), component.add(), component.delete(). This version has known bugs, specifically with the gametree and nodes. I think the XML files where not removed during testing of Core and switching back.
author sirebral
date Tue, 18 Aug 2009 06:33:37 -0500
parents 4385a7d0efd1
children 06f10429eedc
comparison
equal deleted inserted replaced
65:4840657c23c5 66:c54768cffbd4
37 import orpg.tools.scriptkit 37 import orpg.tools.scriptkit
38 import orpg.tools.predTextCtrl 38 import orpg.tools.predTextCtrl
39 import orpg.tools.rgbhex 39 import orpg.tools.rgbhex
40 import orpg.tools.inputValidator 40 import orpg.tools.inputValidator
41 41
42 import orpg.dirpath 42 from orpg.dirpath import dir_struct
43 import orpg.minidom 43 import orpg.minidom
44 import orpg.networking.mplay_client 44 import orpg.networking.mplay_client
45 from orpg.orpgCore import open_rpg 45 from orpg.orpgCore import component
46 46
47 # 47 #
48 # Good things to add: 48 # Good things to add:
49 # 1.u'use filter' per alias [ this should be done ] 49 # 1.u'use filter' per alias [ this should be done ]
50 # 2. make aliases remember which filter they're using [ lisbox in gtk appaears to ignore SetSelection( <= 0 ) 50 # 2. make aliases remember which filter they're using [ lisbox in gtk appaears to ignore SetSelection( <= 0 )
53 53
54 class voxchat_handler(core.node_handler): 54 class voxchat_handler(core.node_handler):
55 def __init__(self, xml_dom, tree_node): 55 def __init__(self, xml_dom, tree_node):
56 core.node_handler.__init__( self, xml_dom, tree_node) 56 core.node_handler.__init__( self, xml_dom, tree_node)
57 self.node = xml_dom 57 self.node = xml_dom
58 self.xml = open_rpg.get_component('xml') 58 self.xml = component.get('xml')
59 59
60 def get_design_panel( self, parent ): 60 def get_design_panel( self, parent ):
61 aliasLib = open_rpg.get_component('alias') 61 aliasLib = component.get('alias')
62 aliasLib.ImportFromTree(self.node) 62 aliasLib.ImportFromTree(self.node)
63 return None 63 return None
64 64
65 def get_use_panel( self, parent ): 65 def get_use_panel( self, parent ):
66 aliasLib = open_rpg.get_component('alias') 66 aliasLib = component.get('alias')
67 aliasLib.ImportFromTree(self.node) 67 aliasLib.ImportFromTree(self.node)
68 return None 68 return None