Mercurial > traipse_dev
comparison orpg/gametree/nodehandlers/rpg_grid.py @ 138:1ed2feab0db9 alpha
Traipse Alpha 'OpenRPG' {091021-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 (Cleaning up for Beta)
Added Bookmarks
Fix to Remote Admin Commands
Minor fix to text based Server
Fix to Pretty Print, from Core
Fix to Splitter Nodes not being created
Fix to massive amounts of images loading, from Core
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
default_manifest.xml renamed to default_upmana.xml
Cleaner clode for saved repositories
New TrueDebug Class in orpg_log (See documentation for usage)
Mercurial's hgweb folder is ported to upmana
Pretty important update that can help remove thousands of dead children from your gametree.
Children, <forms />, <group_atts />, <horizontal />, <cols />, <rows />, <height />, etc... are all tags now. Check
your gametree and look for dead children!!
New Gametree Recursion method, mapping, and context sensitivity. !!Alpha Still- Watch out for infinite loops!!
New Syntax added for custom PC sheets
Tip of the Day added, from Core and community
Fixed Whiteboard ID to prevent random line or text deleting. Appended tr_ to ID's to prevent non updated clients from
ruining the fix.
author | sirebral |
---|---|
date | Sat, 21 Nov 2009 03:19:34 -0600 |
parents | 90d19eb43830 |
children | 06f10429eedc |
comparison
equal
deleted
inserted
replaced
137:54446a995007 | 138:1ed2feab0db9 |
---|---|
388 | 388 |
389 def del_row(self,evt=None): | 389 def del_row(self,evt=None): |
390 num = self.GetNumberRows() | 390 num = self.GetNumberRows() |
391 if num == 1: | 391 if num == 1: |
392 return | 392 return |
393 self.handler.grid.remove(self.handler.grid[num-1])#always remove last row -- nasty | 393 self.handler.grid.remove(self.handler.grid[num-1])# always remove last row -- nasty |
394 self.DeleteRows(num-1,1) | 394 self.DeleteRows(num-1,1) |
395 self.rows = self.handler.grid.findall('row') | 395 self.rows = self.handler.grid.findall('row') |
396 self.handler.refresh_rows() | 396 self.handler.refresh_rows() |
397 | 397 |
398 def del_col(self,evt=None): | 398 def del_col(self,evt=None): |
399 num = self.GetNumberCols() | 399 num = self.GetNumberCols() |
400 if num == 1: | 400 if num == 1: |
401 return | 401 return |
402 for r in self.rows: | 402 for r in self.rows: |
403 cells = r.findall('cell') | 403 cells = r.findall('cell') |
404 r.remove(r[num-1])# always remove the last column -- nasty | 404 r.remove(r[num-1]) # always remove the last column -- nasty |
405 self.DeleteCols(num-1,1) | 405 self.DeleteCols(num-1,1) |
406 self.set_col_widths() | 406 self.set_col_widths() |
407 | 407 |
408 | 408 |
409 G_TITLE = wx.NewId() | 409 G_TITLE = wx.NewId() |
432 class rpg_grid_edit_panel(wx.Panel): | 432 class rpg_grid_edit_panel(wx.Panel): |
433 def __init__(self, parent, handler): | 433 def __init__(self, parent, handler): |
434 wx.Panel.__init__(self, parent, -1) | 434 wx.Panel.__init__(self, parent, -1) |
435 self.handler = handler | 435 self.handler = handler |
436 self.grid = rpg_grid(self,handler) | 436 self.grid = rpg_grid(self,handler) |
437 self.main_sizer = wx.StaticBoxSizer(wx.StaticBox(self, -1, "Grid"), wx.VERTICAL) | |
438 | |
437 self.title = wx.TextCtrl(self, G_TITLE, handler.xml.get('name')) | 439 self.title = wx.TextCtrl(self, G_TITLE, handler.xml.get('name')) |
438 | 440 |
439 radio_b = wx.RadioBox(self, GRID_BOR, "Border (HTML)", choices=["no","yes"]) | 441 radio_b = wx.RadioBox(self, GRID_BOR, "Border (HTML)", choices=["no","yes"]) |
440 border = handler.grid.get("border") | 442 border = handler.grid.get("border") |
441 radio_b.SetSelection(int(border)) | 443 radio_b.SetSelection(int(border)) |
442 | 444 |
443 self.auto_size = wx.CheckBox(self, G_AUTO_SIZE, " Auto Size") | 445 self.auto_size = wx.CheckBox(self, G_AUTO_SIZE, "Auto Size") |
444 if handler.is_autosized() == '1': | 446 if handler.is_autosized() == '1': self.auto_size.SetValue(True) |
445 self.auto_size.SetValue(True) | 447 else: self.auto_size.SetValue(False) |
446 else: | |
447 self.auto_size.SetValue(False) | |
448 | 448 |
449 sizer = wx.BoxSizer(wx.HORIZONTAL) | 449 sizer = wx.BoxSizer(wx.HORIZONTAL) |
450 sizer.Add(wx.Button(self, G_ADD_ROW, "Add Row"), 1, wx.EXPAND) | 450 sizer.Add(wx.Button(self, G_ADD_ROW, "Add Row"), 1, wx.EXPAND) |
451 sizer.Add(wx.Size(10,10)) | 451 sizer.Add(wx.Size(10,10)) |
452 sizer.Add(wx.Button(self, G_DEL_ROW, "Remove Row"), 1, wx.EXPAND) | 452 sizer.Add(wx.Button(self, G_DEL_ROW, "Remove Row"), 1, wx.EXPAND) |
453 sizer.Add(wx.Size(10,10)) | 453 sizer.Add(wx.Size(10,10)) |
454 sizer.Add(wx.Button(self, G_ADD_COL, "Add Column"), 1, wx.EXPAND) | 454 sizer.Add(wx.Button(self, G_ADD_COL, "Add Column"), 1, wx.EXPAND) |
455 sizer.Add(wx.Size(10,10)) | 455 sizer.Add(wx.Size(10,10)) |
456 sizer.Add(wx.Button(self, G_DEL_COL, "Remove Column"), 1, wx.EXPAND) | 456 sizer.Add(wx.Button(self, G_DEL_COL, "Remove Column"), 1, wx.EXPAND) |
457 | 457 |
458 self.main_sizer = wx.StaticBoxSizer(wx.StaticBox(self,-1,"Grid"), wx.VERTICAL) | |
459 self.main_sizer.Add(wx.StaticText(self, -1, "Title:"), 0, wx.EXPAND) | 458 self.main_sizer.Add(wx.StaticText(self, -1, "Title:"), 0, wx.EXPAND) |
460 self.main_sizer.Add(self.title, 0, wx.EXPAND) | 459 self.main_sizer.Add(self.title, 0, wx.EXPAND) |
461 self.main_sizer.Add(radio_b, 0, 0) | 460 self.main_sizer.Add(radio_b, 0, 0) |
462 self.main_sizer.Add(self.auto_size, 0, 0) | 461 self.main_sizer.Add(self.auto_size, 0, 0) |
463 self.main_sizer.Add(self.grid,1,wx.EXPAND) | 462 self.main_sizer.Add(self.grid,1,wx.EXPAND) |