Merge remote-tracking branch 'shyotl/master'
This commit is contained in:
@@ -3224,16 +3224,20 @@ LLView* LLScrollListCtrl::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFac
|
||||
|
||||
for (child = node->getFirstChild(); child.notNull(); child = child->getNextSibling())
|
||||
{
|
||||
if (child->hasName("row"))
|
||||
if (child->hasName("row") || child->hasName("rows"))
|
||||
{
|
||||
LLUUID id;
|
||||
child->getAttributeUUID("id", id);
|
||||
|
||||
LLSD row;
|
||||
|
||||
row["id"] = id;
|
||||
std::string value;
|
||||
child->getAttributeString("value",value);
|
||||
bool id_found = child->getAttributeUUID("id", id);
|
||||
if(id_found)
|
||||
row["id"] = id;
|
||||
else
|
||||
row["id"] = value;
|
||||
|
||||
S32 column_idx = 0;
|
||||
bool explicit_column = false;
|
||||
LLXMLNodePtr row_child;
|
||||
for (row_child = child->getFirstChild(); row_child.notNull(); row_child = row_child->getNextSibling())
|
||||
{
|
||||
@@ -3255,15 +3259,24 @@ LLView* LLScrollListCtrl::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFac
|
||||
row["columns"][column_idx]["font"] = font;
|
||||
row["columns"][column_idx]["font-style"] = font_style;
|
||||
column_idx++;
|
||||
explicit_column = true;
|
||||
}
|
||||
}
|
||||
scroll_list->addElement(row);
|
||||
if(explicit_column)
|
||||
scroll_list->addElement(row);
|
||||
else
|
||||
{
|
||||
LLSD entry_id;
|
||||
if(id_found)
|
||||
entry_id = id;
|
||||
scroll_list->addSimpleElement(value,ADD_BOTTOM,entry_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string contents = node->getTextContents();
|
||||
scroll_list->setCommentText(contents);
|
||||
|
||||
|
||||
return scroll_list;
|
||||
}
|
||||
|
||||
|
||||
@@ -272,7 +272,8 @@ void LLToolMgr::updateToolStatus()
|
||||
|
||||
bool LLToolMgr::inEdit()
|
||||
{
|
||||
return mBaseTool != LLToolPie::getInstance() && mBaseTool != gToolNull;
|
||||
static const LLCachedControl<bool> freeze_time("FreezeTime",false);
|
||||
return mBaseTool != LLToolPie::getInstance() && mBaseTool != gToolNull && (mCurrentToolset != gCameraToolset || !freeze_time);
|
||||
}
|
||||
|
||||
bool LLToolMgr::canEdit()
|
||||
|
||||
@@ -49,13 +49,13 @@
|
||||
<text bottom_delta="0" follows="top|left" font="SansSerif" left="220" name="steps_label">
|
||||
Steps:
|
||||
</text>
|
||||
<scroll_list bottom_delta="-120" draw_border="true" follows="top|left" height="110"
|
||||
<scroll_list bottom_delta="-120" draw_border="true" follows="top|left" height="110"
|
||||
left="16" multi_select="false" name="library_list" width="100">
|
||||
Animation
|
||||
Sound
|
||||
Chat
|
||||
Wait
|
||||
</scroll_list>
|
||||
<row name="action_animation" value="Animation"/>
|
||||
<row name="action_sound" value="Sound"/>
|
||||
<row name="action_chat" value="Chat"/>
|
||||
<row name="action_wait" value="Wait"/>
|
||||
</scroll_list>
|
||||
<button bottom_delta="90" follows="top|left" height="20" label="Add >>"
|
||||
left="130" name="add_btn" width="80" />
|
||||
<button bottom_delta="-30" follows="top|left" height="20" label="Move Up"
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
Pasos:
|
||||
</text>
|
||||
<scroll_list name="library_list">
|
||||
Animación
|
||||
Sonidos
|
||||
Chat
|
||||
Esperar
|
||||
<row name="action_animation" value="Animación"/>
|
||||
<row name="action_sound" value="Sonidos"/>
|
||||
<row name="action_chat" value="Chat"/>
|
||||
<row name="action_wait" value="Esperar"/>
|
||||
</scroll_list>
|
||||
<button label="Añadir >>" name="add_btn"/>
|
||||
<button label="Subir" name="up_btn"/>
|
||||
|
||||
@@ -34,10 +34,10 @@
|
||||
Étapes:
|
||||
</text>
|
||||
<scroll_list name="library_list">
|
||||
Animation
|
||||
Son
|
||||
Chat
|
||||
Attendre
|
||||
<row name="action_animation" value="Animation"/>
|
||||
<row name="action_sound" value="Son"/>
|
||||
<row name="action_chat" value="Chat"/>
|
||||
<row name="action_wait" value="Attendre"/>
|
||||
</scroll_list>
|
||||
<button label="Ajouter >>" name="add_btn"/>
|
||||
<button label="Monter" name="up_btn"/>
|
||||
|
||||
Reference in New Issue
Block a user