diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llfloaterscriptdebug.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llfloaterscriptdebug.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterscriptdebug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llfloaterscriptdebug.cpp b/linden/indra/newview/llfloaterscriptdebug.cpp index e25468b..3115b69 100644 --- a/linden/indra/newview/llfloaterscriptdebug.cpp +++ b/linden/indra/newview/llfloaterscriptdebug.cpp | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | #include "llviewerprecompiledheaders.h" | 32 | #include "llviewerprecompiledheaders.h" |
33 | 33 | ||
34 | #include "llvieweruictrlfactory.h" | 34 | #include "lluictrlfactory.h" |
35 | #include "llfloaterscriptdebug.h" | 35 | #include "llfloaterscriptdebug.h" |
36 | 36 | ||
37 | #include "llfontgl.h" | 37 | #include "llfontgl.h" |
@@ -84,7 +84,7 @@ BOOL LLFloaterScriptDebug::postBuild() | |||
84 | if (mTabContainer) | 84 | if (mTabContainer) |
85 | { | 85 | { |
86 | // *FIX: apparantly fails for tab containers? | 86 | // *FIX: apparantly fails for tab containers? |
87 | // mTabContainer->requires("all_scripts", WIDGET_TYPE_FLOATER); | 87 | // mTabContainer->requires<LLFloater>("all_scripts"); |
88 | // mTabContainer->checkRequirements(); | 88 | // mTabContainer->checkRequirements(); |
89 | return TRUE; | 89 | return TRUE; |
90 | } | 90 | } |
@@ -104,7 +104,7 @@ LLFloater* LLFloaterScriptDebug::addOutputWindow(const LLUUID &object_id) | |||
104 | sInstance = new LLFloaterScriptDebug(); | 104 | sInstance = new LLFloaterScriptDebug(); |
105 | LLCallbackMap::map_t factory_map; | 105 | LLCallbackMap::map_t factory_map; |
106 | factory_map["all_scripts"] = LLCallbackMap(getOutputWindow, NULL); | 106 | factory_map["all_scripts"] = LLCallbackMap(getOutputWindow, NULL); |
107 | gUICtrlFactory->buildFloater(sInstance, "floater_script_debug.xml", &factory_map); | 107 | LLUICtrlFactory::getInstance()->buildFloater(sInstance, "floater_script_debug.xml", &factory_map); |
108 | sInstance->setVisible(FALSE); | 108 | sInstance->setVisible(FALSE); |
109 | } | 109 | } |
110 | 110 | ||
@@ -128,7 +128,7 @@ void LLFloaterScriptDebug::addScriptLine(const std::string &utf8mesg, const std: | |||
128 | 128 | ||
129 | if (objectp) | 129 | if (objectp) |
130 | { | 130 | { |
131 | objectp->setIcon(gImageList.getImage(LLUUID(gViewerArt.getString("script_error.tga")))); | 131 | objectp->setIcon(gImageList.getImageFromFile("script_error.j2c", TRUE, TRUE)); |
132 | floater_label = llformat("%s(%.2f, %.2f)", user_name.c_str(), objectp->getPositionRegion().mV[VX], objectp->getPositionRegion().mV[VY]); | 132 | floater_label = llformat("%s(%.2f, %.2f)", user_name.c_str(), objectp->getPositionRegion().mV[VX], objectp->getPositionRegion().mV[VY]); |
133 | } | 133 | } |
134 | else | 134 | else |