overlay_layer.py 436 B

123456789101112131415161718
  1. from cocos.tiles import HexMapLayer
  2. import cocos.draw
  3. class HexMapLayerWithOutlines(HexMapLayer):
  4. def __init__(self, id_, source_layer):
  5. super().__init__(id_, False, source_layer.th, source_layer.cells,
  6. properties=source_layer.properties)
  7. self.visible = False
  8. # Looks like we want to add a cocos.draw.Canvas with a bunch of lines.
  9. for i in range(10):
  10. pass