Show / Hide Table of Contents

Class DaggerfallSpellBookWindow

Spellbook UI for both casting spells and purchasing spells from guilds.

Inheritance
Object
UserInterfaceWindow
DaggerfallBaseWindow
DaggerfallPopupWindow
DaggerfallSpellBookWindow
Implements
IUserInterfaceWindow
IMacroContextProvider
Inherited Members
DaggerfallPopupWindow.ScreenDimColor
DaggerfallPopupWindow.AllowCancel
DaggerfallPopupWindow.Cancelled
DaggerfallPopupWindow.PreviousWindow
DaggerfallPopupWindow.Draw()
DaggerfallPopupWindow.CancelWindow()
DaggerfallPopupWindow.OnCancel
DaggerfallBaseWindow.exitKey
DaggerfallBaseWindow.defaultToolTip
DaggerfallBaseWindow.allowFreeScaling
DaggerfallBaseWindow.DaggerfallUnity
DaggerfallBaseWindow.IsSetup
DaggerfallBaseWindow.NativePanel
UserInterfaceWindow.parentPanel
UserInterfaceWindow.uiManager
UserInterfaceWindow.enabled
UserInterfaceWindow.pauseWhileOpened
UserInterfaceWindow.focusControl
UserInterfaceWindow.Value
UserInterfaceWindow.Enabled
UserInterfaceWindow.ParentPanel
UserInterfaceWindow.FocusControl
UserInterfaceWindow.ProcessMessages()
UserInterfaceWindow.OnReturn()
UserInterfaceWindow.CloseWindow()
UserInterfaceWindow.PopWindow()
UserInterfaceWindow.PauseWhileOpen
UserInterfaceWindow.SetFocus(BaseScreenComponent)
UserInterfaceWindow.OnClose
UserInterfaceWindow.RaiseOnCloseHandler()
Namespace: DaggerfallWorkshop.Game.UserInterfaceWindows
Assembly: Assembly-CSharp.dll
Syntax
public class DaggerfallSpellBookWindow : DaggerfallPopupWindow, IUserInterfaceWindow, IMacroContextProvider

Constructors

| Improve this Doc View Source

DaggerfallSpellBookWindow(IUserInterfaceManager, DaggerfallBaseWindow, Boolean)

Declaration
public DaggerfallSpellBookWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null, bool buyMode = false)
Parameters
Type Name Description
IUserInterfaceManager uiManager
DaggerfallBaseWindow previous
Boolean buyMode

Fields

| Improve this Doc View Source

buildingDiscoveryData

Declaration
protected PlayerGPS.DiscoveredBuilding buildingDiscoveryData
Field Value
Type Description
PlayerGPS.DiscoveredBuilding
| Improve this Doc View Source

buyButton

Declaration
protected Button buyButton
Field Value
Type Description
Button
| Improve this Doc View Source

buyMode

Declaration
protected bool buyMode
Field Value
Type Description
Boolean
| Improve this Doc View Source

closeSpellBook

Declaration
protected const SoundClips closeSpellBook = SoundClips.PageTurn
Field Value
Type Description
SoundClips
| Improve this Doc View Source

deleteButton

Declaration
protected Button deleteButton
Field Value
Type Description
Button
| Improve this Doc View Source

deleteOrBuyButtonRect

Declaration
protected Rect deleteOrBuyButtonRect
Field Value
Type Description
Rect
| Improve this Doc View Source

deleteSpellIndex

Declaration
protected int deleteSpellIndex
Field Value
Type Description
Int32
| Improve this Doc View Source

downArrowButton

Declaration
protected Button downArrowButton
Field Value
Type Description
Button
| Improve this Doc View Source

downArrowButtonRect

Declaration
protected Rect downArrowButtonRect
Field Value
Type Description
Rect
| Improve this Doc View Source

downButton

Declaration
protected Button downButton
Field Value
Type Description
Button
| Improve this Doc View Source

downButtonRect

Declaration
protected Rect downButtonRect
Field Value
Type Description
Rect
| Improve this Doc View Source

editSpellBook

Declaration
protected const SoundClips editSpellBook = SoundClips.PageTurn
Field Value
Type Description
SoundClips
| Improve this Doc View Source

effect1PanelRect

Declaration
protected Rect effect1PanelRect
Field Value
Type Description
Rect
| Improve this Doc View Source

effect2PanelRect

Declaration
protected Rect effect2PanelRect
Field Value
Type Description
Rect
| Improve this Doc View Source

effect3PanelRect

Declaration
protected Rect effect3PanelRect
Field Value
Type Description
Rect
| Improve this Doc View Source

exitButton

Declaration
protected Button exitButton
Field Value
Type Description
Button
| Improve this Doc View Source

exitButtonRect

Declaration
protected Rect exitButtonRect
Field Value
Type Description
Rect
| Improve this Doc View Source

