0.1.0
This commit is contained in:
parent
a58dbe2943
commit
6fcbf3aaf0
6 changed files with 6 additions and 114 deletions
1
TODO
1
TODO
|
@ -3,6 +3,7 @@ Features:
|
||||||
* color text is not being translated to server?
|
* color text is not being translated to server?
|
||||||
* convo backgrounds -- make them more like http://www.mspaintadventures.com/storyfiles/hs2/02546_2.gif
|
* convo backgrounds -- make them more like http://www.mspaintadventures.com/storyfiles/hs2/02546_2.gif
|
||||||
* PESTERLOG: in convo window
|
* PESTERLOG: in convo window
|
||||||
|
* make other ppl ops
|
||||||
* help button on quirks menu?
|
* help button on quirks menu?
|
||||||
* tab recombining gives wrong window icon
|
* tab recombining gives wrong window icon
|
||||||
* help menu -- about and forum
|
* help menu -- about and forum
|
||||||
|
|
2
convo.py
2
convo.py
|
@ -425,7 +425,7 @@ class PesterConvo(QtGui.QFrame):
|
||||||
self.chumopen = o
|
self.chumopen = o
|
||||||
def changeTheme(self, theme):
|
def changeTheme(self, theme):
|
||||||
self.resize(*theme["convo/size"])
|
self.resize(*theme["convo/size"])
|
||||||
self.setStyleSheet("QFrame { %s } QScrollBar:vertical { %s } QScrollBar::handle:vertical { %s }" % (convo["style"], convo["scrollbar"]["style"], convo["scrollbar"]["handle"]))
|
self.setStyleSheet("QFrame { %s } QScrollBar:vertical { %s } QScrollBar::handle:vertical { %s }" % (theme["convo/style"], theme["convo/scrollbar"]["style"], theme["convo/scrollbar"]["handle"]))
|
||||||
margins = theme["convo/margins"]
|
margins = theme["convo/margins"]
|
||||||
self.layout.setContentsMargins(margins["left"], margins["top"],
|
self.layout.setContentsMargins(margins["left"], margins["top"],
|
||||||
margins["right"], margins["bottom"])
|
margins["right"], margins["bottom"])
|
||||||
|
|
BIN
convo.pyc
BIN
convo.pyc
Binary file not shown.
109
mash
109
mash
|
@ -1,109 +0,0 @@
|
||||||
diff --git a/memos.py b/memos.py
|
|
||||||
index 239947e..af7ab32 100644
|
|
||||||
--- a/memos.py
|
|
||||||
+++ b/memos.py
|
|
||||||
@@ -236,7 +236,9 @@ class MemoText(PesterText):
|
|
||||||
time = TimeTracker(newtime)
|
|
||||||
parent.times[chum.handle] = time
|
|
||||||
timeGrammar = time.getGrammar()
|
|
||||||
- self.append(convertTags(chum.memojoinmsg(systemColor, time.getTime(), timeGrammar, window.theme["convo/text/joinmemo"])))
|
|
||||||
+ msg = chum.memojoinmsg(systemColor, time.getTime(), timeGrammar, window.theme["convo/text/joinmemo"])
|
|
||||||
+ self.append(convertTags(msg))
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
else:
|
|
||||||
time = parent.time
|
|
||||||
|
|
||||||
@@ -356,7 +358,9 @@ class PesterMemo(PesterConvo):
|
|
||||||
p = self.mainwindow.profile()
|
|
||||||
timeGrammar = self.time.getGrammar()
|
|
||||||
systemColor = QtGui.QColor(self.mainwindow.theme["memos/systemMsgColor"])
|
|
||||||
- self.textArea.append(convertTags(p.memoopenmsg(systemColor, self.time.getTime(), timeGrammar, self.mainwindow.theme["convo/text/openmemo"], self.channel)))
|
|
||||||
+ msg = p.memoopenmsg(systemColor, self.time.getTime(), timeGrammar, self.mainwindow.theme["convo/text/openmemo"], self.channel)
|
|
||||||
+ self.textArea.append(convertTags(msg))
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
|
|
||||||
self.op = False
|
|
||||||
self.newmessage = False
|
|
||||||
@@ -482,18 +486,24 @@ class PesterMemo(PesterConvo):
|
|
||||||
self.times[handle].setCurrent(close)
|
|
||||||
grammar = self.times[handle].getGrammar()
|
|
||||||
self.times[handle].removeTime(close)
|
|
||||||
- self.textArea.append(convertTags(chum.memoclosemsg(systemColor, grammar, window.theme["convo/text/closememo"])))
|
|
||||||
+ msg = chum.memoclosemsg(systemColor, grammar, window.theme["convo/text/closememo"])
|
|
||||||
+ self.textArea.append(convertTags(msg))
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
elif timed not in self.times[handle]:
|
|
||||||
self.times[handle].addTime(timed)
|
|
||||||
grammar = self.times[handle].getGrammar()
|
|
||||||
- self.textArea.append(convertTags(chum.memojoinmsg(systemColor, timed, grammar, window.theme["convo/text/joinmemo"])))
|
|
||||||
+ msg = chum.memojoinmsg(systemColor, timed, grammar, window.theme["convo/text/joinmemo"])
|
|
||||||
+ self.textArea.append(convertTags(msg))
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
else:
|
|
||||||
self.times[handle].setCurrent(timed)
|
|
||||||
else:
|
|
||||||
if timed is not None:
|
|
||||||
ttracker = TimeTracker(timed)
|
|
||||||
grammar = ttracker.getGrammar()
|
|
||||||
- self.textArea.append(convertTags(chum.memojoinmsg(systemColor, timed, grammar, window.theme["convo/text/joinmemo"])))
|
|
||||||
+ msg = chum.memojoinmsg(systemColor, timed, grammar, window.theme["convo/text/joinmemo"])
|
|
||||||
+ self.textArea.append(convertTags(msg))
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
self.times[handle] = ttracker
|
|
||||||
|
|
||||||
@QtCore.pyqtSlot()
|
|
||||||
@@ -556,7 +566,9 @@ class PesterMemo(PesterConvo):
|
|
||||||
while self.times[h].getTime() is not None:
|
|
||||||
t = self.times[h]
|
|
||||||
grammar = t.getGrammar()
|
|
||||||
- self.textArea.append(convertTags(chum.memoclosemsg(systemColor, grammar, self.mainwindow.theme["convo/text/closememo"])))
|
|
||||||
+ msg = chum.memoclosemsg(systemColor, grammar, self.mainwindow.theme["convo/text/closememo"])
|
|
||||||
+ self.textArea.append(convertTags(msg))
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
self.times[h].removeTime(t.getTime())
|
|
||||||
if update == "nick":
|
|
||||||
self.addUser(newnick)
|
|
||||||
@@ -583,7 +595,9 @@ class PesterMemo(PesterConvo):
|
|
||||||
opgrammar = self.time.getGrammar()
|
|
||||||
else:
|
|
||||||
opgrammar = TimeGrammar("CURRENT", "C", "RIGHT NOW")
|
|
||||||
- self.textArea.append(convertTags(chum.memobanmsg(opchum, opgrammar, systemColor, grammar)))
|
|
||||||
+ msg = chum.memobanmsg(opchum, opgrammar, systemColor, grammar)
|
|
||||||
+ self.textArea.append(convertTags(msg))
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
ttracker.removeTime(ttracker.getTime())
|
|
||||||
|
|
||||||
if chum is self.mainwindow.profile():
|
|
||||||
@@ -599,7 +613,9 @@ class PesterMemo(PesterConvo):
|
|
||||||
self.resetSlider(curtime)
|
|
||||||
self.mainwindow.joinChannel.emit(self.channel)
|
|
||||||
me = self.mainwindow.profile()
|
|
||||||
- self.textArea.append(convertTags(me.memoopenmsg(systemColor, self.time.getTime(), self.time.getGrammar(), self.mainwindow.theme["convo/text/openmemo"], self.channel)))
|
|
||||||
+ msg = me.memoopenmsg(systemColor, self.time.getTime(), self.time.getGrammar(), self.mainwindow.theme["convo/text/openmemo"], self.channel)
|
|
||||||
+ self.textArea.append(convertTags(msg))
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
elif ret == QtGui.QMessageBox.Cancel:
|
|
||||||
if self.parent():
|
|
||||||
i = self.parent().tabIndices[self.channel]
|
|
||||||
@@ -639,7 +655,9 @@ class PesterMemo(PesterConvo):
|
|
||||||
time = txt2delta(self.timeinput.text())
|
|
||||||
present = self.time.addTime(time)
|
|
||||||
if not present:
|
|
||||||
- self.textArea.append(convertTags(me.memojoinmsg(systemColor, time, self.time.getGrammar(), self.mainwindow.theme["convo/text/joinmemo"])))
|
|
||||||
+ msg = me.memojoinmsg(systemColor, time, self.time.getGrammar(), self.mainwindow.theme["convo/text/joinmemo"])
|
|
||||||
+ self.textArea.append(convertTags(msg))
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
|
|
||||||
serverText = "PESTERCHUM:TIME>"+delta2txt(time, "server")
|
|
||||||
self.messageSent.emit(serverText, self.title())
|
|
||||||
@@ -651,7 +669,9 @@ class PesterMemo(PesterConvo):
|
|
||||||
if removed:
|
|
||||||
grammar = self.time.getGrammarTime(time)
|
|
||||||
systemColor = QtGui.QColor(self.mainwindow.theme["memos/systemMsgColor"])
|
|
||||||
- self.textArea.append(convertTags(me.memoclosemsg(systemColor, grammar, self.mainwindow.theme["convo/text/closememo"])))
|
|
||||||
+
|
|
||||||
+ self.textArea.append(convertTags(
|
|
||||||
+ window.chatlog.log(parent.channel, convertTags(msg, "bbcode"))
|
|
||||||
|
|
||||||
newtime = self.time.getTime()
|
|
||||||
if newtime is None:
|
|
|
@ -1 +1 @@
|
||||||
{"color": "#aa00ff", "theme": "pesterchum", "quirks": [], "handle": "testProfile"}
|
{"color": "#aa00ff", "theme": "trollian", "quirks": [], "handle": "testProfile"}
|
|
@ -27,14 +27,14 @@
|
||||||
"theme": "Theme",
|
"theme": "Theme",
|
||||||
"color": "Hemospectrum",
|
"color": "Hemospectrum",
|
||||||
"block": "Chumpdump",
|
"block": "Chumpdump",
|
||||||
"quirks": "Annoying"},
|
"quirks": "Annoying" },
|
||||||
"rclickchumlist": {"pester": "Troll",
|
"rclickchumlist": {"pester": "Troll",
|
||||||
"removechum": "Trash",
|
"removechum": "Trash",
|
||||||
"blockchum": "Block",
|
"blockchum": "Block",
|
||||||
"addchum": "Add Chump",
|
"addchum": "Add Chump",
|
||||||
"unblockchum": "Mercy",
|
"unblockchum": "Mercy",
|
||||||
"banuser": "Ban",
|
"banuser": "Ban",
|
||||||
"quirksoff": "Quirks Off"
|
"quirksoff": "Quirks Off" }
|
||||||
},
|
},
|
||||||
"chums": { "style": "font-size: 12px; background: white; border:2px solid #c2c2c2; padding: 5px; font-family: 'Arial';selection-background-color:rgb(200,200,200); ",
|
"chums": { "style": "font-size: 12px; background: white; border:2px solid #c2c2c2; padding: 5px; font-family: 'Arial';selection-background-color:rgb(200,200,200); ",
|
||||||
"loc": [475, 89],
|
"loc": [475, 89],
|
||||||
|
@ -246,7 +246,7 @@
|
||||||
"text" : "trolling: $handle"
|
"text" : "trolling: $handle"
|
||||||
},
|
},
|
||||||
"textarea": {
|
"textarea": {
|
||||||
"style": "background: white; border:2px solid #c2c2c2; font-size: 12px; margin-top: 4px;"
|
"style": "background: white; border:2px solid #c2c2c2; font-size: 14px; margin-top: 4px;"
|
||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"style": "background: white;margin-top:5px; border:1px solid #c2c2c2; margin-right: 54px; font-size: 12px; height: 19px;"
|
"style": "background: white;margin-top:5px; border:1px solid #c2c2c2; margin-right: 54px; font-size: 12px; height: 19px;"
|
||||||
|
|
Loading…
Reference in a new issue