PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow Class Reference

This is an implementation of the abstract QuestLogWindow class for Daikon Forge GUI. More...

Inheritance diagram for PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow:
Collaboration diagram for PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow:

Public Member Functions

override void OpenWindow (Action openedWindowHandler)
 Open the window by showing the main panel. More...
 
override void CloseWindow (Action closedWindowHandler)
 Close the window by hiding the main panel. More...
 
override void OnQuestListUpdated ()
 Whenever the quest list is updated, repopulate the scroll panel. More...
 
override void ConfirmAbandonQuest (string title, Action confirmAbandonQuestHandler)
 Opens the abandon confirmation popup. More...
 
void ClickConfirmAbandonQuestButton ()
 
void ClickCancelAbandonQuestButton ()
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.QuestLogWindow
virtual void Awake ()
 
virtual void Open ()
 Opens the quest window. More...
 
virtual void Close ()
 Closes the quest log window. More...
 
virtual string GetLocalizedText (string fieldName)
 Gets the localized text for a field name. More...
 
virtual bool IsSelectedQuest (QuestInfo questInfo)
 Determines whether the specified questInfo is for the currently-selected quest. More...
 
void ClickClose (object data)
 Your GUI close button should call this. More...
 
virtual void ClickShowActiveQuests (object data)
 Your GUI "show active quests" button should call this. More...
 
virtual void ClickShowCompletedQuests (object data)
 Your GUI "show completed quests" button should call this. More...
 
virtual void ClickQuest (object data)
 Your GUI should call this when the player clicks on a quest to expand or close it. More...
 
virtual void ClickAbandonQuest (object data)
 Your GUI should call this when the player clicks to abandon a quest. More...
 
virtual void ClickTrackQuest (object data)
 Your GUI should call this when the player clicks to toggle quest tracking. More...
 
virtual void ClickShowActiveQuestsButton ()
 
void ClickShowCompletedQuestsButton ()
 
void ClickCloseButton ()
 
void ClickAbandonQuestButton ()
 
void ClickTrackQuestButton ()
 
void UpdateTracker ()
 

Public Attributes

dfGUIManager uiRoot
 The DF-GUI UI Root containing the quest log window. More...
 
dfPanel mainPanel
 The main quest log window panel. More...
 
dfButton activeQuestsButton
 The button that shows active quests when clicked. More...
 
dfButton completedQuestsButton
 The button that shows completed quests when clicked. More...
 
dfButton closeButton
 The close button. More...
 
dfScrollPanel scrollPanel
 The scroll panel that will contain the list of quests. More...
 
dfButton questHeadingTemplate
 The (optional) quest heading template. More...
 
dfLabel questDescriptionTemplate
 The (optional) quest description template. More...
 
dfLabel questEntryTemplate
 The (optional) quest entry template. More...
 
dfButton trackButtonTemplate
 The (optional) track button template. More...
 
dfButton abandonButtonTemplate
 The (optional) abandon button template. More...
 
dfControl abandonPopup
 The confirmation popup to use if the player clicks the abandon quest button. More...
 
dfLabel abandonQuestTitle
 The quest title label to set in the abandon quest dialog popup. More...
 
- Public Attributes inherited from PixelCrushers.DialogueSystem.QuestLogWindow
LocalizedTextTable localizedText = null
 
QuestHeadingSource questHeadingSource = QuestHeadingSource.Name
 The quest title source. More...
 
QuestState abandonQuestState = QuestState.Unassigned
 The state to assign abandoned quests. More...
 
bool pauseWhileOpen = true
 If true, the window sets Time.timeScale = 0 to pause the game while displaying the quest log window. More...
 
bool unlockCursorWhileOpen = true
 If true, the cursor is unlocked while the quest log window is open. More...
 
bool useGroups = false
 If true, organize the quests by group. More...
 

Additional Inherited Members

- Public Types inherited from PixelCrushers.DialogueSystem.QuestLogWindow
enum  QuestHeadingSource { QuestHeadingSource.Name, QuestHeadingSource.Description }
 
- Protected Member Functions inherited from PixelCrushers.DialogueSystem.QuestLogWindow
virtual void OnOpenedWindow ()
 
virtual void OnClosedWindow ()
 
virtual void PauseGameplay ()
 
virtual void ResumeGameplay ()
 
virtual void ShowQuests (QuestState questStateMask)
 
virtual QuestInfo GetQuestInfo (string group, string title)
 
virtual string GetNoQuestsMessage (QuestState questStateMask)
 Gets the "no quests" message for a quest state (active or success|failure). More...
 