goldLabel

Declaration
protected TextLabel goldLabel
Field Value
Type Description
TextLabel
| Improve this Doc View Source

goldLabelPos

Declaration
protected Vector2 goldLabelPos
Field Value
Type Description
Vector2
| Improve this Doc View Source

iconPicker

Declaration
protected SpellIconPickerWindow iconPicker
Field Value
Type Description
SpellIconPickerWindow
| Improve this Doc View Source

isCloseWindowDeferred

Declaration
protected bool isCloseWindowDeferred
Field Value
Type Description
Boolean
| Improve this Doc View Source

mainPanel

Declaration
protected Panel mainPanel
Field Value
Type Description
Panel
| Improve this Doc View Source

mainPanelRect

Declaration
protected Rect mainPanelRect
Field Value
Type Description
Rect
| Improve this Doc View Source

noSpellBook

Declaration
protected const int noSpellBook = 1703
Field Value
Type Description
Int32
| Improve this Doc View Source

offeredSpells

Declaration
protected List<EffectBundleSettings> offeredSpells
Field Value
Type Description
List<EffectBundleSettings>
| Improve this Doc View Source

openSpellBook

Declaration
protected const SoundClips openSpellBook = SoundClips.OpenBook
Field Value
Type Description
SoundClips
| Improve this Doc View Source

openSpellBookBuyMode

Declaration
protected const SoundClips openSpellBookBuyMode = SoundClips.ButtonClick
Field Value
Type Description
SoundClips
| Improve this Doc View Source

presentedCost

Declaration
protected int presentedCost
Field Value
Type Description
Int32
| Improve this Doc View Source

renamedSpellSettings

Declaration
protected EffectBundleSettings renamedSpellSettings
Field Value
Type Description
EffectBundleSettings
| Improve this Doc View Source

sortButton

Declaration
protected Button sortButton
Field Value
Type Description
Button
| Improve this Doc View Source

sortButtonRect

Declaration
protected Rect sortButtonRect
Field Value
Type Description
Rect
| Improve this Doc View Source

spellBookBuyModeTextureFilename

Declaration
protected const string spellBookBuyModeTextureFilename = "SPBK01I0.IMG"
Field Value
Type Description
String
| Improve this Doc View Source

spellBookTextureFilename

Declaration
protected const string spellBookTextureFilename = "SPBK00I0.IMG"
Field Value
Type Description
String
| Improve this Doc View Source

spellCostLabel

Declaration
protected TextLabel spellCostLabel
Field Value
Type Description
TextLabel
| Improve this Doc View Source

spellCostLabelPos

Declaration
protected Vector2 spellCostLabelPos
Field Value
Type Description
Vector2
| Improve this Doc View Source

spellEffectLabels

Declaration
protected TextLabel[] spellEffectLabels
Field Value
Type Description
TextLabel[]
| Improve this Doc View Source

spellElementIconPanel

Declaration
protected Panel spellElementIconPanel
Field Value
Type Description
Panel
| Improve this Doc View Source

spellElementIconPanelRect

Declaration
protected Rect spellElementIconPanelRect
Field Value
Type Description
Rect
| Improve this Doc View Source

spellIconPanel

Declaration
protected Panel spellIconPanel
Field Value
Type Description
Panel
| Improve this Doc View Source

spellIconPanelRect

Declaration
protected Rect spellIconPanelRect
Field Value
Type Description
Rect
| Improve this Doc View Source

spellNameLabel

Declaration
protected TextLabel spellNameLabel
Field Value
Type Description
TextLabel
| Improve this Doc View Source

spellNameLabelPos

Declaration
protected Vector2 spellNameLabelPos
Field Value
Type Description
Vector2
| Improve this Doc View Source

spellPointsLabel

Declaration
protected TextLabel spellPointsLabel
Field Value
Type Description
TextLabel
| Improve this Doc View Source

spellPointsLabelPos

Declaration
protected Vector2 spellPointsLabelPos
Field Value
Type Description
Vector2
| Improve this Doc View Source

spellsFilename

Declaration
protected const string spellsFilename = "SPELLS.STD"
Field Value
Type Description
String
| Improve this Doc View Source

spellsListBox

Declaration
protected ListBox spellsListBox
Field Value
Type Description
ListBox
| Improve this Doc View Source

spellsListBoxRect

Declaration
protected Rect spellsListBoxRect
Field Value
Type Description
Rect
| Improve this Doc View Source

spellsListScrollBar

Declaration
protected VerticalScrollBar spellsListScrollBar
Field Value
Type Description
VerticalScrollBar
| Improve this Doc View Source

spellsListScrollBarRect

Declaration
protected Rect spellsListScrollBarRect
Field Value
Type Description
Rect
| Improve this Doc View Source

spellTargetIconPanel

