MCPcopy Create free account
hub / github.com/SimHacker/micropolis / CamDrawingArea

Class CamDrawingArea

MicropolisCore/src/CellEngine/python/test.py:93–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92
93class CamDrawingArea(gtk.DrawingArea):
94
95
96 def __init__(
97 self,
98 drawTiles=True,
99 drawTilesAlpha=1.0,
100 drawPixels=False,
101 drawPixelsAlpha=0.5,
102 pixelTileScaleCrossfade=True,
103 pixelTileScaleThresholdMin=8.0,
104 pixelTileScaleThresholdMax=32.0,
105 cmapFileName='cmap.png',
106 cmapCount=256,
107 tilesFileName='vonNeumann29Tiles.png',
108 sourceTileSize=32,
109 cellCols=256,
110 cellRows=256,
111 running=True,
112 renderCol=0,
113 renderRow=0,
114 renderCols=256,
115 renderRows=256,
116 timeDelay=50,
117 panX=0,
118 panY=0,
119 scale=32,
120 cursorCol=0,
121 cursorRow=0,
122 config=DefaultConfiguration,
123 outsideBackgroundColor=(0.5, 0.5, 0.5),
124 insideBackgroundColor=(0.0, 0.0, 0.0),
125 debugInset=0,
126 **args):
127
128 gtk.DrawingArea.__init__(self, **args)
129
130 self.drawTiles = drawTiles
131 self.drawTilesAlpha = drawTilesAlpha
132 self.drawPixels = drawPixels
133 self.drawPixelsAlpha = drawPixelsAlpha
134 self.pixelTileScaleCrossfade = pixelTileScaleCrossfade
135 self.pixelTileScaleThresholdMin = pixelTileScaleThresholdMin
136 self.pixelTileScaleThresholdMax = pixelTileScaleThresholdMax
137 self.cmapFileName = cmapFileName
138 self.cmapCount = cmapCount
139 self.tilesFileName = tilesFileName
140 self.sourceTileSize = sourceTileSize
141 self.cellCols = cellCols
142 self.cellRows = cellRows
143 self.running = running
144 self.renderCol = renderCol
145 self.renderRow = renderRow
146 self.renderCols = renderCols
147 self.renderRows = renderRows
148 self.timeDelay = timeDelay
149 self.panX = panX
150 self.panY = panY

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by 1

__init__Method · 0.68