summaryrefslogtreecommitdiffstats
path: root/src/CompositeChat.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-04 22:17:23 +0100
committermadmaxoft <github@xoft.cz>2014-03-04 22:17:23 +0100
commit8f782885640a270bfe23843dff82367d28f9fb23 (patch)
treec17f4d1b3aa288f72ad212b8060f62da800ab985 /src/CompositeChat.h
parentcLuaState: Made public the GetStackValue() functions. (diff)
downloadcuberite-8f782885640a270bfe23843dff82367d28f9fb23.tar
cuberite-8f782885640a270bfe23843dff82367d28f9fb23.tar.gz
cuberite-8f782885640a270bfe23843dff82367d28f9fb23.tar.bz2
cuberite-8f782885640a270bfe23843dff82367d28f9fb23.tar.lz
cuberite-8f782885640a270bfe23843dff82367d28f9fb23.tar.xz
cuberite-8f782885640a270bfe23843dff82367d28f9fb23.tar.zst
cuberite-8f782885640a270bfe23843dff82367d28f9fb23.zip
Diffstat (limited to '')
-rw-r--r--src/CompositeChat.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/CompositeChat.h b/src/CompositeChat.h
index 51600da4f..27319490d 100644
--- a/src/CompositeChat.h
+++ b/src/CompositeChat.h
@@ -124,14 +124,15 @@ public:
/** Removes all parts from the object. */
void Clear(void);
+ // tolua_end
+
+ // The following are exported in ManualBindings in order to support chaining - they return *this in Lua (#755)
+
/** Adds a plain text part, with optional style.
The default style is plain white text. */
void AddTextPart(const AString & a_Message, const AString & a_Style = "");
- // tolua_end
-
- /** Adds a part that is translated client-side, with the formatting parameters and optional style.
- Exported in ManualBindings due to AStringVector usage - Lua uses an array-table of strings. */
+ /** Adds a part that is translated client-side, with the formatting parameters and optional style. */
void AddClientTranslatedPart(const AString & a_TranslationID, const AStringVector & a_Parameters, const AString & a_Style = "");
// tolua_begin
@@ -155,12 +156,14 @@ public:
/** Sets the message type, which is indicated by prefixes added to the message when serializing. */
void SetMessageType(eMessageType a_MessageType);
- /** Returns the message type set previously by SetMessageType(). */
- eMessageType GetMessageType(void) const { return m_MessageType; }
-
/** Adds the "underline" style to each part that is an URL. */
void UnderlineUrls(void);
+ // tolua_begin
+
+ /** Returns the message type set previously by SetMessageType(). */
+ eMessageType GetMessageType(void) const { return m_MessageType; }
+
// tolua_end
const cParts & GetParts(void) const { return m_Parts; }