Declaration
protected Panel spellTargetIconPanel
Field Value
Type Description
Panel
| Improve this Doc View Source

spellTargetPanelRect

Declaration
protected Rect spellTargetPanelRect
Field Value
Type Description
Rect
| Improve this Doc View Source

toggleClosedBinding

Declaration
protected KeyCode toggleClosedBinding
Field Value
Type Description
KeyCode
| Improve this Doc View Source

upArrowButton

Declaration
protected Button upArrowButton
Field Value
Type Description
Button
| Improve this Doc View Source

upArrowButtonRect

Declaration
protected Rect upArrowButtonRect
Field Value
Type Description
Rect
| Improve this Doc View Source

upButton

Declaration
protected Button upButton
Field Value
Type Description
Button
| Improve this Doc View Source

upButtonRect

Declaration
protected Rect upButtonRect
Field Value
Type Description
Rect

Methods

| Improve this Doc View Source

BuyButton_OnMouseClick(BaseScreenComponent, Vector2)

Declaration
protected virtual void BuyButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

ClearEffectLabels()

Declaration
protected virtual void ClearEffectLabels()
| Improve this Doc View Source

ConfirmTrade_OnButtonClick(DaggerfallMessageBox, DaggerfallMessageBox.MessageBoxButtons)

Declaration
protected virtual void ConfirmTrade_OnButtonClick(DaggerfallMessageBox sender, DaggerfallMessageBox.MessageBoxButtons messageBoxButton)
Parameters
Type Name Description
DaggerfallMessageBox sender
DaggerfallMessageBox.MessageBoxButtons messageBoxButton
| Improve this Doc View Source

DeleteButton_OnMouseClick(BaseScreenComponent, Vector2)

Declaration
protected virtual void DeleteButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

DeleteSpellConfirm_OnButtonClick(DaggerfallMessageBox, DaggerfallMessageBox.MessageBoxButtons)

Declaration
protected virtual void DeleteSpellConfirm_OnButtonClick(DaggerfallMessageBox sender, DaggerfallMessageBox.MessageBoxButtons messageBoxButton)
Parameters
Type Name Description
DaggerfallMessageBox sender
DaggerfallMessageBox.MessageBoxButtons messageBoxButton
| Improve this Doc View Source

DownArrowButton_OnMouseClick(BaseScreenComponent, Vector2)

Declaration
protected virtual void DownArrowButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

ExitButton_OnKeyboardEvent(BaseScreenComponent, Event)

Declaration
protected virtual void ExitButton_OnKeyboardEvent(BaseScreenComponent sender, Event keyboardEvent)
Parameters
Type Name Description
BaseScreenComponent sender
Event keyboardEvent
| Improve this Doc View Source

ExitButton_OnMouseClick(BaseScreenComponent, Vector2)

Declaration
protected virtual void ExitButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

GetEffectLabels(Int32)

Declaration
protected virtual TextLabel[] GetEffectLabels(int panelIndex)
Parameters
Type Name Description
Int32 panelIndex
Returns
Type Description
TextLabel[]
| Improve this Doc View Source

GetElementDescription(ElementTypes)

Declaration
protected virtual string GetElementDescription(ElementTypes elementType)
Parameters
Type Name Description
ElementTypes elementType
Returns
Type Description
String
| Improve this Doc View Source

GetMacroDataSource()

Declaration
public MacroDataSource GetMacroDataSource()
Returns
Type Description
MacroDataSource
| Improve this Doc View Source

GetSpellElementIcon(ElementTypes)

Declaration
protected virtual Texture2D GetSpellElementIcon(ElementTypes elementType)
Parameters
Type Name Description
ElementTypes elementType
Returns
Type Description
Texture2D
| Improve this Doc View Source

GetSpellIcon(SpellIcon)

Declaration
protected virtual Texture2D GetSpellIcon(SpellIcon icon)
Parameters
Type Name Description
SpellIcon icon
Returns
Type Description
Texture2D
| Improve this Doc View Source

GetSpellTargetIcon(TargetTypes)

Declaration
protected virtual Texture2D GetSpellTargetIcon(TargetTypes targetType)
Parameters
Type Name Description
TargetTypes targetType
Returns
Type Description
Texture2D
| Improve this Doc View Source

GetTargetTypeDescription(TargetTypes)

Declaration
protected virtual string GetTargetTypeDescription(TargetTypes targetType)
Parameters
Type Name Description
TargetTypes targetType
Returns
Type Description
String
| Improve this Doc View Source

GetTradePrice()

Declaration
protected virtual int GetTradePrice()
Returns
Type Description
Int32
| Improve this Doc View Source

IconPicker_OnClose()

Declaration
protected virtual void IconPicker_OnClose()
| Improve this Doc View Source

LoadSpellsForSale()

Declaration
protected virtual void LoadSpellsForSale()
| Improve this Doc View Source

LoadTextures()