virtual void OnConfirmAbandonQuest ()
 Your GUI should call this when the player confirms abandonment of a quest. More...
 
- Protected Attributes inherited from PixelCrushers.DialogueSystem.QuestLogWindow
QuestState currentQuestStateMask = QuestState.Active
 The current quest state mask. More...
 
- Properties inherited from PixelCrushers.DialogueSystem.QuestLogWindow
bool IsOpen [get, protected set]
 Indicates whether the quest log window is currently open. More...
 
QuestInfo[] Quests [get, protected set]
 The current list of quests. More...
 
string[] Groups [get, protected set]
 The current list of quest groups. More...
 
string SelectedQuest [get, protected set]
 The title of the currently-selected quest. More...
 
string NoQuestsMessage [get, protected set]
 The message to show if Quests[] is empty. More...
 
bool IsShowingActiveQuests [get]
 Indicates whether the window is showing active quests or completed quests. More...
 

Detailed Description

This is an implementation of the abstract QuestLogWindow class for Daikon Forge GUI.

Member Function Documentation

◆ ClickCancelAbandonQuestButton()

void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.ClickCancelAbandonQuestButton ( )

◆ ClickConfirmAbandonQuestButton()

void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.ClickConfirmAbandonQuestButton ( )

◆ CloseWindow()

override void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.CloseWindow ( Action  closedWindowHandler)
virtual

Close the window by hiding the main panel.

Re-enable the bark UI.

Parameters
closedWindowHandlerClosed window handler.

Reimplemented from PixelCrushers.DialogueSystem.QuestLogWindow.

◆ ConfirmAbandonQuest()

override void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.ConfirmAbandonQuest ( string  title,
Action  confirmAbandonQuestHandler 
)
virtual

Opens the abandon confirmation popup.

Parameters
titleTitle.
confirmAbandonQuestHandlerConfirm abandon quest handler.

Reimplemented from PixelCrushers.DialogueSystem.QuestLogWindow.

◆ OnQuestListUpdated()

override void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.OnQuestListUpdated ( )
virtual

Whenever the quest list is updated, repopulate the scroll panel.

Reimplemented from PixelCrushers.DialogueSystem.QuestLogWindow.

◆ OpenWindow()

override void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.OpenWindow ( Action  openedWindowHandler)
virtual

Open the window by showing the main panel.

The bark UI may conflict with the quest log window, so temporarily disable it.

Parameters
openedWindowHandlerOpened window handler.

Reimplemented from PixelCrushers.DialogueSystem.QuestLogWindow.

Member Data Documentation

◆ abandonButtonTemplate

dfButton PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.abandonButtonTemplate

The (optional) abandon button template.

Used only if the quest is abandonable. It should send dfClickAbandonQuest to the quest log window.

◆ abandonPopup

dfControl PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.abandonPopup

The confirmation popup to use if the player clicks the abandon quest button.

It should send ClickConfirmAbandonQuest if the player confirms, or dfClickCancelAbandonQuest if the player cancels.

◆ abandonQuestTitle

dfLabel PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.abandonQuestTitle

The quest title label to set in the abandon quest dialog popup.

◆ activeQuestsButton

dfButton PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.activeQuestsButton

The button that shows active quests when clicked.

If should send ClickShowActiveQuests to the quest log window.

◆ closeButton

dfButton PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.closeButton

The close button.

It should send ClickClose to the quest log window.

◆ completedQuestsButton

dfButton PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.completedQuestsButton

The button that shows completed quests when clicked.

It should send ClickShowCompletedQuests to the quest log window.

◆ mainPanel

dfPanel PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.mainPanel

The main quest log window panel.

◆ questDescriptionTemplate

dfLabel PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.questDescriptionTemplate

The (optional) quest description template.

◆ questEntryTemplate

dfLabel PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.questEntryTemplate

The (optional) quest entry template.

Used only if the quest has entries.

◆ questHeadingTemplate

dfButton PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.questHeadingTemplate

The (optional) quest heading template.

Quest headings are instantiated from this.

◆ scrollPanel

dfScrollPanel PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.scrollPanel

The scroll panel that will contain the list of quests.

◆ trackButtonTemplate

dfButton PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.trackButtonTemplate

The (optional) track button template.

Used only if the quest is trackable. It should send ClickTrackQuest to the quest log window.

◆ uiRoot

dfGUIManager PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeQuestLogWindow.uiRoot

The DF-GUI UI Root containing the quest log window.


The documentation for this class was generated from the following file: