Quote from: cdavenport on Sun 06/05/2018 15:15:46Quote from: Matti on Sun 06/05/2018 12:44:03
You could also create a listbox and use AddItem / RemoveItem whenever a quest starts or ends. Then make an extra text label for the quest description.
Thanks for the help, I've been looking at doing it as a listbox and have a very simple sample done, but how would you go about making a text label for the quest description and have it displayed under the AddItem? So far I can create/remove simple entries but knowing how to add a text description label would be nice. I'll Keep looking into it.
Just create a text label under or next to the list. One way to set the description for the currently selected quest would be to check the item name and set the label text accordingly. Something like this should work:
if (Listbox.Items[Listbox.SelectedIndex] == "Return the gold")
{
Label.Text = "Find the entrance to the sewers and the rat hideout, then take the gold and bring it back.";
}
Replace Listbox and Label with the actual GUI names and do this for every quest there is (you don't need the {}, you could write this in one line).
I can't test this right now. Also this might not be the most elegant way to do it and you have to make sure that the quest names are correct.