Allow species selection for plant creation

Fixes hardcoded "Random" string for translation of this new combobox.
This commit is contained in:
Inusaito Sayori
2013-09-25 17:04:44 -04:00
parent 18859e44c7
commit 34738593eb
2 changed files with 4 additions and 1 deletions

View File

@@ -2003,7 +2003,7 @@ void LLFloaterTools::updateTreeGrassCombo(bool visible)
}
mComboTreesGrass->removeall();
mComboTreesGrass->add("Random");
mComboTreesGrass->add(getString("Random"));
int select = 0, i = 0;

View File

@@ -294,6 +294,9 @@
image_unselected="object_grass.tga" label="" label_selected=""
left_delta="23" mouse_opaque="true" name="ToolGrass" scale_image="TRUE"
tool_tip="Grass" width="24" />
<text name="tree_grass_label" bottom="-106" follows="left|top" height="16" width="135" right="-5"/>
<combo_box name="trees_grass" bottom="-120" follows="left|top" height="18" width="135" right="-5"/>
<string name="Random">Random</string>
<check_box bottom="-117" control_name="CreateToolKeepSelected" follows="left|top"
font="SansSerifSmall" height="16" initial_value="false"
label="Keep selected" left="4" mouse_opaque="true"