Skip to content

Commit

Permalink
Fix SelectBox for RewardQuest (#8)
Browse files Browse the repository at this point in the history
Fix SelectBox for RewardQuest :)
  • Loading branch information
NetDwarf authored Oct 19, 2023
2 parents fef0cbe + 30ef19d commit 37212f2
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
8 changes: 4 additions & 4 deletions DOLToolbox/Controls/DOLQuestControl.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,11 @@ private void GoalObjectSearch_Click(object sender, EventArgs e)
objectsearch.ShowDialog(this);
}

private void RewardQuestControl_Load_1(object sender, EventArgs e)
{
SetupDropdowns();
}

private void label33_MouseHover(object sender, EventArgs e)
{
toolTip1.InitialDelay = 500;
Expand Down Expand Up @@ -1733,8 +1738,9 @@ private void RewardQuestControl_Load(object sender, EventArgs e)

private void SetupDropdowns()
{
ComboboxService.BindQuestStep(_GoalType);
ComboboxService.BindQuestGoal(_GoalType);
}

}

//StringBuilder allcl = new StringBuilder(allowedClasses);
Expand Down
File renamed without changes.
16 changes: 16 additions & 0 deletions DOLToolbox/Services/ComboboxService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1317,5 +1317,21 @@ public static void BindQuestStep(ComboBox input)

BindData(input, items);
}

public static void BindQuestGoal(ComboBox input)
{
var items = new List<SelectItemModel>
{
new SelectItemModel(2, "Search"),
new SelectItemModel(3, "Kill"),
new SelectItemModel(4, "Interact"),
new SelectItemModel(5, "InteractFinish"),
new SelectItemModel(6, "InteractWhisper"),
new SelectItemModel(7, "InteractDeliver")
};

BindData(input, items);
}

}
}

0 comments on commit 37212f2

Please sign in to comment.