def __init__(self, component=None): PyGUIBase.__init__(self, component) if component == None: self.component = GUI.Window('system/maps/col_white.bmp') self.component.colour = (128, 128, 128, 255) self.component.widthMode = 'CLIP' self.component.heightMode = 'CLIP' self.component.addChild(GUI.Text(''), 'text') self.component.text.horizontalAnchor = 'LEFT' self.component.text.horizontalPositionMode = 'CLIP' self.component.text.verticalAnchor = 'BOTTOM' self.component.text.verticalPositionMode = 'CLIP' self.component.text.position = (-1.0, -1.0, 0.5) self.component.text.multiline = True self.component.text.richFormatting = True self.component.text.colour = (255, 255, 255, 255) self.onBound() self.component.script = self self.maxLines = 255 self.wordWrap = True self.minVisibleLines = 4 self.autoSelectionFonts = ['default_medium.font'] self.idealCharactersPerLine = 80 self.lines = [] self.scrollIndex = 0 self._displayedLineCount = 0 registerDeviceListener(self) return
def __init__(self, component = None): PyGUIBase.__init__(self, component) self.cursorIndex = 0 self.scrollInPixels = 0 self.onEnter = None self.onEscape = None self.maxLength = 256 self.enabled = True self.enableIME = False self.focusViaMouse = True self.focusObserver = None self.shouldAdjustClipping = False self.__externalKeyEventHandler = None self.__allowAutoDefocus = True if self.component is None: self.component = GUI.Window('system/maps/col_white.bmp') self.component.colour = (0, 0, 0, 255) self.component.materialFX = 'BLEND' self.component.width = 0.75 self.component.height = 0.1 self.component.heightMode = 'CLIP' self.component.widthMode = 'CLIP' self.component.minScroll = (-100, -100) self.component.maxScroll = (+100, +100) self.component.script = self self.onBound() self.autoSelectionFonts = ['default_medium.font'] self.idealVisibleCharacters = 80 registerDeviceListener(self) return
def __init__(self, component=None): PyGUIBase.__init__(self, component) self.cursorIndex = 0 self.scrollInPixels = 0 self.onEnter = None self.onEscape = None self.maxLength = 256 self.enabled = True self.enableIME = False self.focusViaMouse = True self.focusObserver = None self.shouldAdjustClipping = False self.__externalKeyEventHandler = None self.__allowAutoDefocus = True if self.component is None: self.component = GUI.Window('system/maps/col_white.bmp') self.component.colour = (0, 0, 0, 255) self.component.materialFX = 'BLEND' self.component.width = 0.75 self.component.height = 0.1 self.component.heightMode = 'CLIP' self.component.widthMode = 'CLIP' self.component.minScroll = (-100, -100) self.component.maxScroll = (+100, +100) self.component.script = self self.onBound() self.autoSelectionFonts = ['default_medium.font'] self.idealVisibleCharacters = 80 registerDeviceListener(self) return
def __init__(self, component = None): PyGUIBase.__init__(self, component) if component == None: self.component = GUI.Window('system/maps/col_white.bmp') self.component.colour = (128, 128, 128, 255) self.component.widthMode = 'CLIP' self.component.heightMode = 'CLIP' self.component.addChild(GUI.Text(''), 'text') self.component.text.horizontalAnchor = 'LEFT' self.component.text.horizontalPositionMode = 'CLIP' self.component.text.verticalAnchor = 'BOTTOM' self.component.text.verticalPositionMode = 'CLIP' self.component.text.position = (-1.0, -1.0, 0.5) self.component.text.multiline = True self.component.text.richFormatting = True self.component.text.colour = (255, 255, 255, 255) self.onBound() self.component.script = self self.maxLines = 255 self.wordWrap = True self.minVisibleLines = 4 self.autoSelectionFonts = ['default_medium.font'] self.idealCharactersPerLine = 80 self.lines = [] self.scrollIndex = 0 self._displayedLineCount = 0 registerDeviceListener(self) return