comparison orpg/gametree/nodehandlers/dnd3e.py @ 82:2fa8bd6785a5 ornery-dev

TerminalWriter's colors are nice, but if no debug console is open it causes the software to look for one until a recursion error is created. Crash reports are sent to the debug console and a pop-up tells the user one has happened. Fix to chat window from SnowDog.
author sirebral
date Thu, 27 Aug 2009 00:51:22 -0500
parents fdcca00696ea
children 8827271fbe1b
comparison
equal deleted inserted replaced
81:65c212e9a5b4 82:2fa8bd6785a5
143 # r- resolved 143 # r- resolved
144 # o- open 144 # o- open
145 # 145 #
146 146
147 #import orpg.tools.orpg_settings #Not used?? 147 #import orpg.tools.orpg_settings #Not used??
148 import orpg.minidom 148 #import orpg.minidom
149 from core import component 149 from core import *
150 from containers import * 150 from containers import *
151 from string import * #a 1.6003 151 from string import * #a 1.6003
152 from inspect import * #a 1.9001 152 from inspect import * #a 1.9001
153 from orpg.dirpath import dir_struct 153 from orpg.dirpath import dir_struct
154
154 dnd3e_EXPORT = wx.NewId() 155 dnd3e_EXPORT = wx.NewId()
155 ############Global Stuff############## 156 ############Global Stuff##############
156 157
157 HP_CUR = wx.NewId() 158 HP_CUR = wx.NewId()
158 HP_MAX = wx.NewId() 159 HP_MAX = wx.NewId()
300 html_str += "<td width='50%' valign=top >"+self.classes.tohtml() 301 html_str += "<td width='50%' valign=top >"+self.classes.tohtml()
301 html_str += "<P>" + self.hp.tohtml() 302 html_str += "<P>" + self.hp.tohtml()
302 html_str += "<P>" + self.pp.tohtml() 303 html_str += "<P>" + self.pp.tohtml()
303 html_str += "<P>" + self.skills.tohtml() +"</td>" 304 html_str += "<P>" + self.skills.tohtml() +"</td>"
304 #a block for 1.6009 end 305 #a block for 1.6009 end
305
306 html_str += "</tr></table>" 306 html_str += "</tr></table>"
307 return html_str 307 return html_str
308 308
309 def about(self): 309 def about(self):
310 html_str = "<img src='" + dir_struct["icon"] 310 html_str = "<img src='" + dir_struct["icon"]