Mercurial > traipse_dev
comparison orpg/main.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 | 82c47d583493 |
children | 2ffc5de126c8 |
comparison
equal
deleted
inserted
replaced
137:54446a995007 | 138:1ed2feab0db9 |
---|---|
133 component.add('pluginmenu', self.pluginMenu) | 133 component.add('pluginmenu', self.pluginMenu) |
134 self.pluginsFrame.Start() | 134 self.pluginsFrame.Start() |
135 logger.debug("plugins reloaded and startup plugins launched") | 135 logger.debug("plugins reloaded and startup plugins launched") |
136 self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) | 136 self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) |
137 | 137 |
138 tipotday_start = settings.get('tipotday_start') | |
139 try: tipotday_start = int(tipotday_start) | |
140 except TypeError: tipotday_start = 0 | |
141 | |
142 | |
143 self.TipOfTheDay = wx.CreateFileTipProvider(dir_struct['data']+'tips.txt', tipotday_start) | |
144 | |
138 #Load Update Manager | 145 #Load Update Manager |
139 component.add('updatemana', self.updateMana) | 146 component.add('updatemana', self.updateMana) |
140 logger.debug("update manager reloaded") | 147 logger.debug("update manager reloaded") |
141 self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) | 148 self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) |
142 | 149 |
143 #Load Debug Console | 150 #Load Debug Console |
144 component.add('debugconsole', self.debugger) | 151 component.add('debugconsole', self.debugger) |
145 logger.debug("debugger window") | 152 logger.debug("debugger window") |
146 self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) | 153 self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) |
147 | 154 |
155 def ShowTipOfTheDay(self): | |
156 if wx.ShowTip(self, self.TipOfTheDay, settings.get('tipotday_enabled') != '0'): | |
157 settings.change('tipotday_enabled', '1') | |
158 else: settings.change('tipotday_enabled', '0') | |
159 settings.change('tipotday_start', str(self.TipOfTheDay.CurrentTip)) | |
148 | 160 |
149 def post_show_init(self): | 161 def post_show_init(self): |
150 """Some Actions need to be done after the main fram is drawn""" | 162 """Some Actions need to be done after the main frame is drawn""" |
151 self.players.size_cols() | 163 self.players.size_cols() |
152 | 164 try: |
153 | 165 if settings.get('tipotday_enabled').lower() != '0': self.ShowTipOfTheDay() |
166 except: self.add_setting('Tip of the Day') | |
167 | |
168 | |
169 def add_setting(self, setting): | |
170 if setting == 'Tip of the Day': | |
171 settings.add_tab('General', 'Tip of the Day', 'grid') | |
172 settings.add('Tip of the Day', 'tipotday_start', '0', 'int', 'Current Tip of the Day') | |
173 settings.add('Tip of the Day', 'tipotday_enabled', '1', '0|1', 'Show Tip of the Day on startup') | |
174 logger.info('New Settings added', True) | |
175 self.TraipseSuiteWarn('debug') | |
176 | |
154 def get_activeplugins(self): | 177 def get_activeplugins(self): |
155 try: tmp = self.pluginsFrame.get_activeplugins() | 178 try: tmp = self.pluginsFrame.get_activeplugins() |
156 except: tmp = {} | 179 except: tmp = {} |
157 return tmp | 180 return tmp |
158 | |
159 | 181 |
160 def get_startplugins(self): | 182 def get_startplugins(self): |
161 try: tmp = self.pluginsFrame.get_startplugins() | 183 try: tmp = self.pluginsFrame.get_startplugins() |
162 except: tmp = {} | 184 except: tmp = {} |
163 return tmp | 185 return tmp |
164 | |
165 | 186 |
166 def on_password_signal(self,signal,type,id,data): | 187 def on_password_signal(self,signal,type,id,data): |
167 try: | 188 try: |
168 msg = ["DEBUG: password response= ", | 189 msg = ["DEBUG: password response= ", |
169 str(signal), | 190 str(signal), |
231 [ | 252 [ |
232 ['&Help'], | 253 ['&Help'], |
233 [' &About'], | 254 [' &About'], |
234 [' Online User Guide'], | 255 [' Online User Guide'], |
235 [' Change Log'], | 256 [' Change Log'], |
236 [' Report a Bug'] | 257 [' Report a Bug'], |
258 [' Tip of the Day'] | |
237 ]] | 259 ]] |
238 | 260 |
239 self.mainmenu = MenuBarEx(self, menu) | 261 self.mainmenu = MenuBarEx(self, menu) |
240 if settings.get('Heartbeat') == '1': | 262 if settings.get('Heartbeat') == '1': |
241 self.mainmenu.SetMenuState("GameServerServerHeartbeat", True) | 263 self.mainmenu.SetMenuState("GameServerServerHeartbeat", True) |
604 | 626 |
605 def OnMB_HelpReportaBug(self): | 627 def OnMB_HelpReportaBug(self): |
606 wb = webbrowser.get() | 628 wb = webbrowser.get() |
607 wb.open("http://www.assembla.com/spaces/tickets/index/traipse_dev?spaces_tool_id=Tickets") | 629 wb.open("http://www.assembla.com/spaces/tickets/index/traipse_dev?spaces_tool_id=Tickets") |
608 | 630 |
631 def OnMB_HelpTipoftheDay(self): | |
632 self.ShowTipOfTheDay() | |
633 | |
609 | 634 |
610 ################################# | 635 ################################# |
611 ## Build the GUI | 636 ## Build the GUI |
612 ################################# | 637 ################################# |
613 | 638 |
760 self.Maximize(maximized) | 785 self.Maximize(maximized) |
761 logger.debug("GUI is all created") | 786 logger.debug("GUI is all created") |
762 self.Thaw() | 787 self.Thaw() |
763 | 788 |
764 | 789 |
765 def do_tab_window(self,xml_dom,parent_wnd): | 790 def do_tab_window(self, xml_dom, parent_wnd): |
766 #def do_tab_window(self, etreeEl, parent_wnd): | |
767 # if container window loop through childern and do a recursive call | 791 # if container window loop through childern and do a recursive call |
768 temp_wnd = orpgTabberWnd(parent_wnd, style=FNB.FNB_ALLOW_FOREIGN_DND) | 792 temp_wnd = orpgTabberWnd(parent_wnd, style=FNB.FNB_ALLOW_FOREIGN_DND) |
769 | 793 |
770 children = xml_dom.getchildren() | 794 children = xml_dom.getchildren() |
771 for c in children: | 795 for c in children: |
772 wnd = self.build_window(c,temp_wnd) | 796 wnd = self.build_window(c,temp_wnd) |
773 name = c.get("name") | 797 name = c.get("name") |
774 temp_wnd.AddPage(wnd, name, False) | 798 temp_wnd.AddPage(wnd, name, False) |
775 | |
776 """ | |
777 for c in etreeEl.getchildren(): | |
778 wnd = self.build_window(c, temp_wnd) | |
779 temp_wnd.AddPage(wnd, c.get('name'), False) | |
780 """ | |
781 return temp_wnd | 799 return temp_wnd |
782 | 800 |
783 | 801 |
784 def build_window(self, xml_dom, parent_wnd): | 802 def build_window(self, xml_dom, parent_wnd): |
785 name = xml_dom.tag | 803 name = xml_dom.tag |