Declaration
protected virtual void LoadTextures()
| Improve this Doc View Source

OnPop()

Declaration
public override void OnPop()
Overrides
UserInterfaceWindow.OnPop()
| Improve this Doc View Source

OnPush()

Declaration
public override void OnPush()
Overrides
UserInterfaceWindow.OnPush()
| Improve this Doc View Source

PopulateSpellsList(List<EffectBundleSettings>, Nullable<Int32>)

Declaration
protected virtual void PopulateSpellsList(List<EffectBundleSettings> spells, int? availableSpellPoints = null)
Parameters
Type Name Description
List<EffectBundleSettings> spells
Nullable<Int32> availableSpellPoints
| Improve this Doc View Source

RefreshSpellsList(Boolean)

Declaration
protected virtual void RefreshSpellsList(bool preservePosition)
Parameters
Type Name Description
Boolean preservePosition
| Improve this Doc View Source

RenameSpellPromptHandler(DaggerfallInputMessageBox, String)

Declaration
public void RenameSpellPromptHandler(DaggerfallInputMessageBox sender, string input)
Parameters
Type Name Description
DaggerfallInputMessageBox sender
String input
| Improve this Doc View Source

SetDefaults()

Declaration
protected virtual void SetDefaults()
| Improve this Doc View Source

SetEffectLabels(String, Int32)

Declaration
protected virtual void SetEffectLabels(string key, int effectIndex)
Parameters
Type Name Description
String key
Int32 effectIndex
| Improve this Doc View Source

Setup()

Declaration
protected override void Setup()
Overrides
DaggerfallPopupWindow.Setup()
| Improve this Doc View Source

SetupButtons()

Declaration
protected virtual void SetupButtons()
| Improve this Doc View Source

SetupIcons()

Declaration
protected virtual void SetupIcons()
| Improve this Doc View Source

SetupLabels()

Declaration
protected virtual void SetupLabels()
| Improve this Doc View Source

SetupMain()

Declaration
protected virtual void SetupMain()
| Improve this Doc View Source

ShowEffectPopup(IEntityEffect)

Declaration
protected virtual void ShowEffectPopup(IEntityEffect effect)
Parameters
Type Name Description
IEntityEffect effect
| Improve this Doc View Source

ShowIcons(Boolean)

Declaration
protected virtual void ShowIcons(bool show)
Parameters
Type Name Description
Boolean show
| Improve this Doc View Source

SortButton_OnMouseClick(BaseScreenComponent, Vector2)

Declaration
public void SortButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

SortSpellsConfirm_OnButtonClick(DaggerfallMessageBox, DaggerfallMessageBox.MessageBoxButtons)

Declaration
protected virtual void SortSpellsConfirm_OnButtonClick(DaggerfallMessageBox sender, DaggerfallMessageBox.MessageBoxButtons messageBoxButton)
Parameters
Type Name Description
DaggerfallMessageBox sender
DaggerfallMessageBox.MessageBoxButtons messageBoxButton
| Improve this Doc View Source

SpellEffectPanelClick(BaseScreenComponent, Vector2)

Declaration
protected virtual void SpellEffectPanelClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

SpellIconPanel_OnMouseClick(BaseScreenComponent, Vector2)

Declaration
protected virtual void SpellIconPanel_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

SpellNameLabel_OnMouseClick(BaseScreenComponent, Vector2)

Declaration
public void SpellNameLabel_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

SpellsListBox_OnMouseScroll(BaseScreenComponent)

Declaration
protected virtual void SpellsListBox_OnMouseScroll(BaseScreenComponent sender)
Parameters
Type Name Description
BaseScreenComponent sender
| Improve this Doc View Source

SpellsListBox_OnSelectItem()

Declaration
protected virtual void SpellsListBox_OnSelectItem()
| Improve this Doc View Source

SpellsListBox_OnUseSelectedItem()

Declaration
protected virtual void SpellsListBox_OnUseSelectedItem()
| Improve this Doc View Source

SpellsListScrollBar_OnScroll()

Declaration
protected virtual void SpellsListScrollBar_OnScroll()
| Improve this Doc View Source

SwapButton_OnMouseClick(BaseScreenComponent, Vector2)

Declaration
protected virtual void SwapButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

UpArrowButton_OnMouseClick(BaseScreenComponent, Vector2)

Declaration
protected virtual void UpArrowButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
Type Name Description
BaseScreenComponent sender
Vector2 position
| Improve this Doc View Source

Update()

Declaration
public override void Update()
Overrides
DaggerfallPopupWindow.Update()
| Improve this Doc View Source

UpdateGold()

Declaration
protected virtual void UpdateGold()
| Improve this Doc View Source

UpdateSelection()

Declaration
protected virtual void UpdateSelection()

Implements

IUserInterfaceWindow
IMacroContextProvider
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX