Script Debug should link to object, when possible

This commit is contained in:
Liru Færs
2019-11-03 16:08:43 -05:00
parent 6af65004a5
commit fa869f21ad
2 changed files with 43 additions and 33 deletions

View File

@@ -35,6 +35,7 @@
#include "llmultifloater.h"
class LLChat;
class LLTextEditor;
class LLUUID;
@@ -45,7 +46,7 @@ public:
virtual void onClose(bool app_quitting) { setVisible(FALSE); }
virtual BOOL postBuild();
static void show(const LLUUID& object_id);
static void addScriptLine(const std::string &utf8mesg, const std::string &user_name, const LLColor4& color, const LLUUID& source_id);
static void addScriptLine(LLChat& chat, const LLColor4& color);
protected:
LLFloaterScriptDebug();
@@ -67,7 +68,7 @@ public:
S32 min_width, S32 min_height, BOOL drag_on_left,
BOOL minimizable, BOOL close_btn);
void addLine(const std::string &utf8mesg, const std::string &user_name, const LLColor4& color);
void addLine(const LLChat& chat, std::string message, const LLColor4& color);
static LLFloaterScriptDebugOutput* show(const LLUUID& object_id);
static LLFloaterScriptDebugOutput* getFloaterByID(const LLUUID& id);