comparison orpg/mapper/background.py @ 135:dcf4fbe09b70 beta

Traipse Beta 'OpenRPG' {091010-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) 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 Gamtree Recusion method, mapping, and context sensitivity. !!Alpha - Watch out for infinite loops!!
author sirebral
date Tue, 10 Nov 2009 14:11:28 -0600
parents 68c7bd272f27
children 54446a995007 e842a5f1b775
comparison
equal deleted inserted replaced
101:394ebb3b6a0f 135:dcf4fbe09b70
132 @debugging 132 @debugging
133 def layerDraw(self, dc, scale, topleft, size): 133 def layerDraw(self, dc, scale, topleft, size):
134 if self.bg_bmp == None or not self.bg_bmp.Ok() or ((self.type != BG_TEXTURE) and (self.type != BG_IMAGE)): 134 if self.bg_bmp == None or not self.bg_bmp.Ok() or ((self.type != BG_TEXTURE) and (self.type != BG_IMAGE)):
135 return False 135 return False
136 dc2 = wx.MemoryDC() 136 dc2 = wx.MemoryDC()
137
138 ### Temporary ###
139 try: self.bg_bmp = self.bg_bmp.ConvertToBitmap()
140 except: pass
141 #################
142
137 dc2.SelectObject(self.bg_bmp) 143 dc2.SelectObject(self.bg_bmp)
138 topLeft = [int(topleft[0]/scale), int(topleft[1]/scale)] 144 topLeft = [int(topleft[0]/scale), int(topleft[1]/scale)]
139 topRight = [int((topleft[0]+size[0]+1)/scale)+1, int((topleft[1]+size[1]+1)/scale)+1] 145 topRight = [int((topleft[0]+size[0]+1)/scale)+1, int((topleft[1]+size[1]+1)/scale)+1]
140 if (topRight[0] > self.canvas.size[0]): topRight[0] = self.canvas.size[0] 146 if (topRight[0] > self.canvas.size[0]): topRight[0] = self.canvas.size[0]
141 if (topRight[1] > self.canvas.size[1]): topRight[1] = self.canvas.size[1] 147 if (topRight[1] > self.canvas.size[1]): topRight[1] = self.canvas.size[1]