Mercurial > traipse_dev
comparison orpg/main.py @ 59:5aff3ef1ae46 ornery-dev
New dev branch for Ornery Orc. Adds CSS styling to chat messages. Updates
Update Manager to 0.7.1. Fixes problem with gametree and names. Adds a multi-
line text entry, grows as you type more lines; not reactive to Shift-Enter,
yet.
author | sirebral |
---|---|
date | Tue, 11 Aug 2009 17:48:30 -0500 |
parents | 5d89a6eaf492 |
children | 3b2cfa13b610 |
comparison
equal
deleted
inserted
replaced
58:27e58b0483e7 | 59:5aff3ef1ae46 |
---|---|
636 self.SetDimensions(posx, posy, w, h) | 636 self.SetDimensions(posx, posy, w, h) |
637 self.log.log("Dimensions Set", ORPG_DEBUG) | 637 self.log.log("Dimensions Set", ORPG_DEBUG) |
638 | 638 |
639 #Update Manager | 639 #Update Manager |
640 self.manifest = manifest.ManifestChanges() | 640 self.manifest = manifest.ManifestChanges() |
641 self.updateMana = upmana.updatemana.updaterFrame(self, "OpenRPG Update Manager Beta 0.6.7", open_rpg, self.manifest, True) | 641 self.updateMana = upmana.updatemana.updaterFrame(self, |
642 "OpenRPG Update Manager Beta 0.7.1", open_rpg, self.manifest, True) | |
642 self.log.log("Menu Created", ORPG_DEBUG) | 643 self.log.log("Menu Created", ORPG_DEBUG) |
643 h = int(xml_dom.getAttribute("height")) | 644 h = int(xml_dom.getAttribute("height")) |
644 w = int(xml_dom.getAttribute("width")) | 645 w = int(xml_dom.getAttribute("width")) |
645 posx = int(xml_dom.getAttribute("posx")) | 646 posx = int(xml_dom.getAttribute("posx")) |
646 posy = int(xml_dom.getAttribute("posy")) | 647 posy = int(xml_dom.getAttribute("posy")) |
658 wndinfo.Float() | 659 wndinfo.Float() |
659 wndinfo.ToolbarPane() | 660 wndinfo.ToolbarPane() |
660 wndinfo.Hide() | 661 wndinfo.Hide() |
661 self._mgr.AddPane(self.sound_player, wndinfo) | 662 self._mgr.AddPane(self.sound_player, wndinfo) |
662 children = xml_dom._get_childNodes() | 663 children = xml_dom._get_childNodes() |
663 for c in children: | 664 for c in children: self.build_window(c, self) |
664 self.build_window(c, self) | |
665 | 665 |
666 # status window | 666 # status window |
667 self.status = status_bar(self) | 667 self.status = status_bar(self) |
668 wndinfo = AUI.AuiPaneInfo() | 668 wndinfo = AUI.AuiPaneInfo() |
669 wndinfo.DestroyOnClose(False) | 669 wndinfo.DestroyOnClose(False) |
722 self.Bind(wx.EVT_MENU, self.OnMB_WindowsMenu, id=menuid) | 722 self.Bind(wx.EVT_MENU, self.OnMB_WindowsMenu, id=menuid) |
723 self.mainwindows[menuid] = "Alias Lib" | 723 self.mainwindows[menuid] = "Alias Lib" |
724 self.mainmenu.Insert(3, self.windowsmenu, 'Windows') | 724 self.mainmenu.Insert(3, self.windowsmenu, 'Windows') |
725 self.log.log("Windows Menu Done", ORPG_DEBUG) | 725 self.log.log("Windows Menu Done", ORPG_DEBUG) |
726 self._mgr.Update() | 726 self._mgr.Update() |
727 if wx.VERSION_STRING > "2.8": | 727 if wx.VERSION_STRING > "2.8": self.Bind(AUI.EVT_AUI_PANE_CLOSE, self.onPaneClose) |
728 self.Bind(AUI.EVT_AUI_PANE_CLOSE, self.onPaneClose) | 728 else: self.Bind(AUI.EVT_AUI_PANECLOSE, self.onPaneClose) |
729 else: | |
730 self.Bind(AUI.EVT_AUI_PANECLOSE, self.onPaneClose) | |
731 self.log.log("AUI Bindings Done", ORPG_DEBUG) | 729 self.log.log("AUI Bindings Done", ORPG_DEBUG) |
732 | 730 |
733 #Load the layout if one exists | 731 #Load the layout if one exists |
734 layout = xml_dom.getElementsByTagName("DockLayout") | 732 layout = xml_dom.getElementsByTagName("DockLayout") |
735 try: | 733 try: |