mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 17:59:03 +00:00
Changed: Sorted landmarks
This commit is contained in:
parent
77e4d9a887
commit
6046493146
1 changed files with 5 additions and 1 deletions
|
@ -3209,10 +3209,14 @@ class CAHValidateUserLandMarkName : public IActionHandler
|
||||||
CGroupEditBox *eb = dynamic_cast<CGroupEditBox *>(ig->getGroup("eb"));
|
CGroupEditBox *eb = dynamic_cast<CGroupEditBox *>(ig->getGroup("eb"));
|
||||||
if (!eb) return;
|
if (!eb) return;
|
||||||
ig->setActive(false);
|
ig->setActive(false);
|
||||||
|
CGroupContainer *gc = dynamic_cast<CGroupContainer *>(im->getElementFromId(WIN_LANDMARK_NAME));
|
||||||
|
if (!gc) return;
|
||||||
|
// Retrieve ComboBox to get the position(ordered landmark type) of the selected item
|
||||||
|
CDBGroupComboBox *cb = dynamic_cast<CDBGroupComboBox *>(gc->getGroup("landmarktypes"));
|
||||||
|
|
||||||
|
|
||||||
CUserLandMark::EUserLandMarkType landMarkType = CUserLandMark::Misc;
|
CUserLandMark::EUserLandMarkType landMarkType = CUserLandMark::Misc;
|
||||||
sint8 nLandMarkType = im->getDbProp( "UI:TEMP:LANDMARKTYPE" )->getValue8();
|
sint8 nLandMarkType = cb->getTextId(im->getDbProp( "UI:TEMP:LANDMARKTYPE" )->getValue8());
|
||||||
if (nLandMarkType>=0 && nLandMarkType<=CUserLandMark::UserLandMarkTypeCount)
|
if (nLandMarkType>=0 && nLandMarkType<=CUserLandMark::UserLandMarkTypeCount)
|
||||||
{
|
{
|
||||||
landMarkType = (CUserLandMark::EUserLandMarkType)nLandMarkType;
|
landMarkType = (CUserLandMark::EUserLandMarkType)nLandMarkType;
|
||||||
|
|
Loading…
Reference in a new issue