pastebin - collaborative debugging tool
alicesucks.kpaste.net RSS

Difference between
modified post 45dde8 by Anonymous on Sat 11th Dec 2010 17:04
original post f210d by Anonymous on Fri 10th Dec 2010 00:59
Download diff
Show old version | new version | both versions

    
11
# core classes
22
from edu.cmu.cs.stage3.alice.core import *
3+
from edu.cmu.cs.stage3.alice.core.event import *
34
from edu.cmu.cs.stage3.alice.core.response import *
45
from edu.cmu.cs.stage3.alice.core.property import *
67
# constants
78
from edu.cmu.cs.stage3.alice.core.Direction import *
89
from edu.cmu.cs.stage3.alice.core.style.TraditionalAnimationStyle import *
1011
# misc
1112
from edu.cmu.cs.stage3.alice.authoringtool import *
1213
from edu.cmu.cs.stage3.alice.authoringtool.util import *
1415
# image
1516
from java.awt.image import *
1718
graphicsConfiguration = AuthoringTool.getHack().getJAliceFrame().getGraphicsConfiguration()
19-
def setTexture(self, img):
20+
def setTexture(object, image):
2021
	texture = TextureMap()
21-
	texture.setImage(image)
22+
	texture.propertyChanged(PropertyEvent(texture.image, image))
22-
	self.propertyChanged(self.diffuseColorMap, texture)
23+
	object.propertyChanged(PropertyEvent(object._diffuseColorMap, texture))
24-
def setImage(self, img):
25+
def getTextureImage(object):
25-
	self.propertyChanged(self.image, img)
27-
TextureMap.setImage = setImage
28-
Billboard.setTexture = setTexture
30-
def onScreen(obj):
31-
	world.bool = camera.canSee(obj, false)
26+
	'''
27+
	returns java.awt.Image
28+
	'''
29+
	return object.diffuseColorMap.image
27-
TextureMap.setImage = setImage
28-
Billboard.setTexture = setTexture
31+
def onScreen(obj):

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at