diff GUI/UI/UIBooks.h @ 2548:87e5590d034b

All Books windows are refactored into respective classes
author a.parshin
date Tue, 12 May 2015 03:24:19 +0200
parents 0ff6a9e9bf7f
children 3121fb54a110
line wrap: on
line diff
--- a/GUI/UI/UIBooks.h	Tue May 12 01:45:31 2015 +0200
+++ b/GUI/UI/UIBooks.h	Tue May 12 03:24:19 2015 +0200
@@ -1,12 +1,19 @@
 #pragma once
+#include "GUI/GUIWindow.h"
 
+extern std::array<std::array<unsigned char, 12>, 9> pSpellbookSpellIndices; // 4E2430   from pSpellbookSpellIndices[9][12]
 
 
-extern std::array<__int16, 6> pTownPortalBook_xs;
-extern std::array<__int16, 6> pTownPortalBook_ys;
+struct GUIWindow_Book : public GUIWindow
+{
+             GUIWindow_Book();
+    virtual ~GUIWindow_Book() {}
+
+    virtual void Release();
 
-extern std::array<std::array<unsigned char, 12>, 9> pSpellbookSpellIndices; // 4E2430   from pSpellbookSpellIndices[9][12]
-extern std::array<unsigned int, 5> pLloydsBeaconsPreviewXs; // 004E249C
-extern std::array<unsigned int, 5> pLloydsBeaconsPreviewYs;
-extern std::array<unsigned int, 5> pLloydsBeacons_SomeXs;
-extern std::array<unsigned int, 5> pLloydsBeacons_SomeYs; // idb
\ No newline at end of file
+    protected:
+        void BasicBookInitialization();
+
+    private:
+        void InitializeFonts();
+};
\ No newline at end of file