Mercurial > traipse_dev
comparison orpg/mapper/min_dialogs.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 | 6081bdc2b8d5 |
children |
comparison
equal
deleted
inserted
replaced
183:0d9b746b5751 | 184:dcae32e219f1 |
---|---|
19 # | 19 # |
20 # File: mapper/min_dialogs.py | 20 # File: mapper/min_dialogs.py |
21 # Author: Chris Davis | 21 # Author: Chris Davis |
22 # Maintainer: | 22 # Maintainer: |
23 # Version: | 23 # Version: |
24 # $Id: min_dialogs.py,v 1.27 2006/11/13 02:23:16 digitalxero Exp $ | 24 # $Id: min_dialogs.py,v Traipse 'Ornery-Orc' prof.ebral Exp $ |
25 # | 25 # |
26 # Description: This file contains some of the basic definitions for the chat | 26 # Description: This file contains some of the basic definitions for the chat |
27 # utilities in the orpg project. | 27 # utilities in the orpg project. |
28 | 28 |
29 ##----------------------------- | 29 ##----------------------------- |
144 if len(min_list) > 0: | 144 if len(min_list) > 0: |
145 for sel_rmin in min_list: | 145 for sel_rmin in min_list: |
146 ############# | 146 ############# |
147 min_xml = sel_rmin.toxml(action="new") | 147 min_xml = sel_rmin.toxml(action="new") |
148 node_begin = "<nodehandler module='map_miniature_nodehandler' class='map_miniature_handler' name='" | 148 node_begin = "<nodehandler module='map_miniature_nodehandler' class='map_miniature_handler' name='" |
149 | |
150 if sel_rmin.label: node_begin += sel_rmin.label + "'" | 149 if sel_rmin.label: node_begin += sel_rmin.label + "'" |
151 else: node_begin += "Unnamed Miniature'" | 150 else: node_begin += "Unnamed Miniature'" |
152 | |
153 node_begin += ">" | 151 node_begin += ">" |
154 gametree = component.get('tree') | 152 gametree = component.get('tree') |
155 node_xml = node_begin + min_xml + '</nodehandler>' | 153 node_xml = node_begin + min_xml + '</nodehandler>' |
156 print "Sending this XML to insert_xml:" + node_xml | 154 print "Sending this XML to insert_xml:" + node_xml |
157 gametree.insert_xml(node_xml) | 155 gametree.insert_xml(node_xml) |
306 poschoicebox.Add(wx.Size(0,1)) | 304 poschoicebox.Add(wx.Size(0,1)) |
307 poschoicebox.Add(kluge,0,0) | 305 poschoicebox.Add(kluge,0,0) |
308 positionbox.Add(poschoicebox,0,0) | 306 positionbox.Add(poschoicebox,0,0) |
309 listsizer.Add(positionbox,0, 0) | 307 listsizer.Add(positionbox,0, 0) |
310 self.listsizer = listsizer | 308 self.listsizer = listsizer |
311 #self.outline = wx.StaticBox(self,-1,"Miniature list properties") | |
312 #listsizer.Add(self.outline,0, wx.EXPAND) | |
313 self.SetSizer(listsizer) | 309 self.SetSizer(listsizer) |
314 self.SetAutoLayout(True) | 310 self.SetAutoLayout(True) |
315 self.Fit() | 311 self.Fit() |
316 self.Bind(wx.EVT_SPINCTRL, self.on_spin, id=POS_SPIN) | 312 self.Bind(wx.EVT_SPINCTRL, self.on_spin, id=POS_SPIN) |
317 self.Bind(wx.EVT_TEXT, self.on_combo_box, id=POS_COMB) | 313 self.Bind(wx.EVT_TEXT, self.on_combo_box, id=POS_COMB) |
318 #self.Bind(wx.EVT_SIZE, self.on_size) | |
319 self.Bind(wx.EVT_TEXT, self.on_text, id=MIN_LABEL) | 314 self.Bind(wx.EVT_TEXT, self.on_text, id=MIN_LABEL) |
320 self.Bind(wx.EVT_RADIOBOX, self.on_radio_box, id=MIN_HEADING) | 315 self.Bind(wx.EVT_RADIOBOX, self.on_radio_box, id=MIN_HEADING) |
321 self.Bind(wx.EVT_RADIOBOX, self.on_radio_box, id=MIN_FACE) | 316 self.Bind(wx.EVT_RADIOBOX, self.on_radio_box, id=MIN_FACE) |
322 | 317 |
323 def on_ok(self,min): | 318 def on_ok(self,min): |
498 self.sizer.SetDimension(20,20,s[0]-40,s[1]-40) | 493 self.sizer.SetDimension(20,20,s[0]-40,s[1]-40) |
499 self.outline.SetDimensions(5,5,s[0]-10,s[1]-10) | 494 self.outline.SetDimensions(5,5,s[0]-10,s[1]-10) |
500 | 495 |
501 class min_edit_dialog(wx.Dialog): | 496 class min_edit_dialog(wx.Dialog): |
502 def __init__(self,parent,min): | 497 def __init__(self,parent,min): |
503 #520,265 | |
504 wx.Dialog.__init__(self,parent,-1,"Miniature",wx.DefaultPosition,wx.Size(520,350)) | 498 wx.Dialog.__init__(self,parent,-1,"Miniature",wx.DefaultPosition,wx.Size(520,350)) |
505 (w,h) = self.GetClientSizeTuple() | 499 (w,h) = self.GetClientSizeTuple() |
506 mastersizer = wx.BoxSizer(wx.VERTICAL) | 500 mastersizer = wx.BoxSizer(wx.VERTICAL) |
507 editor = min_edit_panel(self,min) | 501 editor = min_edit_panel(self,min) |
508 #editor.SetDimensions(0,0,w,h-25) | |
509 self.editor = editor | 502 self.editor = editor |
510 mastersizer.Add(editor, 1, wx.EXPAND) | 503 mastersizer.Add(editor, 1, wx.EXPAND) |
511 mastersizer.Add(wx.Size(10,10)) | 504 mastersizer.Add(wx.Size(10,10)) |
512 sizer = wx.BoxSizer(wx.HORIZONTAL) | 505 sizer = wx.BoxSizer(wx.HORIZONTAL) |
513 sizer.Add(wx.Button(self, wx.ID_OK, "OK"), 1, wx.EXPAND) | 506 sizer.Add(wx.Button(self, wx.ID_OK, "OK"), 1, wx.EXPAND) |
514 sizer.Add(wx.Size(10,10)) | 507 sizer.Add(wx.Size(10,10)) |
515 sizer.Add(wx.Button(self, wx.ID_CANCEL, "Cancel"), 1, wx.EXPAND) | 508 sizer.Add(wx.Button(self, wx.ID_CANCEL, "Cancel"), 1, wx.EXPAND) |
516 #sizer.SetDimension(0,h-25,w,25) | |
517 mastersizer.Add(sizer, 0, wx.EXPAND) | 509 mastersizer.Add(sizer, 0, wx.EXPAND) |
518 self.SetSizer(mastersizer) | 510 self.SetSizer(mastersizer) |
519 self.SetAutoLayout(True) | 511 self.SetAutoLayout(True) |
520 self.Fit() | 512 self.Fit() |
521 self.Bind(wx.EVT_BUTTON, self.on_ok, id=wx.ID_OK) | 513 self.Bind(wx.EVT_BUTTON, self.on_ok, id=wx.ID_OK) |
522 | 514 |
523 def on_ok(self,evt): | 515 def on_ok(self,evt): |
524 self.editor.update_min() | 516 self.editor.update_min() |
525 self.EndModal(wx.ID_OK) | 517 self.EndModal(wx.ID_OK) |
518 |