Mercurial > traipse_dev
comparison orpg/gametree/nodehandlers/containers.py @ 181:fa18af3e04b9 alpha
Traipse Alpha 'OpenRPG' {100115-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 (Keeping up with Beta)
New Features:
Added Bookmarks
Added 'boot' command to remote admin
Added confirmation window for sent nodes
Minor changes to allow for portability to an OpenSUSE linux OS
Miniatures Layer pop up box allows users to turn off Mini labels, from
FlexiRPG
Zoom Mouse plugin added
Images added to Plugin UI
Switching to Element Tree
Map efficiency, from FlexiRPG
Added Status Bar to Update Manager
New TrueDebug Class in orpg_log (See documentation for usage)
Portable Mercurial
Tip of the Day added, from Core and community
New Reference Syntax added for custom PC sheets
New Child Reference for gametree
New Parent Reference for gametree
New Gametree Recursion method, mapping, context sensitivity, and
effeciency..
New Features node with bonus nodes and Node Referencing help added
Dieroller structure from Core
New DieRoller portability for odd Dice
Added 7th Sea die roller; ie [7k3] = [7d10.takeHighest(3).open(10)]
New 'Mythos' System die roller added
Added new vs. die roller method for WoD; ie [3v3] = [3d10.vs(3)].
Included for Mythos roller also
New Warhammer FRPG Die Roller (Special thanks to Puu-san for the
support)
New EZ_Tree Reference system. Push a button, Traipse the tree, get a
reference (Beta!)
Fixes:
Fix to Text based Server
Fix to Remote Admin Commands
Fix to Pretty Print, from Core
Fix to Splitter Nodes not being created
Fix to massive amounts of images loading, from Core
Fix to Map from gametree not showing to all clients
Fix to gametree about menus
Fix to Password Manager check on startup
Fix to PC Sheets from tool nodes. They now use the tabber_panel
Fix to Whiteboard ID to prevent random line or text deleting.
Fixes to Server, Remote Server, and Server GUI
Fix to Update Manager; cleaner clode for saved repositories
Fixes made to Settings Panel and now reactive settings when Ok is
pressed
Fixes to Alternity roller's attack roll. Uses a simple Tuple instead of
a Splice
Fix to Use panel of Forms and Tabbers. Now longer enters design mode
Fix made Image Fetching. New fetching image and new failed image
Modified ID's to prevent non updated clients from ruining the fix.
default_manifest.xml renamed to default_upmana.xml
author | sirebral |
---|---|
date | Fri, 15 Jan 2010 20:37:03 -0600 |
parents | 0dde29a41614 |
children | b633f4c64aae 81d0bfd5e800 |
comparison
equal
deleted
inserted
replaced
180:12ba14d30baa | 181:fa18af3e04b9 |
---|---|
198 """ <nodehandler name='?' module='containers' class='tabber_handler' />""" | 198 """ <nodehandler name='?' module='containers' class='tabber_handler' />""" |
199 | 199 |
200 def __init__(self, xml, tree_node): | 200 def __init__(self, xml, tree_node): |
201 container_handler.__init__(self, xml, tree_node) | 201 container_handler.__init__(self, xml, tree_node) |
202 | 202 |
203 def get_design_panel(self,parent): | 203 def get_design_panel(self, parent): |
204 return tabbed_panel(parent, self, 1) | 204 return tabbed_panel(parent, self, 1) |
205 | 205 |
206 def get_use_panel(self,parent): | 206 def get_use_panel(self, parent): |
207 return tabbed_panel(parent, self, 0) | 207 return tabbed_panel(parent, self, 0) |
208 | 208 |
209 | 209 |
210 class tabbed_panel(orpgTabberWnd): | 210 class tabbed_panel(orpgTabberWnd): |
211 def __init__(self, parent, handler, mode): | 211 def __init__(self, parent, handler, mode): |
212 orpgTabberWnd.__init__(self, parent, style=FNB.FNB_NO_X_BUTTON) | 212 orpgTabberWnd.__init__(self, parent, style=FNB.FNB_NO_X_BUTTON) |
213 self.handler = handler | 213 self.handler = handler |
214 self.parent = parent | 214 self.parent = parent |
215 if mode == 1: self.AddPage(tabbed_edit_panel(parent, handler), 'Tabber', False) | |
215 handler.tree.traverse(handler.mytree_node, self.pick_panel, mode, False) | 216 handler.tree.traverse(handler.mytree_node, self.pick_panel, mode, False) |
216 parent.SetSize(self.GetBestSize()) | 217 parent.SetSize(self.GetBestSize()) |
217 | 218 |
218 def pick_panel(self, treenode, mode): | 219 def pick_panel(self, treenode, mode): |
219 node = self.handler.tree.GetPyData(treenode) | 220 node = self.handler.tree.GetPyData(treenode) |
227 name = "Inventory" | 228 name = "Inventory" |
228 logger.info('A corrective action was take to a 3e PC Sheet', True) | 229 logger.info('A corrective action was take to a 3e PC Sheet', True) |
229 component.get('frame').TraipseSuiteWarn('item') | 230 component.get('frame').TraipseSuiteWarn('item') |
230 if panel: self.AddPage(panel, name, False) | 231 if panel: self.AddPage(panel, name, False) |
231 | 232 |
232 class tabbed_edit_panel(orpgTabberWnd): | 233 class tabbed_edit_panel(wx.Panel): |
233 def __init__(self, parent, handler): | 234 def __init__(self, parent, handler): |
234 orpgTabberWnd.__init__(self, parent, style=FNB.FNB_NO_X_BUTTON) | 235 wx.Panel.__init__(self, parent, -1, style=FNB.FNB_NO_X_BUTTON) |
235 self.handler = handler | 236 self.handler = handler |
236 self.parent = parent | 237 self.parent = parent |
237 main_sizer = wx.StaticBoxSizer(wx.StaticBox(self, -1, "Tabber"), wx.VERTICAL) | 238 main_sizer = wx.StaticBoxSizer(wx.StaticBox(self, -1, "Tabber"), wx.VERTICAL) |
238 self.title = wx.TextCtrl(self, 1, handler.xml.get('name')) | 239 self.title = wx.TextCtrl(self, 1, handler.xml.get('name')) |
239 main_sizer.Add(wx.StaticText(self, -1, "Title:"), 0, wx.EXPAND) | 240 main_sizer.Add(wx.StaticText(self, -1, "Title:"), 0, wx.EXPAND) |
240 main_sizer.Add(self.title, 0, wx.EXPAND) | 241 main_sizer.Add(self.title, 0, wx.EXPAND) |
241 self.SetSizer(main_sizer) | 242 self.SetSizer(main_sizer) |
242 self.SetAutoLayout(True) | 243 self.SetAutoLayout(True) |
243 self.Fit() | 244 self.Fit() |
245 parent.SetSize(self.GetBestSize()) | |
244 self.Bind(wx.EVT_TEXT, self.on_text, id=1) | 246 self.Bind(wx.EVT_TEXT, self.on_text, id=1) |
247 | |
245 | 248 |
246 def on_text(self,evt): | 249 def on_text(self,evt): |
247 txt = self.title.GetValue() | 250 txt = self.title.GetValue() |
248 if txt != "": | 251 if txt != "": |
249 self.handler.xml.set('name',txt) | 252 self.handler.xml.set('name',txt) |