def __init__(self, root_obj, sound=True): self.obj = root_obj.groupMembers['RadioMessage'] text_tools.fix_text(self.obj) self._final_text = '' self.closing = True self.start_time = time.time() self.sound = VoiceSound() self._enable_sound = sound self.pointer_target = mathutils.Vector([0, 0]) # Set objects to "off" left = self.obj.childrenRecursive['LeftPane'] right = self.obj.childrenRecursive['RightPane'] pointer = self.obj.childrenRecursive['Pointer'] left.localScale.y = 0 left.color[3] = 0 right.localScale.y = 0 right.color[3] = 0 self.obj.color[3] = 0 pointer.color[3] = 0 for obj in left.childrenRecursive: obj.localScale.y = 0 obj.color[3] = 0 for obj in right.childrenRecursive: obj.localScale.y = 0 obj.color[3] = 0
def __init__(self, obj, text, width): self.obj = obj self.width = width self.text = text text_tools.fix_text(obj) self._orig_text = ""
def __init__(self, obj, text): self.obj = obj self.text = text self.obj["BUTTON"] = self self.on_click = common.FunctionList() text_tools.fix_text(obj.children[0])
def __init__(self, root_obj): self.obj = root_obj text_tools.fix_text(self.obj) self.start_time = time.time() self.scale = 0 self.closing = True #self.text = '' self.sound = FoundSound()
def __init__(self, root_obj): self.img = root_obj self.text_obj = self.img.children[0] text_tools.fix_text(self.text_obj) self.texture = bge.texture.Texture(self.img, 0) self.texture.source = bge.texture.ImageFFmpeg(common.BASE_PATH + "/None.png") self.texture.refresh(True) self._location = "" self.location = None
def __init__(self, rootobj): self.objs = rootobj.groupMembers self._left_page = LogPanel(self.objs['LeftImage']) self._right_page = LogPanel(self.objs['RightImage']) self.close_text = self.objs['CloseText'] text_tools.fix_text(self.objs['FoundText']) text_tools.fix_text(self.objs['PageNumText']) text_tools.fix_text(self.close_text) self.visible = False self._location_list = [] self._been_locations = [] self.sound = PageSound() self._page = 0 self._num_pages = 0