Mercurial > openrpg
changeset 548:2eb5a6a4c4f9
Added the Voxchat node back and just marked it as pending depreciation and removed it's functionality
author | digitalxero |
---|---|
date | Tue, 30 Mar 2010 06:06:16 -0600 |
parents | 7937d730911a |
children | 738b2105551f |
files | orpg/gametree/gametree.py orpg/gametree/nodehandlers/voxchat.py |
diffstat | 2 files changed, 50 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/orpg/gametree/gametree.py Fri Mar 26 18:55:06 2010 -0600 +++ b/orpg/gametree/gametree.py Tue Mar 30 06:06:16 2010 -0600 @@ -54,6 +54,7 @@ import orpg.gametree.nodehandlers.minilib import orpg.gametree.nodehandlers.rpg_grid import orpg.gametree.nodehandlers.d20 +import orpg.gametree.nodehandlers.voxchat import orpg.gametree.nodehandlers.StarWarsd20 from orpg.gametree.gametree_version import GAMETREE_VERSION import orpg.external.etree.ElementTree as ET @@ -224,6 +225,7 @@ self.add_nodehandler('node_loader', core.node_loader) self.add_nodehandler('url_loader', core.url_loader) self.add_nodehandler('min_map', core.min_map) + self.add_nodehandler('voxchat_handler', orpg.gametree.nodehandlers.voxchat.voxchat_handler) @debugging def on_key_up(self, evt):
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/orpg/gametree/nodehandlers/voxchat.py Tue Mar 30 06:06:16 2010 -0600 @@ -0,0 +1,48 @@ +# Copyright (C) 2000-2001 The OpenRPG Project +# +# openrpg-dev@lists.sourceforge.net +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# -- +# +# File: voxchat.py +# Author: Ted Berg +# Maintainer: +# Version: +# $Id: voxchat.py,v 1.37 2007/05/06 16:42:55 digitalxero Exp $ +# +# Description: nodehandler for alias. +# + +import re +import os +import string + +from orpg.orpgCore import open_rpg +from orpg.tools.decorators import pending_deprecation + +import core + + +class voxchat_handler(core.node_handler): + def __init__(self, xml, tree_node): + core.node_handler.__init__(self, xml, tree_node) + + @pending_deprecation("The ALias Lib no longer imports from the game tree") + def get_use_panel(self, parent): + chat = open_rpg.get_component('chat') + chat.InfoPost("The ALias Lib no longer imports from the game tree") + return None + get_design_panel = get_use_panel