|
@@ -35,7 +35,7 @@ QuestDialog::QuestDialog(int playerId)
|
|
|
<< (Framework::Fenster::Style::Titel
|
|
|
| Framework::Fenster::Style::Erlaubt
|
|
|
| Framework::Fenster::Style::Sichtbar)
|
|
|
- << "\" title-height=\"20\"/></dialog>";
|
|
|
+ << "\" title-height=\"30\" title-font-size=\"20\"/></dialog>";
|
|
|
this->uiml = new Framework::XML::Element(uiml);
|
|
|
}
|
|
|
|
|
@@ -264,8 +264,7 @@ void QuestDialog::api(
|
|
|
{
|
|
|
if (quest->getQuestId().istGleich(questId))
|
|
|
{
|
|
|
- for (QuestReward* reward :
|
|
|
- quest->rewards)
|
|
|
+ for (QuestReward* reward : quest->rewards)
|
|
|
{
|
|
|
if (reward->getRewardId().istGleich(reqardId))
|
|
|
{
|
|
@@ -349,35 +348,35 @@ void QuestDialog::showQuestDetails(
|
|
|
{
|
|
|
zParent->setAttribute("title", zQuest->questName);
|
|
|
zParent->addChild(new Framework::XML::Element(
|
|
|
- (((Framework::Text(
|
|
|
- "<text id=\"quest_description\" width=\"50%\" height=\"50%\" "
|
|
|
- "align-left=\"start\" align-top=\"start\" vScroll=\"auto\" "
|
|
|
- "style=\"")
|
|
|
+ (((Framework::Text("<text id=\"quest_description\" width=\"50% - 15\" "
|
|
|
+ "height=\"50% - 10\" "
|
|
|
+ "align-left=\"start\" margin-left=\"10\" "
|
|
|
+ "align-top=\"start\" margin-top=\"10\" border=\"1\" "
|
|
|
+ "border-color=\"0xFF52525E\" vScroll=\"auto\" "
|
|
|
+ "style=\"")
|
|
|
+= Framework::TextFeld::Style::Text
|
|
|
| Framework::TextFeld::Style::Mehrzeilig
|
|
|
| Framework::TextFeld::Style::AutoLineBreak)
|
|
|
+= "\">")
|
|
|
+= zQuest->description)
|
|
|
+= "</text>"));
|
|
|
- zParent->addChild(new Framework::XML::Element(
|
|
|
- "<text id=\"quest_requirements_title\" width=\"50%\" height=\"30\" "
|
|
|
- "align-left=\"quest_description\" align-top=\"start\" "
|
|
|
- "text-align-horizontal=\"center\" text-align-vertical=\"center\" "
|
|
|
- "font-size\"20\">Requirements</text>"));
|
|
|
- zParent->addChild(new Framework::XML::Element(
|
|
|
- "<text id=\"quest_rewards_title\" width=\"50%\" height=\"30\" "
|
|
|
- "align-left=\"start\" align-top=\"quest_description\" "
|
|
|
- "text-align-horizontal=\"center\" text-align-vertical=\"center\" "
|
|
|
- "font-size\"20\">Rewards</text>"));
|
|
|
Framework::XML::Element* requirementsContainer
|
|
|
= new Framework::XML::Element(
|
|
|
- "<frame id=\"quest_requirements\" align-left=\"start\" "
|
|
|
- "align-top=\"quest_requirements_title\" width=\"50%\" "
|
|
|
+ "<frame id=\"quest_requirements\" align-left=\"quest_description\" "
|
|
|
+ "margin-left=\"10\" "
|
|
|
+ "align-top=\"start\" margin-top=\"10\" width=\"50% - 15\" "
|
|
|
"height=\"100% - "
|
|
|
- "70\" vScroll=\"auto\" display=\"column\" gap=\"10\"/>");
|
|
|
+ "50\" vScroll=\"auto\" display=\"column\" gap=\"10\" border=\"1\" "
|
|
|
+ "border-color=\"0xFF52525E\"/>");
|
|
|
+ requirementsContainer->addChild(new Framework::XML::Element(
|
|
|
+ "<text id=\"quest_requirements_title\" width=\"100%\" "
|
|
|
+ "height=\"30\" text-align-horizontal=\"center\" "
|
|
|
+ "text-align-vertical=\"center\" "
|
|
|
+ "font-size=\"20\">Requirements</text>"));
|
|
|
requirementsContainer->setAttribute("style",
|
|
|
Framework::Text() += (Framework::Fenster::Style::Sichtbar
|
|
|
- | Framework::Fenster::Style::Erlaubt));
|
|
|
+ | Framework::Fenster::Style::Erlaubt
|
|
|
+ | Framework::Fenster::Style::Rahmen));
|
|
|
for (QuestRequirement* requirement : zQuest->requirements)
|
|
|
{
|
|
|
requirement->addRequirementUIML(zStorage,
|
|
@@ -387,12 +386,19 @@ void QuestDialog::showQuestDetails(
|
|
|
}
|
|
|
zParent->addChild(requirementsContainer);
|
|
|
Framework::XML::Element* rewardsContainer = new Framework::XML::Element(
|
|
|
- "<frame id=\"quest_rewards\" align-left=\"start\" "
|
|
|
- "align-top=\"quest_rewards_title\" width=\"50%\" height=\"50% - "
|
|
|
- "30\" vScroll=\"auto\" display=\"column\" gap=\"10\"/>");
|
|
|
+ "<frame id=\"quest_rewards\" align-left=\"start\" margin-left=\"10\" "
|
|
|
+ "margin-top=\"10\" "
|
|
|
+ "align-top=\"quest_description\" width=\"50% - 15\" height=\"50% - "
|
|
|
+ "20\" vScroll=\"auto\" display=\"column\" gap=\"10\" border=\"1\" "
|
|
|
+ "border-color=\"0xFF52525E\"/>");
|
|
|
+ rewardsContainer->addChild(new Framework::XML::Element(
|
|
|
+ "<text id=\"quest_rewards_title\" width=\"100%\" height=\"30\" "
|
|
|
+ "text-align-horizontal=\"center\" text-align-vertical=\"center\" "
|
|
|
+ "font-size=\"20\">Rewards</text>"));
|
|
|
rewardsContainer->setAttribute("style",
|
|
|
Framework::Text() += (Framework::Fenster::Style::Sichtbar
|
|
|
- | Framework::Fenster::Style::Erlaubt));
|
|
|
+ | Framework::Fenster::Style::Erlaubt
|
|
|
+ | Framework::Fenster::Style::Rahmen));
|
|
|
for (QuestReward* reward : zQuest->rewards)
|
|
|
{
|
|
|
reward->addRewardUIML(rewardsContainer,
|