#ara
ENABLE_CHAT_COMMAND = True
#altına ekle
chatStack = []
LAST_SENTENCE_STACK_SIZE = 32
#ara
def __PrevLastSentenceStack(self):
# fonksiyonu komple değiştir
def __PrevLastSentenceStack(self):
if self.lastSentencePos < len(chatStack):
self.lastSentencePos += 1
lastSentence = chatStack[-self.lastSentencePos]
self.SetText(lastSentence)
self.SetEndPosition()
# ara
def __NextLastSentenceStack(self):
# fonksiyonu komple değiştir.
def __NextLastSentenceStack(self):
if self.lastSentencePos > 1:
self.lastSentencePos -= 1
lastSentence = chatStack[-self.lastSentencePos]
self.SetText(lastSentence)
self.SetEndPosition()
# ara
def __PushLastSentenceStack(self, text):
# fonksiyonu komple değiştir.
def __PushLastSentenceStack(self, text):
global ENABLE_LAST_SENTENCE_STACK
if not ENABLE_LAST_SENTENCE_STACK:
return
if len(text) <= 0:
return
if len(chatStack) > LAST_SENTENCE_STACK_SIZE:
chatStack.pop(0)
chatStack.append(text)