Mercurial > traipse_dev
comparison orpg/gametree/nodehandlers/forms.py @ 178:ff19dd30064b alpha
Traipse Alpha 'OpenRPG' {100114-02}
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
Fixed Whiteboard ID to prevent random line or text deleting.
Modified ID's to prevent non updated clients from ruining the fix.
default_manifest.xml renamed to default_upmana.xml
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
author | sirebral |
---|---|
date | Thu, 14 Jan 2010 12:45:14 -0600 |
parents | 537a6bbac9bd |
children | 12ba14d30baa |
comparison
equal
deleted
inserted
replaced
177:60dde67c4ed6 | 178:ff19dd30064b |
---|---|
333 self.Bind(wx.EVT_CHECKBOX, self.on_send_button, id=F_SEND_BUTTON) | 333 self.Bind(wx.EVT_CHECKBOX, self.on_send_button, id=F_SEND_BUTTON) |
334 self.Bind(wx.EVT_BUTTON, self.on_reference, id=T_BUT_REF) | 334 self.Bind(wx.EVT_BUTTON, self.on_reference, id=T_BUT_REF) |
335 | 335 |
336 ## EZ_Tree Core TaS - Prof.Ebral ## | 336 ## EZ_Tree Core TaS - Prof.Ebral ## |
337 def on_reference(self, evt, car=None): | 337 def on_reference(self, evt, car=None): |
338 self.do_tree = wx.Frame(self, -1, 'Tree') | 338 self.do_tree = wx.Frame(self, -1, 'EZ Tree') |
339 self.ez_tree = orpg.gametree.gametree | 339 self.ez_tree = orpg.gametree.gametree |
340 self.temp_wnd = self.ez_tree.game_tree(self.do_tree, self.ez_tree.EZ_REF) | 340 self.temp_wnd = self.ez_tree.game_tree(self.do_tree, self.ez_tree.EZ_REF) |
341 self.temp_wnd.Bind(wx.EVT_LEFT_DCLICK, self.on_ldclick) | 341 self.temp_wnd.Bind(wx.EVT_LEFT_DCLICK, self.on_ldclick) |
342 component.get('tree_fs').save_tree(settings.get("gametree")) | |
342 self.temp_wnd.load_tree(settings.get("gametree")) | 343 self.temp_wnd.load_tree(settings.get("gametree")) |
343 self.do_tree.Show() | 344 self.do_tree.Show() |
344 | 345 |
345 def get_grid_ref(self, obj, complete): | 346 def get_grid_ref(self, obj, complete): |
346 self.temp_wnd.Freeze() | 347 self.temp_wnd.Freeze() |
347 self.grid_ref = complete | 348 self.grid_ref = complete |
348 self.mini_grid = wx.Frame(self, -1, 'Mini Grid') | 349 self.mini_grid = wx.Frame(self, -1, 'EZ Tree Mini Grid') |
349 self.temp_grid = obj.get_use_panel(self.mini_grid) | 350 self.temp_grid = obj.get_use_panel(self.mini_grid) |
350 self.temp_grid.grid.Bind(wx.grid.EVT_GRID_CELL_LEFT_DCLICK, self.on_grid_ldclick) | 351 self.temp_grid.grid.Bind(wx.grid.EVT_GRID_CELL_LEFT_DCLICK, self.on_grid_ldclick) |
351 self.mini_grid.Show() | 352 self.mini_grid.Show() |
352 | 353 |
353 def on_grid_ldclick(self, evt): | 354 def on_grid_ldclick(self, evt): |
354 complete = self.grid_ref | 355 complete = self.grid_ref |
355 row = str(evt.GetRow()+1) | 356 row = str(evt.GetRow()+1) |
356 col = str(evt.GetCol()+1) | 357 col = str(evt.GetCol()+1) |
357 complete = complete[:len(complete)-2] + '::'+'('+row+','+col+')'+complete[len(complete)-2:] | 358 complete = complete[:len(complete)-2] + '::'+'('+row+','+col+')'+complete[len(complete)-2:] |
358 self.text.AppendText(complete); self.on_text(evt) | 359 self.text.AppendText(complete); self.on_text(evt) |
360 self.mini_grid.Destroy() | |
359 | 361 |
360 def on_ldclick(self, evt): | 362 def on_ldclick(self, evt): |
361 self.rename_flag = 0 | 363 self.rename_flag = 0 |
362 pt = evt.GetPosition() | 364 pt = evt.GetPosition() |
363 (item, flag) = self.temp_wnd.HitTest(pt) | 365 (item, flag) = self.temp_wnd.HitTest(pt) |
408 self.handler.rename(txt) | 410 self.handler.rename(txt) |
409 if id == F_TEXT: | 411 if id == F_TEXT: |
410 txt = self.text.GetValue() | 412 txt = self.text.GetValue() |
411 #txt = strip_text(txt) ##Does not seem to exist. | 413 #txt = strip_text(txt) ##Does not seem to exist. |
412 self.handler.text_elem.text = txt | 414 self.handler.text_elem.text = txt |
413 #component.add('tree', component.get('tree_back')) ## Backup | |
414 | 415 |
415 def on_button(self,evt): | 416 def on_button(self,evt): |
416 self.handler.text_elem.set("multiline",str(bool2int(evt.Checked()))) | 417 self.handler.text_elem.set("multiline",str(bool2int(evt.Checked()))) |
417 | 418 |
418 def on_raw_button(self,evt): | 419 def on_raw_button(self,evt): |
777 self.dlg.Destroy() | 778 self.dlg.Destroy() |
778 return | 779 return |
779 | 780 |
780 ## EZ_Tree Core TaS - Prof.Ebral ## | 781 ## EZ_Tree Core TaS - Prof.Ebral ## |
781 def on_reference(self, evt, car=None): | 782 def on_reference(self, evt, car=None): |
782 self.do_tree = wx.Frame(self, -1, 'Tree') | 783 self.do_tree = wx.Frame(self, -1, 'EZ Tree') |
783 self.ez_tree = orpg.gametree.gametree | 784 self.ez_tree = orpg.gametree.gametree |
784 self.temp_wnd = self.ez_tree.game_tree(self.do_tree, self.ez_tree.EZ_REF) | 785 self.temp_wnd = self.ez_tree.game_tree(self.do_tree, self.ez_tree.EZ_REF) |
785 self.temp_wnd.Bind(wx.EVT_LEFT_DCLICK, self.on_ldclick) | 786 self.temp_wnd.Bind(wx.EVT_LEFT_DCLICK, self.on_ldclick) |
787 component.get('tree_fs').save_tree(settings.get("gametree")) | |
786 self.temp_wnd.load_tree(settings.get("gametree")) | 788 self.temp_wnd.load_tree(settings.get("gametree")) |
787 self.do_tree.Show() | 789 self.do_tree.Show() |
788 | 790 |
789 def get_grid_ref(self, obj, complete): | 791 def get_grid_ref(self, obj, complete): |
790 self.temp_wnd.Freeze() | 792 self.temp_wnd.Freeze() |
791 self.grid_ref = complete | 793 self.grid_ref = complete |
792 self.mini_grid = wx.Frame(self, -1, 'Mini Grid') | 794 self.mini_grid = wx.Frame(self, -1, 'EZ Tree Grid') |
793 self.temp_grid = obj.get_use_panel(self.mini_grid) | 795 self.temp_grid = obj.get_use_panel(self.mini_grid) |
794 self.temp_grid.grid.Bind(wx.grid.EVT_GRID_CELL_LEFT_DCLICK, self.on_grid_ldclick) | 796 self.temp_grid.grid.Bind(wx.grid.EVT_GRID_CELL_LEFT_DCLICK, self.on_grid_ldclick) |
795 self.mini_grid.Show() | 797 self.mini_grid.Show() |
796 | 798 |
797 def on_grid_ldclick(self, evt): | 799 def on_grid_ldclick(self, evt): |
798 complete = self.grid_ref | 800 complete = self.grid_ref |
799 row = str(evt.GetRow()+1) | 801 row = str(evt.GetRow()+1) |
800 col = str(evt.GetCol()+1) | 802 col = str(evt.GetCol()+1) |
801 complete = complete[:len(complete)-2] + '::'+'('+row+','+col+')'+complete[len(complete)-2:] | 803 complete = complete[:len(complete)-2] + '::'+'('+row+','+col+')'+complete[len(complete)-2:] |
802 self.value_entry.AppendText(complete) | 804 self.value_entry.AppendText(complete) |
805 self.mini_grid.Destroy() | |
803 | 806 |
804 def on_ldclick(self, evt): | 807 def on_ldclick(self, evt): |
805 self.rename_flag = 0 | 808 self.rename_flag = 0 |
806 pt = evt.GetPosition() | 809 pt = evt.GetPosition() |
807 (item, flag) = self.temp_wnd.HitTest(pt) | 810 (item, flag) = self.temp_wnd.HitTest(pt) |
846 def on_edit_ok(self, evt): | 849 def on_edit_ok(self, evt): |
847 self.handler.edit_caption(self.index, self.caption_entry.GetValue()) | 850 self.handler.edit_caption(self.index, self.caption_entry.GetValue()) |
848 self.handler.edit_option(self.index, self.value_entry.GetValue()) | 851 self.handler.edit_option(self.index, self.value_entry.GetValue()) |
849 self.reload_options() | 852 self.reload_options() |
850 self.dlg.Destroy() | 853 self.dlg.Destroy() |
851 component.add('tree', component.get('tree_back')) ## Backup | 854 #component.add('tree', component.get('tree_fs')) ## Backup |
852 return | 855 return |
853 | 856 |
854 def on_edit_cancel(self, evt): | 857 def on_edit_cancel(self, evt): |
855 self.dlg.Destroy() | 858 self.dlg.Destroy() |
856 component.add('tree', component.get('tree_back')) ## Backup | 859 #component.add('tree', component.get('tree_fs')) ## Backup |
857 return | 860 return |
858 | 861 |
859 def on_remove(self,evt): | 862 def on_remove(self,evt): |
860 index = self.listbox.GetSelection() | 863 index = self.listbox.GetSelection() |
861 if index >= 0: | 864 if index >= 0: |