Mercurial > traipse_dev
comparison orpg/gametree/nodehandlers/forms.py @ 184:dcae32e219f1 beta
Traipse Beta 'OpenRPG' {100117-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 (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 | Sun, 17 Jan 2010 21:37:34 -0600 |
parents | 0d9b746b5751 |
children | a3d7e05085da |
comparison
equal
deleted
inserted
replaced
183:0d9b746b5751 | 184:dcae32e219f1 |
---|---|
19 # | 19 # |
20 # File: forms.py | 20 # File: forms.py |
21 # Author: Chris Davis | 21 # Author: Chris Davis |
22 # Maintainer: | 22 # Maintainer: |
23 # Version: | 23 # Version: |
24 # $Id: forms.py,v 1.53 2007/04/21 23:00:51 digitalxero Exp $ | 24 # $Id: forms.py,v Traipse 'Ornery-Orc' prof.ebral Exp $ |
25 # | 25 # |
26 # Description: The file contains code for the form based nodehanlers | 26 # Description: The file contains code for the form based nodehanlers |
27 # | 27 # |
28 | 28 |
29 __version__ = "$Id: forms.py,v 1.53 2007/04/21 23:00:51 digitalxero Exp $" | 29 __version__ = "$Id: forms.py,v Traipse 'Ornery-Orc' prof.ebral Exp $" |
30 | 30 |
31 from containers import * | 31 from containers import * |
32 import orpg.minidom as minidom | 32 import orpg.minidom as minidom |
33 from orpg.orpg_xml import xml | 33 from orpg.orpg_xml import xml |
34 from wx.lib.scrolledpanel import ScrolledPanel | 34 from wx.lib.scrolledpanel import ScrolledPanel |
752 self.handler.set_type(evt.GetInt()) | 752 self.handler.set_type(evt.GetInt()) |
753 | 753 |
754 def on_add(self,evt): | 754 def on_add(self,evt): |
755 self.dlg = wx.Frame(self, -1, 'Text', size=(300,150)) | 755 self.dlg = wx.Frame(self, -1, 'Text', size=(300,150)) |
756 edit_panel = wx.Panel(self.dlg, -1) | 756 edit_panel = wx.Panel(self.dlg, -1) |
757 sizer = wx.GridBagSizer(1, 2) | 757 sizer = wx.GridBagSizer(1, 1) |
758 edit_panel.SetSizer(sizer) | 758 edit_panel.SetSizer(sizer) |
759 caption_text = wx.StaticText(edit_panel, -1, 'Caption') | 759 caption_text = wx.StaticText(edit_panel, -1, 'Caption') |
760 self.caption_entry = wx.TextCtrl(edit_panel, -1, '') | 760 self.caption_entry = wx.TextCtrl(edit_panel, -1, '') |
761 value_text = wx.StaticText(edit_panel, -1, 'Value') | 761 value_text = wx.StaticText(edit_panel, -1, 'Value') |
762 self.value_entry = wx.TextCtrl(edit_panel, -1, '') | 762 self.value_entry = wx.TextCtrl(edit_panel, -1, '') |
763 button_ok = wx.Button(edit_panel, wx.ID_OK) | 763 button_ok = wx.Button(edit_panel, wx.ID_OK) |
764 button_cancel = wx.Button(edit_panel, wx.ID_CANCEL) | 764 button_cancel = wx.Button(edit_panel, wx.ID_CANCEL) |
765 button_ref = wx.Button(edit_panel, BUT_REF, "Reference") | 765 button_ref = wx.Button(edit_panel, BUT_REF, "Reference") |
766 sizer.Add(caption_text, (0,0)) | 766 sizer.Add(caption_text, (0,0)) |
767 sizer.Add(self.caption_entry, (0,1), span=(1,3), flag=wx.EXPAND) | 767 sizer.Add(self.caption_entry, (0,1), span=(1,4), flag=wx.EXPAND) |
768 sizer.Add(value_text, (1,0)) | 768 sizer.Add(value_text, (1,0)) |
769 sizer.Add(self.value_entry, (1,1), span=(1,3), flag=wx.EXPAND) | 769 sizer.Add(self.value_entry, (1,1), span=(1,4), flag=wx.EXPAND) |
770 sizer.Add(button_ok, (3,0)) | 770 sizer.Add(button_ok, (3,0)) |
771 sizer.Add(button_cancel, (3,1)) | 771 sizer.Add(button_cancel, (3,1)) |
772 sizer.Add(button_ref, (3,2), flag=wx.EXPAND) | 772 sizer.Add(button_ref, (3,2), flag=wx.EXPAND) |
773 sizer.AddGrowableCol(3) | |
774 sizer.AddGrowableRow(2) | |
775 self.dlg.SetSize((275, 125)) | |
776 self.dlg.SetMinSize((275, 125)) | |
777 self.dlg.Layout() | |
773 self.Bind(wx.EVT_BUTTON, self.on_reference, id=BUT_REF) | 778 self.Bind(wx.EVT_BUTTON, self.on_reference, id=BUT_REF) |
774 self.Bind(wx.EVT_BUTTON, self.on_add_option, id=wx.ID_OK) | 779 self.Bind(wx.EVT_BUTTON, self.on_add_option, id=wx.ID_OK) |
775 self.Bind(wx.EVT_BUTTON, self.on_edit_cancel, id=wx.ID_CANCEL) | 780 self.Bind(wx.EVT_BUTTON, self.on_edit_cancel, id=wx.ID_CANCEL) |
776 self.dlg.Show() | 781 self.dlg.Show() |
777 | 782 |
881 self.value_entry = wx.TextCtrl(edit_panel, -1, self.handler.get_option(self.index)) | 886 self.value_entry = wx.TextCtrl(edit_panel, -1, self.handler.get_option(self.index)) |
882 button_ok = wx.Button(edit_panel, wx.ID_OK) | 887 button_ok = wx.Button(edit_panel, wx.ID_OK) |
883 button_cancel = wx.Button(edit_panel, wx.ID_CANCEL) | 888 button_cancel = wx.Button(edit_panel, wx.ID_CANCEL) |
884 button_ref = wx.Button(edit_panel, BUT_REF, "Reference") | 889 button_ref = wx.Button(edit_panel, BUT_REF, "Reference") |
885 sizer.Add(caption_text, (0,0)) | 890 sizer.Add(caption_text, (0,0)) |
886 sizer.Add(self.caption_entry, (0,1), span=(1,3), flag=wx.EXPAND) | 891 sizer.Add(self.caption_entry, (0,1), span=(1,4), flag=wx.EXPAND) |
887 sizer.Add(value_text, (1,0)) | 892 sizer.Add(value_text, (1,0)) |
888 sizer.Add(self.value_entry, (1,1), span=(1,3), flag=wx.EXPAND) | 893 sizer.Add(self.value_entry, (1,1), span=(1,4), flag=wx.EXPAND) |
889 sizer.Add(button_ok, (3,0)) | 894 sizer.Add(button_ok, (3,0)) |
890 sizer.Add(button_cancel, (3,1)) | 895 sizer.Add(button_cancel, (3,1)) |
891 sizer.Add(button_ref, (3,2), flag=wx.EXPAND) | 896 sizer.Add(button_ref, (3,2), flag=wx.EXPAND) |
897 sizer.AddGrowableCol(3) | |
898 sizer.AddGrowableRow(2) | |
899 self.dlg.SetSize((275, 125)) | |
900 self.dlg.SetMinSize((275, 125)) | |
901 self.dlg.Layout() | |
892 self.Bind(wx.EVT_BUTTON, self.on_reference, id=BUT_REF) | 902 self.Bind(wx.EVT_BUTTON, self.on_reference, id=BUT_REF) |
893 self.Bind(wx.EVT_BUTTON, self.on_edit_ok, id=wx.ID_OK) | 903 self.Bind(wx.EVT_BUTTON, self.on_edit_ok, id=wx.ID_OK) |
894 self.Bind(wx.EVT_BUTTON, self.on_edit_cancel, id=wx.ID_CANCEL) | 904 self.Bind(wx.EVT_BUTTON, self.on_edit_cancel, id=wx.ID_CANCEL) |
895 self.dlg.Show() | 905 self.dlg.Show() |
896 | 906 |