@@ -1914,21 +1914,21 @@ function ItemsTabClass:CraftItem()
19141914 item :BuildAndParseRaw ()
19151915 return item
19161916 end
1917- controls .rarityLabel = new (" LabelControl" , {" TOPRIGHT" ,nil ," TOPLEFT" }, {50 , 20 , 0 , 16 }, " Rarity:" )
1918- controls .rarity = new (" DropDownControl" , nil , { - 80 , 20 , 100 , 18 }, rarityDropList )
1917+ controls .rarityLabel = new (" LabelControl" , {" TOPRIGHT" ,nil ," TOPLEFT" }, {70 , 20 , 0 , 16 }, " Rarity:" )
1918+ controls .rarity = new (" DropDownControl" , { " TOPLEFT " , controls . rarityLabel , " TOPRIGHT " }, { 5 , 0 , 100 , 18 }, rarityDropList )
19191919 controls .rarity .selIndex = self .lastCraftRaritySel or 3
1920- controls .title = new (" EditControl" , nil , { 70 , 20 , 190 , 18 }, " " , " Name" )
1920+ controls .title = new (" EditControl" , { " TOPLEFT " , controls . rarity , " TOPRIGHT " }, { 5 , 0 , 190 , 18 }, " " , " Name" )
19211921 controls .title .shown = function ()
19221922 return controls .rarity .selIndex >= 3
19231923 end
1924- controls .categoryLabel = new (" LabelControl" , {" TOPRIGHT" ,nil ," TOPLEFT" }, {50 , 45 , 0 , 16 }, " Category :" )
1925- controls .category = new (" DropDownControl" , {" TOPLEFT" ,nil , " TOPLEFT " }, {55 , 45 , 295 , 18 }, self .build .data .itemBaseCategoryList , function (index , value )
1924+ controls .categoryLabel = new (" LabelControl" , {" TOPRIGHT" ,nil ," TOPLEFT" }, {70 , 45 , 0 , 16 }, " ^7Category :" )
1925+ controls .category = new (" DropDownControl" , {" TOPLEFT" ,controls . categoryLabel , " TOPRIGHT " }, {5 , 0 , 295 , 18 }, self .build .data .itemBaseCategoryList , function (index , value )
19261926 controls .base .list = self .build .data .itemBaseLists [self .build .data .itemBaseCategoryList [index ]]
19271927 controls .base .selIndex = 1
19281928 end )
1929- controls .type .selIndex = self .lastCraftTypeSel or 1
1930- controls .baseLabel = new (" LabelControl" , {" TOPRIGHT" ,nil ," TOPLEFT" }, {50 , 70 , 0 , 16 }, " Base:" )
1931- controls .base = new (" DropDownControl" , {" TOPLEFT" ,nil , " TOPLEFT " }, {55 , 70 , 200 , 18 }, self .build .data .itemBaseLists [self .build .data .itemBaseCategoryList [controls .type .selIndex ]])
1929+ controls .category .selIndex = self .lastCraftTypeSel or 1
1930+ controls .baseLabel = new (" LabelControl" , {" TOPRIGHT" ,nil ," TOPLEFT" }, {70 , 70 , 0 , 16 }, " Base:" )
1931+ controls .base = new (" DropDownControl" , {" TOPLEFT" ,controls . baseLabel , " TOPRIGHT " }, {5 , 0 , 200 , 18 }, self .build .data .itemBaseLists [self .build .data .itemBaseCategoryList [controls .category .selIndex ]])
19321932 controls .base .selIndex = self .lastCraftBaseSel or 1
19331933 controls .base .tooltipFunc = function (tooltip , mode , index , value )
19341934 tooltip :Clear ()
@@ -1944,13 +1944,13 @@ function ItemsTabClass:CraftItem()
19441944 self :EditDisplayItemText ()
19451945 end
19461946 self .lastCraftRaritySel = controls .rarity .selIndex
1947- self .lastCraftTypeSel = controls .type .selIndex
1947+ self .lastCraftTypeSel = controls .category .selIndex
19481948 self .lastCraftBaseSel = controls .base .selIndex
19491949 end )
19501950 controls .cancel = new (" ButtonControl" , nil , {45 , 100 , 80 , 20 }, " Cancel" , function ()
19511951 main :ClosePopup ()
19521952 end )
1953- main :OpenPopup (370 , 130 , " Craft Item" , controls )
1953+ main :OpenPopup (460 , 130 , " Craft Item" , controls )
19541954end
19551955
19561956-- Opens the item text editor popup
0 commit comments