Mercurial > traipse
comparison orpg/mapper/min_dialogs.py @ 28:ff154cf3350c ornery-orc
Traipse 'OpenRPG' {100203-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 (Stable)
New Features:
New Bookmarks Feature
New 'boot' command to remote admin
New confirmation window for sent nodes
Miniatures Layer pop up box allows users to turn off Mini labels, from
FlexiRPG
New Zoom Mouse plugin added
New Images added to Plugin UI
Switching to Element Tree
New Map efficiency, from FlexiRPG
New Status Bar to Update Manager
New TrueDebug Class in orpg_log (See documentation for usage)
New Portable Mercurial
New Tip of the Day, 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
New Dieroller structure from Core
New DieRoller portability for odd Dice
New 7th Sea die roller; ie [7k3] = [7d10.takeHighest(3).open(10)]
New 'Mythos' System die roller 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!)
New Grids act more like Spreadsheets in Use mode, with Auto Calc
Fixes:
Fix to allow for portability to an OpenSUSE linux OS
Fix to mplay_client for Fedora and OpenSUSE
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
Fix to whiteboard ID's to prevent non updated clients from ruining the
fix.
default_manifest.xml renamed to default_upmana.xml
author | sirebral |
---|---|
date | Wed, 03 Feb 2010 22:16:49 -0600 |
parents | 97265586402b |
children |
comparison
equal
deleted
inserted
replaced
27:51428d30c59e | 28:ff154cf3350c |
---|---|
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) |
222 listsizer.Add(labelsizer,0, wx.EXPAND) | 220 listsizer.Add(labelsizer,0, wx.EXPAND) |
223 self.labelcombo = wx.ComboBox(self, LABEL_COMBO,"no change",style=wx.CB_DROPDOWN) | 221 self.labelcombo = wx.ComboBox(self, LABEL_COMBO,"no change",style=wx.CB_DROPDOWN) |
224 listsizer.Add(self.labelcombo,0, wx.EXPAND) | 222 listsizer.Add(self.labelcombo,0, wx.EXPAND) |
225 self.pathcombo = wx.ComboBox(self, PATH_COMBO, "no change",style=wx.CB_DROPDOWN) | 223 self.pathcombo = wx.ComboBox(self, PATH_COMBO, "no change",style=wx.CB_DROPDOWN) |
226 self.positioncombo = wx.ComboBox(self, POS_COMB, "no change", choices=["no change"], style=wx.CB_READONLY) | 224 self.positioncombo = wx.ComboBox(self, POS_COMB, "no change", choices=["no change"], style=wx.CB_READONLY) |
227 #self.positioncombo.SetValue(`min_list[0].pos`) | |
228 self.labelcombo.Append("no change") | 225 self.labelcombo.Append("no change") |
229 self.pathcombo.Append("no change") | 226 self.pathcombo.Append("no change") |
230 for m in min_list: | 227 for m in min_list: |
231 self.labelcombo.Append(min_list[min_list.index(m)].label) | 228 self.labelcombo.Append(min_list[min_list.index(m)].label) |
232 self.pathcombo.Append(min_list[min_list.index(m)].path) | 229 self.pathcombo.Append(min_list[min_list.index(m)].path) |
265 listsizer.Add(group2,0,0) | 262 listsizer.Add(group2,0,0) |
266 ### | 263 ### |
267 ###Group together the postion radiobox and the and its selection elements | 264 ###Group together the postion radiobox and the and its selection elements |
268 ### | 265 ### |
269 xpos = int(min_list[0].pos[0]) | 266 xpos = int(min_list[0].pos[0]) |
270 #xpos = int(`min_list[0].pos`[1:`min_list[0].pos`.index(',')]) | |
271 ypos = int(min_list[0].pos[1]) | 267 ypos = int(min_list[0].pos[1]) |
272 #ypos = int(`min_list[0].pos`[`min_list[0].pos`.rfind(',')+1:len(`min_list[0].pos`)-1]) | |
273 self.scx = wx.SpinCtrl(self, POS_SPIN, "", (-1,-1), wx.Size(75,25)) | 268 self.scx = wx.SpinCtrl(self, POS_SPIN, "", (-1,-1), wx.Size(75,25)) |
274 self.scx.SetRange(0,self.grid.return_grid()[0]) | 269 self.scx.SetRange(0,self.grid.return_grid()[0]) |
275 self.scx.SetValue(xpos) | 270 self.scx.SetValue(xpos) |
276 self.scy = wx.SpinCtrl(self, POS_SPIN, "", (-1,-1), wx.Size(75,25)) | 271 self.scy = wx.SpinCtrl(self, POS_SPIN, "", (-1,-1), wx.Size(75,25)) |
277 self.scy.SetRange(0,self.grid.return_grid()[1]) | 272 self.scy.SetRange(0,self.grid.return_grid()[1]) |
309 poschoicebox.Add(wx.Size(0,1)) | 304 poschoicebox.Add(wx.Size(0,1)) |
310 poschoicebox.Add(kluge,0,0) | 305 poschoicebox.Add(kluge,0,0) |
311 positionbox.Add(poschoicebox,0,0) | 306 positionbox.Add(poschoicebox,0,0) |
312 listsizer.Add(positionbox,0, 0) | 307 listsizer.Add(positionbox,0, 0) |
313 self.listsizer = listsizer | 308 self.listsizer = listsizer |
314 #self.outline = wx.StaticBox(self,-1,"Miniature list properties") | |
315 #listsizer.Add(self.outline,0, wx.EXPAND) | |
316 self.SetSizer(listsizer) | 309 self.SetSizer(listsizer) |
317 self.SetAutoLayout(True) | 310 self.SetAutoLayout(True) |
318 self.Fit() | 311 self.Fit() |
319 self.Bind(wx.EVT_SPINCTRL, self.on_spin, id=POS_SPIN) | 312 self.Bind(wx.EVT_SPINCTRL, self.on_spin, id=POS_SPIN) |
320 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) |
321 #self.Bind(wx.EVT_SIZE, self.on_size) | |
322 self.Bind(wx.EVT_TEXT, self.on_text, id=MIN_LABEL) | 314 self.Bind(wx.EVT_TEXT, self.on_text, id=MIN_LABEL) |
323 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) |
324 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) |
325 | 317 |
326 def on_ok(self,min): | 318 def on_ok(self,min): |
501 self.sizer.SetDimension(20,20,s[0]-40,s[1]-40) | 493 self.sizer.SetDimension(20,20,s[0]-40,s[1]-40) |
502 self.outline.SetDimensions(5,5,s[0]-10,s[1]-10) | 494 self.outline.SetDimensions(5,5,s[0]-10,s[1]-10) |
503 | 495 |
504 class min_edit_dialog(wx.Dialog): | 496 class min_edit_dialog(wx.Dialog): |
505 def __init__(self,parent,min): | 497 def __init__(self,parent,min): |
506 #520,265 | |
507 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)) |
508 (w,h) = self.GetClientSizeTuple() | 499 (w,h) = self.GetClientSizeTuple() |
509 mastersizer = wx.BoxSizer(wx.VERTICAL) | 500 mastersizer = wx.BoxSizer(wx.VERTICAL) |
510 editor = min_edit_panel(self,min) | 501 editor = min_edit_panel(self,min) |
511 #editor.SetDimensions(0,0,w,h-25) | |
512 self.editor = editor | 502 self.editor = editor |
513 mastersizer.Add(editor, 1, wx.EXPAND) | 503 mastersizer.Add(editor, 1, wx.EXPAND) |
514 mastersizer.Add(wx.Size(10,10)) | 504 mastersizer.Add(wx.Size(10,10)) |
515 sizer = wx.BoxSizer(wx.HORIZONTAL) | 505 sizer = wx.BoxSizer(wx.HORIZONTAL) |
516 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) |
517 sizer.Add(wx.Size(10,10)) | 507 sizer.Add(wx.Size(10,10)) |
518 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) |
519 #sizer.SetDimension(0,h-25,w,25) | |
520 mastersizer.Add(sizer, 0, wx.EXPAND) | 509 mastersizer.Add(sizer, 0, wx.EXPAND) |
521 self.SetSizer(mastersizer) | 510 self.SetSizer(mastersizer) |
522 self.SetAutoLayout(True) | 511 self.SetAutoLayout(True) |
523 self.Fit() | 512 self.Fit() |
524 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) |
525 | 514 |
526 def on_ok(self,evt): | 515 def on_ok(self,evt): |
527 self.editor.update_min() | 516 self.editor.update_min() |
528 self.EndModal(wx.ID_OK) | 517 self.EndModal(wx.ID_OK) |
518 |