├── .gitignore ├── ChildFrm.cpp ├── ChildFrm.h ├── ChildFrmFix.cpp ├── ChildFrmFix.h ├── ChildFrmScript.cpp ├── ChildFrmScript.h ├── ColorStatic.cpp ├── ColorStatic.h ├── DevIL.dll ├── ErrorBar.cpp ├── ErrorBar.h ├── ILU.dll ├── ILUT.dll ├── LICENSE ├── MainFrm.cpp ├── MainFrm.h ├── ReadMe.txt ├── SRBatchEditDlg.h ├── SkyEdit.sln ├── SrBatchEditDlg.cpp ├── SrCobjView.cpp ├── SrCobjView.h ├── SrConditionDlg.cpp ├── SrConditionDlg.h ├── SrErrorDlg.cpp ├── SrErrorDlg.h ├── SrFileTreeDlg.cpp ├── SrFileTreeDlg.h ├── SrFindBinaryDlg.cpp ├── SrFindBinaryDlg.h ├── SrFindDlg.cpp ├── SrFindDlg.h ├── SrFunctionDlg.cpp ├── SrFunctionDlg.h ├── SrGlobView.cpp ├── SrGlobView.h ├── SrGmstView.cpp ├── SrGmstView.h ├── SrImageCtrl.cpp ├── SrImageCtrl.h ├── SrInputDialog.cpp ├── SrInputDialog.h ├── SrKywdView.cpp ├── SrKywdView.h ├── SrLoadDlg.cpp ├── SrLoadDlg.h ├── SrLvlEditDlg.h ├── SrLvlListInfo.cpp ├── SrLvlListInfo.h ├── SrMgefView.cpp ├── SrMgefView.h ├── SrPromptDlg.cpp ├── SrPromptDlg.h ├── SrSelectRecordDlg.cpp ├── SrSelectRecordDlg.h ├── SrWeapView.cpp ├── SrWeapView.h ├── Srbatchlistctrl.cpp ├── Srbatchlistctrl.h ├── SreditView.cpp ├── SreditView.h ├── Srprogressdlg.h ├── Srresourceview.h ├── StdAfx.cpp ├── StdAfx.h ├── UndoBar.cpp ├── UndoBar.h ├── aboutdlg.cpp ├── aboutdlg.h ├── arrowcop.cur ├── devil ├── include │ └── IL │ │ ├── config.h │ │ ├── config.h.win │ │ ├── devil_internal_exports.h │ │ ├── il.h │ │ ├── ilu.h │ │ ├── ilu_region.h │ │ └── ilut.h └── lib │ ├── DevIL.dll │ ├── DevIL.exp │ ├── DevIL.lib │ ├── ILU.dll │ ├── ILU.exp │ ├── ILU.lib │ ├── ILUT.dll │ ├── ILUT.exp │ └── ILUT.lib ├── dialogs ├── SrActiView.cpp ├── SrActiView.h ├── SrAlchView.cpp ├── SrAlchView.h ├── SrAmmoView.cpp ├── SrAmmoView.h ├── SrArmaView.cpp ├── SrArmaView.h ├── SrArmoView.cpp ├── SrArmoView.h ├── SrAvifView.cpp ├── SrAvifView.h ├── SrBodyPartsListDlg.cpp ├── SrBodyPartsListDlg.h ├── SrBookView.cpp ├── SrBookView.h ├── SrBoundsDlg.cpp ├── SrBoundsDlg.h ├── SrCamsView.cpp ├── SrCamsView.h ├── SrClasView.cpp ├── SrClasView.h ├── SrClfmView.cpp ├── SrClfmView.h ├── SrContItemDlg.cpp ├── SrContItemDlg.h ├── SrContView.cpp ├── SrContView.h ├── SrEcznView.cpp ├── SrEcznView.h ├── SrEditFlagsDlg.cpp ├── SrEditFlagsDlg.h ├── SrEnchView.cpp ├── SrEnchView.h ├── SrFlstView.cpp ├── SrFlstView.h ├── SrFunctionParamDlg.cpp ├── SrFunctionParamDlg.h ├── SrIngrView.cpp ├── SrIngrView.h ├── SrLighView.cpp ├── SrLighView.h ├── SrLvlEditDlg.cpp ├── SrLvlEditDlg.h ├── SrLvliView.cpp ├── SrLvliView.h ├── SrLvlnView.cpp ├── SrLvlnView.h ├── SrLvspView.cpp ├── SrLvspView.h ├── SrMgefSnddEditDlg.cpp ├── SrMgefSnddEditDlg.h ├── SrMiscView.cpp ├── SrMiscView.h ├── SrNewScriptPropertyDlg.cpp ├── SrNewScriptPropertyDlg.h ├── SrOtftView.cpp ├── SrOtftView.h ├── SrPerkView.cpp ├── SrPerkView.h ├── SrRacePageAttack.cpp ├── SrRacePageAttack.h ├── SrRacePageBasic.cpp ├── SrRacePageBasic.h ├── SrRacePageFace.cpp ├── SrRacePageFace.h ├── SrRacePageHead1.cpp ├── SrRacePageHead1.h ├── SrRacePageModel.cpp ├── SrRacePageModel.h ├── SrRacePageMove.cpp ├── SrRacePageMove.h ├── SrRacePageTint.cpp ├── SrRacePageTint.h ├── SrRacePageUnknown.cpp ├── SrRacePageUnknown.h ├── SrRaceView.cpp ├── SrRaceView.h ├── SrRawDataDlg.cpp ├── SrRawDataDlg.h ├── SrScriptErrorView.cpp ├── SrScriptErrorView.h ├── SrScriptPropertyDlg.cpp ├── SrScriptPropertyDlg.h ├── SrScriptTextCtrl.cpp ├── SrScriptTextCtrl.h ├── SrScriptView.cpp ├── SrScriptView.h ├── SrScrlView.cpp ├── SrScrlView.h ├── SrSelectScriptDlg.cpp ├── SrSelectScriptDlg.h ├── SrShouView.cpp ├── SrShouView.h ├── SrSlgmView.cpp ├── SrSnctView.cpp ├── SrSnctView.h ├── SrSndrView.cpp ├── SrSndrView.h ├── SrSopmEditDlg.cpp ├── SrSopmEditDlg.h ├── SrSopmView.cpp ├── SrSopmView.h ├── SrSounView.cpp ├── SrSounView.h ├── SrSpelView.cpp ├── SrSpelView.h ├── SrStatView.cpp ├── SrStatView.h ├── SrWoopView.cpp ├── SrWoopView.h ├── Sreditdlghandler.cpp ├── Srrecorddialog.cpp ├── Srrecorddialog.h ├── sreditdlghandler.h └── srslgmview.h ├── displayfilters.dat ├── nodrop.cur ├── res ├── Toolbar.bmp ├── armor.ico ├── cursor1.cur ├── file.bmp ├── find_dlg.ico ├── folder.bmp ├── ico00001.ico ├── icon1.ico ├── idr_main.ico ├── resourceview.ico ├── skyedit.ico ├── skyedit.rc2 └── skyeditDoc.ico ├── resource.h ├── skyedit.ini ├── skyedit.rc ├── skyedit.vcxproj ├── skyedit.vcxproj.filters ├── sredit.cpp ├── sredit.h ├── sreditDoc.cpp ├── sreditDoc.h ├── srprogressdlg.cpp ├── srresourceview.cpp ├── todo.txt └── zlib1.dll /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.exe 6 | *.o 7 | *.so 8 | 9 | # Packages # 10 | ############ 11 | # it's better to unpack these files and commit the raw source 12 | # git has its own built in compression methods 13 | *.7z 14 | *.dmg 15 | *.gz 16 | *.iso 17 | *.jar 18 | *.rar 19 | *.tar 20 | *.zip 21 | 22 | # Logs and databases # 23 | ###################### 24 | *.log 25 | *.sql 26 | *.sqlite 27 | 28 | #OS junk files 29 | ehthumbs.db 30 | [Tt]humbs.db 31 | *.DS_Store 32 | 33 | #Visual Studio files 34 | *.[Oo]bj 35 | *.exe 36 | *.pdb 37 | *.user 38 | *.aps 39 | *.pch 40 | *.vspscc 41 | *.vssscc 42 | *_i.c 43 | *_p.c 44 | *.ncb 45 | *.suo 46 | *.tlb 47 | *.tlh 48 | *.bak 49 | *.[Cc]ache 50 | *.ilk 51 | *.log 52 | *.sbr 53 | *.sdf 54 | ipch/ 55 | obj/ 56 | [Bb]in 57 | [Dd]ebug*/ 58 | [Rr]elease*/ 59 | Ankh.NoLoad 60 | *.opensdf 61 | 62 | #InstallShield 63 | [Ss]ingle[Ii]mage/ 64 | [Dd][Vv][Dd]-5/ 65 | [Ii]nterm/ 66 | 67 | #Tooling 68 | _ReSharper*/ 69 | *.resharper 70 | [Tt]est[Rr]esult* 71 | 72 | #Project files 73 | [Bb]uild/ 74 | 75 | #Subversion files 76 | .svn 77 | 78 | # Office Temp Files 79 | ~$* 80 | 81 | tmpfiles/ -------------------------------------------------------------------------------- /ChildFrm.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: ChildFrm.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 November 2011 6 | * 7 | * Definition of the CChildFrame class. 8 | * 9 | *=========================================================================*/ 10 | #ifndef __ChildFrm_H 11 | #define __ChildFrm_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | /*=========================================================================== 20 | * End of Required Includes 21 | *=========================================================================*/ 22 | 23 | 24 | /*=========================================================================== 25 | * 26 | * Class CChildFrame Definition 27 | * 28 | *=========================================================================*/ 29 | class CChildFrame : public CMDIChildWnd { 30 | DECLARE_DYNCREATE(CChildFrame) 31 | 32 | /*---------- Begin Protected Class Members --------------------*/ 33 | protected: 34 | bool m_IsFakeMaximized; 35 | CRect m_RestoreRect; 36 | 37 | 38 | /*---------- Begin Protected Class Methods --------------------*/ 39 | protected: 40 | 41 | 42 | /*---------- Begin Public Class Methods -----------------------*/ 43 | public: 44 | 45 | /* Class constructor/destructor */ 46 | CChildFrame(); 47 | virtual ~CChildFrame(); 48 | 49 | void FakeMaximize (void); 50 | 51 | /* Diagnostics routines */ 52 | #ifdef _DEBUG 53 | virtual void AssertValid () const; 54 | virtual void Dump (CDumpContext& dc) const; 55 | #endif 56 | 57 | 58 | /* ClassWizard generated virtual function overrides */ 59 | //{{AFX_VIRTUAL(CChildFrame) 60 | public: 61 | virtual BOOL PreCreateWindow (CREATESTRUCT& cs); 62 | virtual BOOL PreTranslateMessage(MSG* pMsg); 63 | //}}AFX_VIRTUAL 64 | 65 | 66 | /*---------- Generated message map functions ------------------*/ 67 | protected: 68 | //{{AFX_MSG(CChildFrame) 69 | afx_msg void OnSize (UINT nType, int cx, int cy); 70 | afx_msg void OnWindowPosChanging (WINDOWPOS* pPos); 71 | afx_msg void OnSysCommand (UINT nID, LPARAM Param); 72 | //}}AFX_MSG 73 | 74 | DECLARE_MESSAGE_MAP() 75 | 76 | }; 77 | /*=========================================================================== 78 | * End of Class CSrEditView Definition 79 | *=========================================================================*/ 80 | 81 | 82 | //{{AFX_INSERT_LOCATION}} 83 | //}}AFX_INSERT_LOCATION 84 | 85 | 86 | #endif 87 | /*=========================================================================== 88 | * End of File ChildFrm.H 89 | *=========================================================================*/ 90 | -------------------------------------------------------------------------------- /ChildFrmFix.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: ChildFrmFix.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 November 2011 6 | * 7 | * Definition of the CChildFrameFix class. 8 | * 9 | *=========================================================================*/ 10 | #ifndef __ChildFrmFix_H 11 | #define __ChildFrmFix_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | /*=========================================================================== 20 | * End of Required Includes 21 | *=========================================================================*/ 22 | 23 | 24 | /*=========================================================================== 25 | * 26 | * Class CChildFrameFix Definition 27 | * 28 | *=========================================================================*/ 29 | class CChildFrameFix : public CMDIChildWnd { 30 | DECLARE_DYNCREATE(CChildFrameFix) 31 | 32 | 33 | /*---------- Begin Private Class Members ----------------------*/ 34 | private: 35 | 36 | /*---------- Begin Protected Class Methods --------------------*/ 37 | protected: 38 | 39 | 40 | /*---------- Begin Public Class Methods -----------------------*/ 41 | public: 42 | 43 | /* Class constructor/destructor */ 44 | CChildFrameFix(); 45 | virtual ~CChildFrameFix(); 46 | 47 | /* Diagnostics routines */ 48 | #ifdef _DEBUG 49 | virtual void AssertValid () const; 50 | virtual void Dump (CDumpContext& dc) const; 51 | #endif 52 | 53 | 54 | /* ClassWizard generated virtual function overrides */ 55 | //{{AFX_VIRTUAL(CChildFrameFix) 56 | virtual BOOL PreCreateWindow (CREATESTRUCT& cs); 57 | //}}AFX_VIRTUAL 58 | 59 | 60 | /*---------- Generated message map functions ------------------*/ 61 | protected: 62 | //{{AFX_MSG(CChildFrameFix) 63 | afx_msg void OnClose (void); 64 | afx_msg void OnSize (UINT nType, int cx, int cy); 65 | //}}AFX_MSG 66 | 67 | 68 | DECLARE_MESSAGE_MAP() 69 | 70 | }; 71 | /*=========================================================================== 72 | * End of Class CSrEditView Definition 73 | *=========================================================================*/ 74 | 75 | 76 | //{{AFX_INSERT_LOCATION}} 77 | //}}AFX_INSERT_LOCATION 78 | 79 | 80 | #endif 81 | /*=========================================================================== 82 | * End of File ChildFrmFix.H 83 | *=========================================================================*/ 84 | -------------------------------------------------------------------------------- /ChildFrmScript.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: ChildFrmScript.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 28 January 2012 6 | * 7 | * Definition of the CChildFrameScript class. 8 | * 9 | *=========================================================================*/ 10 | #ifndef __CHILDFRAMESCRIPT_H 11 | #define __CHILDFRAMESCRIPT_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | /*=========================================================================== 20 | * End of Required Includes 21 | *=========================================================================*/ 22 | 23 | 24 | /*=========================================================================== 25 | * 26 | * Begin Type Definitions 27 | * 28 | *=========================================================================*/ 29 | 30 | /* Forward class definitions */ 31 | class CSrScriptView; 32 | class CSrScriptErrorView; 33 | 34 | /*=========================================================================== 35 | * End of Type Definitions 36 | *=========================================================================*/ 37 | 38 | 39 | /*=========================================================================== 40 | * 41 | * Class CChildFrameScript Definition 42 | * 43 | *=========================================================================*/ 44 | class CChildFrameScript : public CMDIChildWnd 45 | { 46 | DECLARE_DYNCREATE(CChildFrameScript) 47 | 48 | /*---------- Begin Protected Class Members --------------------*/ 49 | protected: 50 | bool m_IsFakeMaximized; 51 | bool m_IsInitialized; 52 | CRect m_RestoreRect; 53 | 54 | CSplitterWndEx m_Splitter; 55 | 56 | CSrScriptView* m_pScriptView; 57 | CSrScriptErrorView* m_pErrorView; 58 | 59 | 60 | /*---------- Begin Protected Class Methods --------------------*/ 61 | protected: 62 | 63 | 64 | /*---------- Begin Public Class Methods -----------------------*/ 65 | public: 66 | 67 | /* Class constructor/destructor */ 68 | CChildFrameScript(); 69 | virtual ~CChildFrameScript(); 70 | 71 | /* Get class members */ 72 | CSrScriptView* GetScriptView (void) { return (m_pScriptView); } 73 | CSrScriptErrorView* GetErrorView (void) { return (m_pErrorView); } 74 | 75 | void FakeMaximize (void); 76 | 77 | virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); 78 | 79 | /* Diagnostics routines */ 80 | #ifdef _DEBUG 81 | virtual void AssertValid () const; 82 | virtual void Dump (CDumpContext& dc) const; 83 | #endif 84 | 85 | public: 86 | virtual BOOL PreCreateWindow (CREATESTRUCT& cs); 87 | virtual BOOL PreTranslateMessage(MSG* pMsg); 88 | 89 | 90 | /*---------- Generated message map functions ------------------*/ 91 | protected: 92 | afx_msg void OnSize (UINT nType, int cx, int cy); 93 | afx_msg void OnWindowPosChanging (WINDOWPOS* pPos); 94 | afx_msg void OnSysCommand (UINT nID, LPARAM Param); 95 | 96 | DECLARE_MESSAGE_MAP() 97 | 98 | }; 99 | /*=========================================================================== 100 | * End of Class CChildFrameScript Definition 101 | *=========================================================================*/ 102 | 103 | 104 | #endif 105 | /*=========================================================================== 106 | * End of File ChildFrmScript.H 107 | *=========================================================================*/ 108 | -------------------------------------------------------------------------------- /ColorStatic.cpp: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Colorstatic.CPP 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 November 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | 11 | /* Include Files */ 12 | #include "stdafx.h" 13 | #include "sredit.h" 14 | #include "ColorStatic.h" 15 | 16 | 17 | /*=========================================================================== 18 | * 19 | * Begin Local Definitions 20 | * 21 | *=========================================================================*/ 22 | #ifdef _DEBUG 23 | #define new DEBUG_NEW 24 | #undef THIS_FILE 25 | static char THIS_FILE[] = __FILE__; 26 | #endif 27 | 28 | /*=========================================================================== 29 | * End of Local Definitions 30 | *=========================================================================*/ 31 | 32 | 33 | /*=========================================================================== 34 | * 35 | * Begin CColorStatic Message Map 36 | * 37 | *=========================================================================*/ 38 | BEGIN_MESSAGE_MAP(CColorStatic, CStatic) 39 | //{{AFX_MSG_MAP(CColorStatic) 40 | ON_WM_PAINT() 41 | //}}AFX_MSG_MAP 42 | END_MESSAGE_MAP() 43 | /*=========================================================================== 44 | * End of CColorStatic Message Map 45 | *=========================================================================*/ 46 | 47 | 48 | /*=========================================================================== 49 | * 50 | * Class CColorStatic Constructor 51 | * 52 | *=========================================================================*/ 53 | CColorStatic::CColorStatic() { 54 | m_Color = 0; 55 | m_Red = 0; 56 | m_Green = 0; 57 | m_Blue = 0; 58 | } 59 | /*=========================================================================== 60 | * End of Class CColorStatic Constructor 61 | *=========================================================================*/ 62 | 63 | 64 | /*=========================================================================== 65 | * 66 | * Class CColorStatic Destructor 67 | * 68 | *=========================================================================*/ 69 | CColorStatic::~CColorStatic() { 70 | } 71 | /*=========================================================================== 72 | * End of Class CColorStatic Destructor 73 | *=========================================================================*/ 74 | 75 | 76 | /*=========================================================================== 77 | * 78 | * Class CColorStatic Event - void OnPaint (); 79 | * 80 | *=========================================================================*/ 81 | void CColorStatic::OnPaint() { 82 | CPaintDC DC(this); 83 | CRect ClientRect; 84 | 85 | GetClientRect(&ClientRect); 86 | DC.FillSolidRect(ClientRect, m_Color); 87 | } 88 | /*=========================================================================== 89 | * End of Class Event CColorStatic::OnPaint() 90 | *=========================================================================*/ 91 | -------------------------------------------------------------------------------- /ColorStatic.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Colorstatic.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: February 16, 2003 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __COLORSTATIC_H 11 | #define __COLORSTATIC_H 12 | 13 | 14 | 15 | /*=========================================================================== 16 | * 17 | * Begin Class CColorStatic Definition 18 | * 19 | *=========================================================================*/ 20 | class CColorStatic : public CStatic { 21 | 22 | public: 23 | COLORREF m_Color; 24 | int m_Red; 25 | int m_Green; 26 | int m_Blue; 27 | 28 | /* Construction */ 29 | CColorStatic(); 30 | virtual ~CColorStatic(); 31 | 32 | void SetColor (int Red, int Green, int Blue) { 33 | m_Red = Red; m_Green = Green; m_Blue = Blue; 34 | m_Color = RGB(m_Red, m_Green, m_Blue); 35 | } 36 | 37 | void SetColor (const long ColorRef) { 38 | m_Red = GetRValue(ColorRef); m_Green = GetGValue(ColorRef); m_Blue = GetBValue(ColorRef); 39 | m_Color = ColorRef; 40 | } 41 | 42 | /* ClassWizard generated virtual function overrides */ 43 | //{{AFX_VIRTUAL(CColorStatic) 44 | //}}AFX_VIRTUAL 45 | 46 | /* Generated message map functions */ 47 | protected: 48 | //{{AFX_MSG(CColorStatic) 49 | afx_msg void OnPaint(); 50 | //}}AFX_MSG 51 | 52 | DECLARE_MESSAGE_MAP(); 53 | 54 | }; 55 | /*=========================================================================== 56 | * End of Class CColorStatic Definition 57 | *=========================================================================*/ 58 | 59 | 60 | //{{AFX_INSERT_LOCATION}} 61 | //}}AFX_INSERT_LOCATION 62 | 63 | 64 | #endif 65 | /*=========================================================================== 66 | * End of File Colorstatic.H 67 | *=========================================================================*/ 68 | -------------------------------------------------------------------------------- /DevIL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/DevIL.dll -------------------------------------------------------------------------------- /ErrorBar.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Errorbar.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: September 10, 2006 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __ERRORBAR_H 11 | #define __ERRORBAR_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | /*=========================================================================== 20 | * End of Required Includes 21 | *=========================================================================*/ 22 | 23 | 24 | /*=========================================================================== 25 | * 26 | * Begin Class CSrErrorBar Definition 27 | * 28 | *=========================================================================*/ 29 | class CSrErrorBar : public CSizingControlBarCF { 30 | 31 | /*---------- Protected Class Members -----------------------*/ 32 | protected: 33 | CRichEditCtrl m_wndChild; 34 | CFont m_font; 35 | CHARFORMAT m_BoldFormat; 36 | CHARFORMAT m_DefaultFormat; 37 | 38 | HACCEL m_hAccelerator; 39 | 40 | 41 | /*---------- Public Class Members --------------------------*/ 42 | public: 43 | 44 | /* Constructor/Destructor */ 45 | CSrErrorBar(); 46 | virtual ~CSrErrorBar(); 47 | 48 | /* Add a line of text to the end of the error bar */ 49 | void AddText (const TCHAR* pString); 50 | void AddBoldText (const TCHAR* pString); 51 | 52 | CRichEditCtrl& GetRichEdit (void) { return m_wndChild; } 53 | 54 | protected: 55 | 56 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 57 | afx_msg void OnUpdateErrorbarCopy(CCmdUI *pCmdUI); 58 | afx_msg void OnErrorbarCopy(); 59 | afx_msg void OnContextMenu(CWnd* pWnd, CPoint Point); 60 | virtual BOOL PreTranslateMessage(MSG* pMsg); 61 | afx_msg void OnErrorCopy(); 62 | afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); 63 | 64 | DECLARE_MESSAGE_MAP(); 65 | 66 | }; 67 | /*=========================================================================== 68 | * End of Class CSrErrorBar Definition 69 | *=========================================================================*/ 70 | 71 | 72 | #endif 73 | /*=========================================================================== 74 | * End of File Errorbar.H 75 | *=========================================================================*/ 76 | -------------------------------------------------------------------------------- /ILU.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/ILU.dll -------------------------------------------------------------------------------- /ILUT.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/ILUT.dll -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Dave Humphrey 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /MainFrm.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: MainFrm.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 November 2011 6 | * 7 | * Defines the interface of the CMainFrame class. 8 | * 9 | *=========================================================================*/ 10 | #ifndef __MainFrm_H 11 | #define __MainFrm_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "errorbar.h" 20 | #include "undobar.h" 21 | #include "sreditdoc.h" 22 | /*=========================================================================== 23 | * End of Required Includes 24 | *=========================================================================*/ 25 | 26 | 27 | /*=========================================================================== 28 | * 29 | * Begin Definitions 30 | * 31 | *=========================================================================*/ 32 | 33 | /* Custom messages */ 34 | #define SRE_MSG_UPDATEUNDO (WM_APP + 209) 35 | #define SRE_MSG_UNDOITEMS (WM_APP + 210) 36 | #define SRE_MSG_LOCKUNDO (WM_APP + 211) 37 | 38 | /*=========================================================================== 39 | * End of Definitions 40 | *=========================================================================*/ 41 | 42 | 43 | /*=========================================================================== 44 | * 45 | * Class CMainFrame Definition 46 | * 47 | *=========================================================================*/ 48 | class CMainFrame : public CMDIFrameWnd { 49 | DECLARE_DYNAMIC(CMainFrame) 50 | public: 51 | CMainFrame(); 52 | 53 | /*---------- Begin Protected Class Members ----------------------*/ 54 | protected: 55 | CStatusBar m_wndStatusBar; 56 | CToolBar m_wndToolBar; 57 | CSrErrorBar m_wndErrorBar; 58 | CSrUndoBar m_wndUndoBar; 59 | 60 | 61 | /*---------- Begin Public Class Methods ------------------------*/ 62 | public: 63 | 64 | /* Destructor */ 65 | virtual ~CMainFrame(); 66 | 67 | CView* GetActiveMainView (void); 68 | CSrEditDoc* GetActiveSrEditDoc (void); 69 | 70 | 71 | /* Diagnostics */ 72 | #ifdef _DEBUG 73 | virtual void AssertValid() const; 74 | virtual void Dump(CDumpContext& dc) const; 75 | #endif 76 | 77 | virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 78 | 79 | protected: 80 | 81 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 82 | afx_msg void OnDestroy(); 83 | afx_msg void OnViewErrorBar(); 84 | afx_msg void OnUpdateViewErrorBar(CCmdUI* pCmdUI); 85 | afx_msg void OnViewUndobar(); 86 | afx_msg void OnUpdateViewUndobar(CCmdUI* pCmdUI); 87 | afx_msg LRESULT OnUpdateUndo (WPARAM wParam, LPARAM lParam); 88 | afx_msg LRESULT OnUndoItems (WPARAM wParam, LPARAM lParam); 89 | afx_msg LRESULT OnUndoLock (WPARAM wParam, LPARAM lParam); 90 | afx_msg LRESULT OnMdiMaximize (WPARAM wParam, LPARAM lParam); 91 | afx_msg void OnHelp (void); 92 | afx_msg void OnViewResourceviewer(); 93 | afx_msg void OnHelpUespwiki(); 94 | afx_msg void OnHelpCswiki(); 95 | afx_msg void OnViewResetlists(); 96 | afx_msg void OnViewScripts(); 97 | 98 | DECLARE_MESSAGE_MAP(); 99 | 100 | public: 101 | 102 | }; 103 | /*=========================================================================== 104 | * End of Class CMainFrame Definition 105 | *=========================================================================*/ 106 | 107 | 108 | #endif 109 | /*=========================================================================== 110 | * End of File MainFrm.H 111 | *=========================================================================*/ 112 | -------------------------------------------------------------------------------- /SkyEdit.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SkyEdit", "skyedit.vcxproj", "{33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Debug|x64 = Debug|x64 10 | Release|Win32 = Release|Win32 11 | Release|x64 = Release|x64 12 | Release64|Win32 = Release64|Win32 13 | Release64|x64 = Release64|x64 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Debug|Win32.Build.0 = Debug|Win32 18 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Debug|x64.ActiveCfg = Debug|Win32 19 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Debug|x64.Build.0 = Debug|Win32 20 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Release|Win32.ActiveCfg = Release|Win32 21 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Release|Win32.Build.0 = Release|Win32 22 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Release|x64.ActiveCfg = Release|Win32 23 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Release|x64.Build.0 = Release|Win32 24 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Release64|Win32.ActiveCfg = Release64|Win32 25 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Release64|Win32.Build.0 = Release64|Win32 26 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Release64|x64.ActiveCfg = Release64|x64 27 | {33010DD5-4C8B-AE0E-6D85-5BB547DFD9EE}.Release64|x64.Build.0 = Release64|x64 28 | EndGlobalSection 29 | GlobalSection(SolutionProperties) = preSolution 30 | HideSolutionNode = FALSE 31 | EndGlobalSection 32 | EndGlobal 33 | -------------------------------------------------------------------------------- /SrErrorDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Oberrordlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: July 31, 2006 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __OBERRORDLG_H 11 | #define __OBERRORDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | /*=========================================================================== 20 | * End of Required Includes 21 | *=========================================================================*/ 22 | 23 | 24 | /*=========================================================================== 25 | * 26 | * Begin Definitions 27 | * 28 | *=========================================================================*/ 29 | 30 | /* Error dialog flags */ 31 | #define OBERRDLG_SHOWALLERRORS 1 32 | #define OBERRDLG_SHOWUNTAGGEDERRORS 2 33 | 34 | /*=========================================================================== 35 | * End of Definitions 36 | *=========================================================================*/ 37 | 38 | 39 | /*=========================================================================== 40 | * 41 | * Begin Class CSrErrorDlg Definition 42 | * 43 | *=========================================================================*/ 44 | class CSrErrorDlg : public CDialog { 45 | 46 | 47 | /*---------- Protected Class Members -------------------------------*/ 48 | protected: 49 | CString m_Title; 50 | CString m_Message; 51 | dword m_Flags; 52 | dword m_OutputCount; 53 | 54 | 55 | /*---------- Protected Class Members -------------------------------*/ 56 | protected: 57 | 58 | /* Add error information to the dialog */ 59 | void AddLastError (void); 60 | void AddAllErrors (void); 61 | void AddAllUntaggedErrors (void); 62 | void AddErrorInfo (CSrError* pError, const int ErrorIndex); 63 | 64 | 65 | /*---------- Public Class Methods ---------------------------------*/ 66 | public: 67 | 68 | /* Constructor */ 69 | CSrErrorDlg(CWnd* pParent = NULL); 70 | 71 | 72 | /* Set class members */ 73 | void SetTitle (const TCHAR* pString) { m_Title = pString; } 74 | void SetMessage (const TCHAR* pString) { m_Message = pString; } 75 | void SetFlags (const dword Flags) { m_Flags = Flags; } 76 | 77 | /* Dialog Data */ 78 | //{{AFX_DATA(CSrErrorDlg) 79 | enum { IDD = IDD_SRERROR_DLG }; 80 | CEdit m_ErrorDetails; 81 | CEdit m_ErrorMessage; 82 | //}}AFX_DATA 83 | 84 | /* ClassWizard generated virtual function overrides */ 85 | //{{AFX_VIRTUAL(CSrErrorDlg) 86 | protected: 87 | virtual void DoDataExchange(CDataExchange* pDX); 88 | //}}AFX_VIRTUAL 89 | 90 | protected: 91 | 92 | /* Generated message map functions */ 93 | //{{AFX_MSG(CSrErrorDlg) 94 | virtual BOOL OnInitDialog(); 95 | //}}AFX_MSG 96 | 97 | DECLARE_MESSAGE_MAP(); 98 | 99 | public: 100 | afx_msg void OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/); 101 | }; 102 | /*=========================================================================== 103 | * End of Class CSrErrorDlg Definition 104 | *=========================================================================*/ 105 | 106 | 107 | /*=========================================================================== 108 | * 109 | * Begin Function Prototypes 110 | * 111 | *=========================================================================*/ 112 | 113 | /*=========================================================================== 114 | * End of Function Prototypes 115 | *=========================================================================*/ 116 | 117 | 118 | //{{AFX_INSERT_LOCATION}} 119 | //}}AFX_INSERT_LOCATION 120 | 121 | 122 | #endif 123 | /*=========================================================================== 124 | * End of File Oberrordlg.H 125 | *=========================================================================*/ 126 | -------------------------------------------------------------------------------- /SrFileTreeDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Obfiletreedlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: August 4, 2006 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __OBFILETREEDLG_H 11 | #define __OBFILETREEDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | /*=========================================================================== 20 | * End of Required Includes 21 | *=========================================================================*/ 22 | 23 | 24 | /*=========================================================================== 25 | * 26 | * Begin Class CSrFileTreeDlg 27 | * 28 | *=========================================================================*/ 29 | class CSrFileTreeDlg : public CDialog { 30 | 31 | /*---------- Begin Protected Class Members ----------------------*/ 32 | protected: 33 | //CSrEspFile* m_pEspFile; 34 | CSrGroup* m_pTopGroup; 35 | 36 | 37 | /*---------- Begin Protected Class Methods ----------------------*/ 38 | protected: 39 | 40 | /* Create the tree contents */ 41 | void CreateTree (void); 42 | void CreateTree (CSrGroup* pTopGroup, HTREEITEM hParent); 43 | 44 | void AddTreeRecord (CSrBaseRecord* pBaseRecord, HTREEITEM hParent); 45 | void AddTreeGroupChildren (CSrGroup* pGroup, HTREEITEM hParent); 46 | 47 | void AddTreeGroup (CSrGroup* pGroup, HTREEITEM hParent); 48 | void AddTreeTypeGroup (CSrTypeGroup* pGroup, HTREEITEM hParent); 49 | void AddTreeFormIDGroup (CSrFormIDGroup* pGroup, HTREEITEM hParent); 50 | void AddTreeBlockGroup (CSrBlockGroup* pGroup, HTREEITEM hParent); 51 | void AddTreeGridGroup (CSrGridGroup* pGroup, HTREEITEM hParent); 52 | 53 | 54 | 55 | /*---------- Begin Public Class Methods -------------------------*/ 56 | public: 57 | 58 | /* Constructor */ 59 | CSrFileTreeDlg(CWnd* pParent = NULL); 60 | 61 | /* Set class members */ 62 | //void SetEspFile (CSrEspFile* pFile) { m_pEspFile = pFile; } 63 | void SetTopGroup (CSrGroup* pGroup) { m_pTopGroup = pGroup; } 64 | 65 | 66 | /* Dialog Data */ 67 | //{{AFX_DATA(CSrFileTreeDlg) 68 | enum { IDD = IDD_FILETREE_DLG }; 69 | CTreeCtrl m_FileTree; 70 | //}}AFX_DATA 71 | 72 | /* ClassWizard generated virtual function overrides */ 73 | //{{AFX_VIRTUAL(CSrFileTreeDlg) 74 | protected: 75 | virtual void DoDataExchange(CDataExchange* pDX); 76 | //}}AFX_VIRTUAL 77 | 78 | protected: 79 | 80 | /* Generated message map functions */ 81 | //{{AFX_MSG(CSrFileTreeDlg) 82 | virtual BOOL OnInitDialog(); 83 | //}}AFX_MSG 84 | 85 | DECLARE_MESSAGE_MAP(); 86 | 87 | }; 88 | /*=========================================================================== 89 | * End of Class CSrFileTreeDlg 90 | *=========================================================================*/ 91 | 92 | 93 | //{{AFX_INSERT_LOCATION}} 94 | //}}AFX_INSERT_LOCATION 95 | 96 | 97 | #endif 98 | /*=========================================================================== 99 | * End of File Obfiletreedlg.H 100 | *=========================================================================*/ 101 | -------------------------------------------------------------------------------- /SrFindBinaryDlg.cpp: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Srfindbinarydlg.CPP 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 November 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | 11 | /* Include Files */ 12 | #include "stdafx.h" 13 | #include "sredit.h" 14 | #include "srFindBinaryDlg.h" 15 | 16 | 17 | /*=========================================================================== 18 | * 19 | * Begin Local Definitions 20 | * 21 | *=========================================================================*/ 22 | #ifdef _DEBUG 23 | #define new DEBUG_NEW 24 | #undef THIS_FILE 25 | static char THIS_FILE[] = __FILE__; 26 | #endif 27 | /*=========================================================================== 28 | * End of Local Definitions 29 | *=========================================================================*/ 30 | 31 | 32 | /*=========================================================================== 33 | * 34 | * Begin CSrFindBinaryDlg Message Map 35 | * 36 | *=========================================================================*/ 37 | BEGIN_MESSAGE_MAP(CSrFindBinaryDlg, CDialog) 38 | //{{AFX_MSG_MAP(CSrFindBinaryDlg) 39 | //}}AFX_MSG_MAP 40 | END_MESSAGE_MAP() 41 | /*=========================================================================== 42 | * End of CSrFindBinaryDlg Message Map 43 | *=========================================================================*/ 44 | 45 | 46 | /*=========================================================================== 47 | * 48 | * Class CSrFindBinaryDlg Constructor 49 | * 50 | *=========================================================================*/ 51 | CSrFindBinaryDlg::CSrFindBinaryDlg(CWnd* pParent) : CDialog(CSrFindBinaryDlg::IDD, pParent) { 52 | //{{AFX_DATA_INIT(CSrFindBinaryDlg) 53 | //}}AFX_DATA_INIT 54 | } 55 | /*=========================================================================== 56 | * End of Class CSrFindBinaryDlg Constructor 57 | *=========================================================================*/ 58 | 59 | 60 | /*=========================================================================== 61 | * 62 | * Class CSrFindBinaryDlg Method - void DoDataExchange (pDX); 63 | * 64 | *=========================================================================*/ 65 | void CSrFindBinaryDlg::DoDataExchange (CDataExchange* pDX) { 66 | CDialog::DoDataExchange(pDX); 67 | 68 | //{{AFX_DATA_MAP(CSrFindBinaryDlg) 69 | DDX_Control(pDX, IDC_BINARYDATA_TEXT, m_BinaryDataText); 70 | //}}AFX_DATA_MAP 71 | } 72 | /*=========================================================================== 73 | * End of Class Method CSrFindBinaryDlg::DoDataExchange() 74 | *=========================================================================*/ 75 | 76 | 77 | /*=========================================================================== 78 | * 79 | * Class CSrFindBinaryDlg Event - BOOL OnInitDialog (); 80 | * 81 | *=========================================================================*/ 82 | BOOL CSrFindBinaryDlg::OnInitDialog() { 83 | CDialog::OnInitDialog(); 84 | 85 | return (TRUE); 86 | } 87 | /*=========================================================================== 88 | * End of Class Event CSrFindBinaryDlg::OnInitDialog() 89 | *=========================================================================*/ 90 | 91 | 92 | /*=========================================================================== 93 | * 94 | * Class CSrFindBinaryDlg Event - void OnOK (); 95 | * 96 | *=========================================================================*/ 97 | void CSrFindBinaryDlg::OnOK() { 98 | 99 | m_BinaryDataText.GetWindowText(m_BinaryData); 100 | m_BinaryData.TrimLeft(" \t"); 101 | m_BinaryData.TrimRight(" \t"); 102 | 103 | CDialog::OnOK(); 104 | } 105 | /*=========================================================================== 106 | * End of Class Event CSrFindBinaryDlg::OnOK() 107 | *=========================================================================*/ 108 | -------------------------------------------------------------------------------- /SrFindBinaryDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Obfindbinarydlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: August 29, 2006 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __OBFINDBINARYDLG_H 11 | #define __OBFINDBINARYDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | /*=========================================================================== 20 | * End of Required Includes 21 | *=========================================================================*/ 22 | 23 | 24 | /*=========================================================================== 25 | * 26 | * Begin Class CSrFindBinaryDlg Definition 27 | * 28 | *=========================================================================*/ 29 | class CSrFindBinaryDlg : public CDialog { 30 | 31 | /*---------- Begin Protected Class Members -----------------------------*/ 32 | protected: 33 | CString m_BinaryData; 34 | 35 | 36 | /*---------- Public Class Methods --------------------------------------*/ 37 | public: 38 | 39 | /* Constructor */ 40 | CSrFindBinaryDlg(CWnd* pParent = NULL); 41 | 42 | /* Get class members */ 43 | const TCHAR* GetBinaryData (void) { return (m_BinaryData); } 44 | 45 | /* Dialog Data */ 46 | //{{AFX_DATA(CSrFindBinaryDlg) 47 | enum { IDD = IDD_FINDBINARY_DLG }; 48 | CEdit m_BinaryDataText; 49 | //}}AFX_DATA 50 | 51 | /* ClassWizard generated virtual function overrides */ 52 | //{{AFX_VIRTUAL(CSrFindBinaryDlg) 53 | protected: 54 | virtual void DoDataExchange(CDataExchange* pDX); 55 | //}}AFX_VIRTUAL 56 | 57 | protected: 58 | 59 | /* Generated message map functions */ 60 | //{{AFX_MSG(CSrFindBinaryDlg) 61 | virtual BOOL OnInitDialog(); 62 | virtual void OnOK(); 63 | //}}AFX_MSG 64 | 65 | DECLARE_MESSAGE_MAP(); 66 | 67 | }; 68 | /*=========================================================================== 69 | * End of Class CSrFindBinaryDlg Definition 70 | *=========================================================================*/ 71 | 72 | 73 | //{{AFX_INSERT_LOCATION}} 74 | //}}AFX_INSERT_LOCATION 75 | 76 | 77 | #endif 78 | /*=========================================================================== 79 | * End of File Obfindbinarydlg.H 80 | *=========================================================================*/ 81 | -------------------------------------------------------------------------------- /SrFindDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Srfinddlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 November 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRFINDDLG_H 11 | #define __SRFINDDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "windows/srrecordvirtuallistctrl.h" 21 | #include "afxwin.h" 22 | /*=========================================================================== 23 | * End of Required Includes 24 | *=========================================================================*/ 25 | 26 | 27 | /*=========================================================================== 28 | * 29 | * Begin Class CSrFindDlg Definition 30 | * 31 | *=========================================================================*/ 32 | class CSrFindDlg : public CSrRecordDialog 33 | { 34 | DECLARE_DYNCREATE(CSrFindDlg); 35 | 36 | /*---------- Begin Protected Class Members -------------------------*/ 37 | protected: 38 | CString m_TextData; 39 | byte* m_pBinaryData; 40 | dword m_BinarySize; 41 | srformid_t m_FindFormID; 42 | 43 | srfinddata_t m_FindData; 44 | 45 | CSrCallback m_Callback; 46 | 47 | 48 | /*---------- Begin Public Class Methods ----------------------------*/ 49 | public: 50 | 51 | /* Constructor */ 52 | CSrFindDlg(CWnd* pParent = NULL); 53 | virtual ~CSrFindDlg(); 54 | 55 | /* Set and get control data */ 56 | virtual void ClearControlData (void); 57 | virtual void GetControlData (void); 58 | virtual void SetControlData (void); 59 | virtual void SetTitle (const SSCHAR* pEditorID); 60 | 61 | /* Check if the dialog is editing the given record */ 62 | virtual bool IsEditRecord (CSrRecord* pRecord); 63 | 64 | /* Events */ 65 | virtual void OnApply (void); 66 | virtual void OnSave (void); 67 | virtual void OnCancel (void); 68 | 69 | /* Listener events */ 70 | virtual int OnListenAddRecord (CSrListenEvent* pEvent); 71 | virtual int OnListenCleanRecord (CSrListenEvent* pEvent); 72 | virtual int OnListenUpdateRecord (CSrListenEvent* pEvent); 73 | virtual int GetListenEvents (void) { return (SR_EVENT_ADDRECORD | SR_EVENT_CLEANRECORD | SR_EVENT_UPDATERECORD); } 74 | 75 | /* Conver the current text data to binary */ 76 | bool ConvertBinaryData (void); 77 | 78 | enum { IDD = IDD_FIND_DLG }; 79 | CStatic m_FindLabel; 80 | CButton m_CaseSensitiveCheck; 81 | CButton m_BinaryCheck; 82 | CComboBox m_SearchCombo; 83 | CSrRecordVirtualListCtrl m_FindList; 84 | 85 | protected: 86 | virtual void DoDataExchange(CDataExchange* pDX); 87 | virtual void OnInitialUpdate(); 88 | 89 | protected: 90 | afx_msg void OnFindButton(); 91 | 92 | DECLARE_MESSAGE_MAP(); 93 | 94 | public: 95 | CButton m_FormIDCheck; 96 | CButton m_FindInScripts; 97 | }; 98 | /*=========================================================================== 99 | * End of Class CSrFindDlg Definition 100 | *=========================================================================*/ 101 | 102 | 103 | //{{AFX_INSERT_LOCATION}} 104 | //}}AFX_INSERT_LOCATION 105 | 106 | 107 | #endif 108 | /*=========================================================================== 109 | * End of File Srfinddlg.H 110 | *=========================================================================*/ 111 | -------------------------------------------------------------------------------- /SrFunctionDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrFunctionDlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 3 December 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRFUNCTIONDLG_H 11 | #define __SRFUNCTIONDLG_H 12 | 13 | #include "afxwin.h" 14 | #include "afxcmn.h" 15 | #include "modfile/srmoddefs.h" 16 | 17 | 18 | #define SR_FUNCDLG_SORTNAME 0x01 19 | #define SR_FUNCDLG_SORTTYPE 0x02 20 | #define SR_FUNCDLG_SORTPARAMS 0x03 21 | 22 | #define SR_FUNCDLG_SUBITEM_NAME 0 23 | #define SR_FUNCDLG_SUBITEM_PARAM1 1 24 | #define SR_FUNCDLG_SUBITEM_PARAM2 2 25 | #define SR_FUNCDLG_SUBITEM_PARAM3 3 26 | #define SR_FUNCDLG_SUBITEM_FLAGS 4 27 | #define SR_FUNCDLG_SUBITEM_TYPE 5 28 | 29 | 30 | /*=========================================================================== 31 | * 32 | * Begin Class CSrFunctionDlg Definition 33 | * 34 | *=========================================================================*/ 35 | class CSrFunctionDlg : public CDialogEx 36 | { 37 | DECLARE_DYNAMIC(CSrFunctionDlg) 38 | 39 | protected: 40 | CString m_OrigFunction; 41 | CString m_CurrentFunction; 42 | CString m_FilterString; 43 | dword m_FunctionMask; 44 | 45 | 46 | protected: 47 | void FillFunctionList (void); 48 | void SetupFunctionList (void); 49 | 50 | public: 51 | CSrFunctionDlg(CWnd* pParent = NULL); 52 | virtual ~CSrFunctionDlg(); 53 | 54 | bool DoModal (CString& Function, const dword Mask); 55 | 56 | 57 | enum { IDD = IDD_FUNCTION_DLG }; 58 | 59 | protected: 60 | virtual void DoDataExchange(CDataExchange* pDX); 61 | 62 | DECLARE_MESSAGE_MAP() 63 | 64 | public: 65 | CEdit m_PreviousValue; 66 | CEdit m_CurrentValue; 67 | CListCtrl m_FunctionList; 68 | virtual BOOL OnInitDialog(); 69 | virtual void OnOK(); 70 | afx_msg void OnLvnItemchangingFunctionList(NMHDR *pNMHDR, LRESULT *pResult); 71 | void OnDblclk (NMHDR* pNMHDR, LRESULT* pResult); 72 | CEdit m_Filter; 73 | afx_msg void OnEnChangeFilterText(); 74 | afx_msg void OnBnClickedClearFilter(); 75 | afx_msg void OnHelp (void); 76 | afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); 77 | }; 78 | /*=========================================================================== 79 | * End of Class CSrFunctionDlg Definition 80 | *=========================================================================*/ 81 | 82 | 83 | /*=========================================================================== 84 | * 85 | * Begin Function Declarations 86 | * 87 | *=========================================================================*/ 88 | bool SrSelectFunctionScript (CString& Function); 89 | bool SrSelectFunctionCondition (CString& Function); 90 | /*=========================================================================== 91 | * End of Function Declarations 92 | *=========================================================================*/ 93 | 94 | 95 | #endif 96 | /*=========================================================================== 97 | * End of File SrFunctionDlg.H 98 | *=========================================================================*/ 99 | 100 | -------------------------------------------------------------------------------- /SrGlobView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrGlobView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 27 November 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRGLOBVIEW_H 11 | #define __SRGLOBVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | /*=========================================================================== 21 | * End of Required Includes 22 | *=========================================================================*/ 23 | 24 | 25 | /*=========================================================================== 26 | * 27 | * Begin Class CSrGlobView Definition 28 | * 29 | *=========================================================================*/ 30 | class CSrGlobView : public CSrRecordDialog { 31 | DECLARE_DYNCREATE(CSrGlobView); 32 | DECLARE_SRRECUIFIELDS(); 33 | 34 | /*---------- Begin Protected Class Members ---------------------*/ 35 | protected: 36 | 37 | 38 | /*---------- Begin Protected Class Methods ---------------------*/ 39 | protected: 40 | 41 | /* Protected constructor used by dynamic creation */ 42 | CSrGlobView(); 43 | 44 | 45 | /*---------- Begin Public Class Methods ------------------------*/ 46 | public: 47 | 48 | 49 | //{{AFX_DATA(CSrGlobView) 50 | enum { IDD = IDD_GLOB_VIEW }; 51 | CEdit m_Value; 52 | CComboBox m_Type; 53 | CEdit m_EditorID; 54 | CEdit m_FormID; 55 | //}}AFX_DATA 56 | 57 | public: 58 | 59 | /* ClassWizard generated virtual function overrides */ 60 | //{{AFX_VIRTUAL(CSrGlobView) 61 | protected: 62 | virtual void OnInitialUpdate(); 63 | virtual void DoDataExchange(CDataExchange* pDX); 64 | //}}AFX_VIRTUAL 65 | 66 | protected: 67 | virtual ~CSrGlobView(); 68 | 69 | #ifdef _DEBUG 70 | virtual void AssertValid() const; 71 | virtual void Dump(CDumpContext& dc) const; 72 | #endif 73 | 74 | /* Generated message map functions */ 75 | //{{AFX_MSG(CSrGlobView) 76 | //}}AFX_MSG 77 | 78 | DECLARE_MESSAGE_MAP(); 79 | 80 | }; 81 | /*=========================================================================== 82 | * End of Class CSrGlobView Definition 83 | *=========================================================================*/ 84 | 85 | 86 | //{{AFX_INSERT_LOCATION}} 87 | //}}AFX_INSERT_LOCATION 88 | 89 | 90 | #endif 91 | /*=========================================================================== 92 | * End of File SrGlobView.H 93 | *=========================================================================*/ 94 | -------------------------------------------------------------------------------- /SrGmstView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrGmstView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 27 November 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRGMSTVIEW_H 11 | #define __SRGMSTVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | /*=========================================================================== 21 | * End of Required Includes 22 | *=========================================================================*/ 23 | 24 | 25 | /*=========================================================================== 26 | * 27 | * Begin Class CSrGmstView Definition 28 | * 29 | *=========================================================================*/ 30 | class CSrGmstView : public CSrRecordDialog { 31 | DECLARE_DYNCREATE(CSrGmstView); 32 | DECLARE_SRRECUIFIELDS(); 33 | 34 | /*---------- Begin Protected Class Members ---------------------*/ 35 | protected: 36 | 37 | 38 | /*---------- Begin Protected Class Methods ---------------------*/ 39 | protected: 40 | 41 | /* Protected constructor used by dynamic creation */ 42 | CSrGmstView(); 43 | 44 | 45 | /*---------- Begin Public Class Methods ------------------------*/ 46 | public: 47 | 48 | 49 | //{{AFX_DATA(CSrGmstView) 50 | enum { IDD = IDD_GMST_VIEW }; 51 | CEdit m_Value; 52 | CEdit m_EditorID; 53 | CEdit m_FormID; 54 | //}}AFX_DATA 55 | 56 | int OnPreSaveRecord (void); 57 | 58 | public: 59 | 60 | /* ClassWizard generated virtual function overrides */ 61 | //{{AFX_VIRTUAL(CSrGmstView) 62 | protected: 63 | virtual void OnInitialUpdate(); 64 | virtual void DoDataExchange(CDataExchange* pDX); 65 | //}}AFX_VIRTUAL 66 | 67 | protected: 68 | virtual ~CSrGmstView(); 69 | 70 | #ifdef _DEBUG 71 | virtual void AssertValid() const; 72 | virtual void Dump(CDumpContext& dc) const; 73 | #endif 74 | 75 | /* Generated message map functions */ 76 | //{{AFX_MSG(CSrGmstView) 77 | //}}AFX_MSG 78 | 79 | DECLARE_MESSAGE_MAP(); 80 | 81 | }; 82 | /*=========================================================================== 83 | * End of Class CSrGmstView Definition 84 | *=========================================================================*/ 85 | 86 | 87 | //{{AFX_INSERT_LOCATION}} 88 | //}}AFX_INSERT_LOCATION 89 | 90 | 91 | #endif 92 | /*=========================================================================== 93 | * End of File SrGmstView.H 94 | *=========================================================================*/ 95 | -------------------------------------------------------------------------------- /SrImageCtrl.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Obimagectrl.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: October 5, 2006 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __OBIMAGECTRL_H 11 | #define __OBIMAGECTRL_H 12 | 13 | 14 | 15 | class CSrImageCtrl : public CWnd { 16 | 17 | /*---------- Begin Protected Class Members ---------------------*/ 18 | protected: 19 | CBitmap m_Bitmap; /* The bitmap image to draw */ 20 | bool m_IsInitialized; 21 | 22 | bool m_ZoomToFit; 23 | bool m_KeepAspect; 24 | bool m_ZoomLarger; 25 | bool m_ZoomSmaller; 26 | 27 | int m_ImageWidth; 28 | int m_ImageHeight; 29 | 30 | 31 | /*---------- Begin Protected Class Methods ---------------------*/ 32 | protected: 33 | 34 | 35 | 36 | /*---------- Begin Public Class Methods ------------------------*/ 37 | public: 38 | 39 | CSrImageCtrl(); 40 | virtual ~CSrImageCtrl(); 41 | 42 | /* Called after the frame window is created */ 43 | void OnInitialUpdate (void); 44 | 45 | bool Load (const TCHAR* pFilename); 46 | bool Load (FILE* pFile, const long FileSize, const long Offset); 47 | 48 | // ClassWizard generated virtual function overrides 49 | //{{AFX_VIRTUAL(CSrImageCtrl) 50 | //}}AFX_VIRTUAL 51 | 52 | // Generated message map functions 53 | protected: 54 | //{{AFX_MSG(CSrImageCtrl) 55 | afx_msg void OnPaint(); 56 | afx_msg void OnHScroll (UINT SBCode, UINT nPos, CScrollBar* pScrollBar); 57 | afx_msg void OnVScroll (UINT SBCode, UINT nPos, CScrollBar* pScrollBar); 58 | //}}AFX_MSG 59 | 60 | DECLARE_MESSAGE_MAP(); 61 | 62 | }; 63 | 64 | 65 | //{{AFX_INSERT_LOCATION}} 66 | //}}AFX_INSERT_LOCATION 67 | 68 | 69 | #endif 70 | /*=========================================================================== 71 | * End of File Obimagectrl.H 72 | *=========================================================================*/ 73 | -------------------------------------------------------------------------------- /SrKywdView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrKywdView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 27 November 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRKYWDVIEW_H 11 | #define __SRKYWDVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | /*=========================================================================== 21 | * End of Required Includes 22 | *=========================================================================*/ 23 | 24 | 25 | /*=========================================================================== 26 | * 27 | * Begin Class CSrKywdView Definition 28 | * 29 | *=========================================================================*/ 30 | class CSrKywdView : public CSrRecordDialog { 31 | DECLARE_DYNCREATE(CSrKywdView); 32 | DECLARE_SRRECUIFIELDS(); 33 | 34 | /*---------- Begin Protected Class Members ---------------------*/ 35 | protected: 36 | 37 | 38 | /*---------- Begin Protected Class Methods ---------------------*/ 39 | protected: 40 | 41 | /* Protected constructor used by dynamic creation */ 42 | CSrKywdView(); 43 | 44 | 45 | /*---------- Begin Public Class Methods ------------------------*/ 46 | public: 47 | 48 | 49 | //{{AFX_DATA(CSrKywdView) 50 | enum { IDD = IDD_KEYWORD_VIEW }; 51 | CEdit m_CName; 52 | CEdit m_EditorID; 53 | CEdit m_FormID; 54 | //}}AFX_DATA 55 | 56 | public: 57 | 58 | /* ClassWizard generated virtual function overrides */ 59 | //{{AFX_VIRTUAL(CSrKywdView) 60 | protected: 61 | virtual void OnInitialUpdate(); 62 | virtual void DoDataExchange(CDataExchange* pDX); 63 | //}}AFX_VIRTUAL 64 | 65 | protected: 66 | virtual ~CSrKywdView(); 67 | 68 | #ifdef _DEBUG 69 | virtual void AssertValid() const; 70 | virtual void Dump(CDumpContext& dc) const; 71 | #endif 72 | 73 | /* Generated message map functions */ 74 | //{{AFX_MSG(CSrKywdView) 75 | //}}AFX_MSG 76 | 77 | DECLARE_MESSAGE_MAP(); 78 | 79 | }; 80 | /*=========================================================================== 81 | * End of Class CSrKywdView Definition 82 | *=========================================================================*/ 83 | 84 | 85 | //{{AFX_INSERT_LOCATION}} 86 | //}}AFX_INSERT_LOCATION 87 | 88 | 89 | #endif 90 | /*=========================================================================== 91 | * End of File SrKywdView.H 92 | *=========================================================================*/ 93 | -------------------------------------------------------------------------------- /SrPromptDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Srpromptdlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 2 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRPROMPTDLG_H 11 | #define __SRPROMPTDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | /*=========================================================================== 20 | * End of Required Includes 21 | *=========================================================================*/ 22 | 23 | 24 | /*=========================================================================== 25 | * 26 | * Begin Class CSrPromptDlg Definition 27 | * 28 | *=========================================================================*/ 29 | class CSrPromptDlg : public CDialog { 30 | 31 | /*---------- Begin Protected Class Members -------------------------*/ 32 | protected: 33 | CString m_Label; 34 | CString m_Title; 35 | CString m_Button1Text; 36 | CString m_Button2Text; 37 | CString m_Button3Text; 38 | 39 | int m_SelectedButton; 40 | 41 | 42 | 43 | /*---------- Begin Public Class Methods ----------------------------*/ 44 | public: 45 | 46 | /* Constructor */ 47 | CSrPromptDlg(CWnd* pParent = NULL); 48 | 49 | /* Get class members */ 50 | int GetSelectedButton (void) { return (m_SelectedButton); } 51 | 52 | /* Set class members */ 53 | void SetLabel (const TCHAR* pString) { m_Label = pString; } 54 | void SetTitle (const TCHAR* pString) { m_Title = pString; } 55 | void SetButton1 (const TCHAR* pString) { m_Button1Text = pString; } 56 | void SetButton2 (const TCHAR* pString) { m_Button2Text = pString; } 57 | void SetButton3 (const TCHAR* pString) { m_Button3Text = pString; } 58 | 59 | /* Dialog Data */ 60 | //{{AFX_DATA(CSrPromptDlg) 61 | enum { IDD = IDD_PROMPT_DLG }; 62 | CStatic m_PromptLabel; 63 | CButton m_Button3; 64 | CButton m_Button2; 65 | CButton m_Button1; 66 | //}}AFX_DATA 67 | 68 | /* ClassWizard generated virtual function overrides */ 69 | //{{AFX_VIRTUAL(CSrPromptDlg) 70 | protected: 71 | virtual void DoDataExchange(CDataExchange* pDX); 72 | //}}AFX_VIRTUAL 73 | 74 | protected: 75 | 76 | /* Generated message map functions */ 77 | //{{AFX_MSG(CSrPromptDlg) 78 | afx_msg void OnButton1(); 79 | afx_msg void OnButton2(); 80 | afx_msg void OnButton3(); 81 | virtual BOOL OnInitDialog(); 82 | virtual void OnOK(); 83 | //}}AFX_MSG 84 | 85 | DECLARE_MESSAGE_MAP(); 86 | 87 | }; 88 | /*=========================================================================== 89 | * End of Class CSrPromptDlg Definition 90 | *=========================================================================*/ 91 | 92 | 93 | /*=========================================================================== 94 | * 95 | * Begin Function Prototypes 96 | * 97 | *=========================================================================*/ 98 | 99 | int ShowSrPromptDlg (const TCHAR* pTitle, const TCHAR* pLabel, const TCHAR* pButton1, const TCHAR* pButton2 = "", const TCHAR* pButton3 = ""); 100 | int ShowSrYesNoCancelDlg (const TCHAR* pTitle, const TCHAR* pLabel); 101 | void ShowSrOkDlg (const TCHAR* pTitle, const TCHAR* pLabel); 102 | bool ShowSrYesNoDlg (const TCHAR* pTitle, const TCHAR* pLabel); 103 | bool ShowSrOkCancelDlg (const TCHAR* pTitle, const TCHAR* pLabel); 104 | 105 | /*=========================================================================== 106 | * End of Function Prototypes 107 | *=========================================================================*/ 108 | 109 | 110 | #endif 111 | /*=========================================================================== 112 | * End of File SrPromptdlg.H 113 | *=========================================================================*/ 114 | -------------------------------------------------------------------------------- /Srbatchlistctrl.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrBatchlistctrl.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 November 2011 6 | * 7 | * 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SrBATCHLISTCTRL_H 11 | #define __SRBATCHLISTCTRL_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "modfile/srespfile.h" 20 | /*=========================================================================== 21 | * End of Required Includes 22 | *=========================================================================*/ 23 | 24 | 25 | /*=========================================================================== 26 | * 27 | * Begin Definitions 28 | * 29 | *=========================================================================*/ 30 | 31 | /* Column subitems */ 32 | #define SR_BATCHEDIT_SUBITEM_FIELD 0 33 | #define SR_BATCHEDIT_SUBITEM_VALUE 1 34 | 35 | /* Custom messages */ 36 | #define ID_BATCHEDIT_MSG_UPDATE (WM_APP + 118) 37 | 38 | /*=========================================================================== 39 | * End of Definitions 40 | *=========================================================================*/ 41 | 42 | 43 | /*=========================================================================== 44 | * 45 | * Begin Type Definitions 46 | * 47 | *=========================================================================*/ 48 | 49 | /* Holds information on each field being edited */ 50 | struct srbatchfieldinfo_t 51 | { 52 | srrecfieldid_t FieldID; 53 | bool Save; 54 | CSString Value; 55 | CSString Title; 56 | 57 | srbatchfieldinfo_t() { 58 | FieldID = 0; 59 | Save = false; 60 | } 61 | }; 62 | 63 | struct srbatchlistsort_t 64 | { 65 | int iSubItem; 66 | bool Reverse; 67 | }; 68 | 69 | /*=========================================================================== 70 | * End of Type Definitions 71 | *=========================================================================*/ 72 | 73 | 74 | /*=========================================================================== 75 | * 76 | * Begin class CSrBatchListCtrl 77 | * 78 | *=========================================================================*/ 79 | class CSrBatchListCtrl : public CListCtrl 80 | { 81 | 82 | /*---------- Begin Protected Class Members -------------------------*/ 83 | protected: 84 | int m_SortSubItem; 85 | bool m_SortReverse; 86 | 87 | 88 | /*---------- Begin Protected Class Methods -------------------------*/ 89 | protected: 90 | 91 | 92 | /*---------- Begin Public Class Methods ----------------------------*/ 93 | public: 94 | 95 | /* Constructor/Destructor */ 96 | CSrBatchListCtrl(); 97 | virtual ~CSrBatchListCtrl(); 98 | 99 | /* ClassWizard generated virtual function overrides */ 100 | //{{AFX_VIRTUAL(CSrBatchListCtrl) 101 | protected: 102 | //}}AFX_VIRTUAL 103 | 104 | /* Generated message map functions */ 105 | protected: 106 | //{{AFX_MSG(CSrBatchListCtrl) 107 | afx_msg void OnSize(UINT nType, int cx, int cy); 108 | afx_msg void OnItemclick(NMHDR* pNMHDR, LRESULT* pResult); 109 | afx_msg void OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult); 110 | afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult); 111 | afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 112 | afx_msg void OnHScroll (UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 113 | afx_msg void OnLButtonDown( UINT, CPoint ); 114 | afx_msg void OnClick (NMHDR* pNMHDR, LRESULT* pResult); 115 | //}}AFX_MSG 116 | 117 | DECLARE_MESSAGE_MAP(); 118 | 119 | }; 120 | /*=========================================================================== 121 | * End of class CSrBatchListCtrl 122 | *=========================================================================*/ 123 | 124 | 125 | //{{AFX_INSERT_LOCATION}} 126 | //}}AFX_INSERT_LOCATION 127 | 128 | 129 | #endif 130 | /*=========================================================================== 131 | * End of File SrBatchlistctrl.H 132 | *=========================================================================*/ 133 | -------------------------------------------------------------------------------- /StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // skyedit.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__497E21D9_C3C8_46EF_9648_0A77B1B6415C__INCLUDED_) 7 | #define AFX_STDAFX_H__497E21D9_C3C8_46EF_9648_0A77B1B6415C__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 14 | 15 | #include // MFC core and standard components 16 | #include // MFC extensions 17 | #include // MFC Automation classes 18 | #include // MFC support for Internet Explorer 4 Common Controls 19 | //#ifndef _AFX_NO_AFXCMN_SUPPORT 20 | #include // MFC support for Windows Common Controls 21 | //#endif // _AFX_NO_AFXCMN_SUPPORT 22 | 23 | #include "windows/sizecbar.h" 24 | #include "windows/scbarg.h" 25 | #include "windows/scbarcf.h" 26 | #include 27 | #include 28 | 29 | 30 | 31 | //{{AFX_INSERT_LOCATION}} 32 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 33 | 34 | #endif // !defined(AFX_STDAFX_H__497E21D9_C3C8_46EF_9648_0A77B1B6415C__INCLUDED_) 35 | -------------------------------------------------------------------------------- /UndoBar.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: UndoBar.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 November 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __UNDOBAR_H 11 | #define __UNDOBAR_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "modfile/srundoitem.h" 20 | /*=========================================================================== 21 | * End of Required Includes 22 | *=========================================================================*/ 23 | 24 | 25 | /*=========================================================================== 26 | * 27 | * Begin Class CSrUndoBar Definition 28 | * 29 | *=========================================================================*/ 30 | class CSrUndoBar : public CSizingControlBarCF { 31 | 32 | /*---------- Protected Class Members -----------------------*/ 33 | protected: 34 | CListBox m_wndChild; 35 | CFont m_font; 36 | 37 | CSrUndoItemArray* m_pLastUndoArray; 38 | 39 | 40 | /*---------- Public Class Members --------------------------*/ 41 | public: 42 | 43 | /* Constructor/Destructor */ 44 | CSrUndoBar(); 45 | virtual ~CSrUndoBar(); 46 | 47 | /* Access the currently selected item */ 48 | CSrUndoItem* GetCurrentUndoItem (void); 49 | int GetCurrentUndoItemCount (void); 50 | 51 | /* Prevent updates from being displayed immediately */ 52 | void LockUpdates (const bool Lock); 53 | 54 | /* Update the list from an array of undo items */ 55 | void UpdateList (CSrUndoItemArray* pUndoItems); 56 | 57 | 58 | /* ClassWizard generated virtual function overrides */ 59 | //{{AFX_VIRTUAL(CSrUndoBar) 60 | //}}AFX_VIRTUAL 61 | 62 | 63 | /* Generated message map functions */ 64 | protected: 65 | //{{AFX_MSG(CSrUndoBar) 66 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 67 | afx_msg void OnDblclkUndoList (void); 68 | //}}AFX_MSG 69 | 70 | DECLARE_MESSAGE_MAP(); 71 | 72 | }; 73 | /*=========================================================================== 74 | * End of Class CSrUndoBar Definition 75 | *=========================================================================*/ 76 | 77 | 78 | //{{AFX_INSERT_LOCATION}} 79 | //}}AFX_INSERT_LOCATION 80 | 81 | 82 | #endif 83 | /*=========================================================================== 84 | * End of File UndoBar.H 85 | *=========================================================================*/ 86 | -------------------------------------------------------------------------------- /aboutdlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Aboutdlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 November 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __ABOUTDLG_H 11 | #define __ABOUTDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | /*=========================================================================== 20 | * End of Required Includes 21 | *=========================================================================*/ 22 | 23 | 24 | /*=========================================================================== 25 | * 26 | * Begin Class CAboutDlg Definition 27 | * 28 | *=========================================================================*/ 29 | class CAboutDlg : public CDialog { 30 | 31 | public: 32 | CAboutDlg(); 33 | 34 | void AddBullet (const TCHAR* pString, ...); 35 | void AddText (const TCHAR* pString, ...); 36 | 37 | /* Dialog Data */ 38 | //{{AFX_DATA(CAboutDlg) 39 | enum { IDD = IDD_ABOUTBOX }; 40 | CRichEditCtrl m_Credits; 41 | //}}AFX_DATA 42 | 43 | /* ClassWizard generated virtual function overrides */ 44 | //{{AFX_VIRTUAL(CAboutDlg) 45 | protected: 46 | virtual void DoDataExchange(CDataExchange* pDX); 47 | //}}AFX_VIRTUAL 48 | 49 | /* Implementation */ 50 | protected: 51 | //{{AFX_MSG(CAboutDlg) 52 | virtual BOOL OnInitDialog(); 53 | afx_msg void OnLink (NMHDR *pNotify, LRESULT *pResult); 54 | //}}AFX_MSG 55 | 56 | DECLARE_MESSAGE_MAP() 57 | 58 | public: 59 | }; 60 | /*=========================================================================== 61 | * End of Class CAboutDlg Definition 62 | *=========================================================================*/ 63 | 64 | 65 | #endif 66 | /*=========================================================================== 67 | * End of File Aboutdlg.H 68 | *=========================================================================*/ 69 | -------------------------------------------------------------------------------- /arrowcop.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/arrowcop.cur -------------------------------------------------------------------------------- /devil/include/IL/config.h: -------------------------------------------------------------------------------- 1 | /* include/IL/config.h. Generated by configure. */ 2 | /* include/IL/config.h.in. Generated from configure.in by autoheader. */ 3 | #ifndef __CONFIG_H__ 4 | #define __CONFIG_H__ 5 | 6 | /* Supported images formats (il) */ 7 | 8 | /* #undef IL_NO_BMP */ 9 | /* #undef IL_NO_CUT */ 10 | /* #undef IL_NO_CHEAD */ 11 | /* #undef IL_NO_DCX */ 12 | /* #undef IL_NO_DDS */ 13 | /* #undef IL_NO_DOOM */ 14 | /* #undef IL_NO_GIF */ 15 | /* #undef IL_NO_HDR */ 16 | /* #undef IL_NO_ICO */ 17 | /* #undef IL_NO_JPG */ 18 | /* #undef IL_NO_LCMS */ 19 | /* #undef IL_NO_LIF */ 20 | /* #undef IL_NO_MDL */ 21 | /* #undef IL_NO_MNG */ 22 | /* #undef IL_NO_PCD */ 23 | /* #undef IL_NO_PCX */ 24 | /* #undef IL_NO_PIC */ 25 | /* #undef IL_NO_PIX */ 26 | /* #undef IL_NO_PNG */ 27 | /* #undef IL_NO_PNM */ 28 | /* #undef IL_NO_PSD */ 29 | /* #undef IL_NO_PSP */ 30 | /* #undef IL_NO_PXR */ 31 | /* #undef IL_NO_RAW */ 32 | /* #undef IL_NO_SGI */ 33 | /* #undef IL_NO_TGA */ 34 | /* #undef IL_NO_TIF */ 35 | /* #undef IL_NO_WAL */ 36 | /* #undef IL_NO_XPM */ 37 | #define IL_USE_JPEGLIB_UNMODIFIED 1 38 | 39 | /* Supported api (ilut) */ 40 | 41 | 42 | // 43 | // sorry just 44 | // cant get this one to work under windows 45 | // have disabled for the now 46 | // 47 | // will look at it some more later 48 | // 49 | // Kriss 50 | // 51 | #undef ILUT_USE_ALLEGRO 52 | 53 | #define ILUT_USE_DIRECTX8 1 54 | #define ILUT_USE_DIRECTX9 1 55 | #define ILUT_USE_OPENGL 1 56 | #define ILUT_USE_SDL 1 57 | #define ILUT_USE_WIN32 1 58 | 59 | 60 | /* Define to 1 if you have the header file. */ 61 | #define HAVE_DLFCN_H 1 62 | 63 | /* Define to 1 if you have the header file. */ 64 | #define HAVE_INTTYPES_H 1 65 | 66 | /* Define to 1 if you have the header file. */ 67 | #define HAVE_MEMORY_H 1 68 | 69 | /* Define to 1 if you have the header file. */ 70 | #define HAVE_STDINT_H 1 71 | 72 | /* Define to 1 if you have the header file. */ 73 | #define HAVE_STDLIB_H 1 74 | 75 | /* Define to 1 if you have the header file. */ 76 | #define HAVE_STRINGS_H 1 77 | 78 | /* Define to 1 if you have the header file. */ 79 | #define HAVE_STRING_H 1 80 | 81 | /* Define to 1 if you have the header file. */ 82 | //#define HAVE_SYS_STAT_H 1 83 | 84 | /* Define to 1 if you have the header file. */ 85 | //#define HAVE_SYS_TYPES_H 1 86 | 87 | /* Define to 1 if you have the header file. */ 88 | //#define HAVE_UNISTD_H 1 89 | 90 | /* Name of package */ 91 | #define PACKAGE "DevIL" 92 | 93 | /* Define to the address where bug reports for this package should be sent. */ 94 | #define PACKAGE_BUGREPORT "" 95 | 96 | /* Define to the full name of this package. */ 97 | #define PACKAGE_NAME "" 98 | 99 | /* Define to the full name and version of this package. */ 100 | #define PACKAGE_STRING "" 101 | 102 | /* Define to the one symbol short name of this package. */ 103 | #define PACKAGE_TARNAME "" 104 | 105 | /* Define to the version of this package. */ 106 | #define PACKAGE_VERSION "" 107 | 108 | /* Define to 1 if you have the ANSI C header files. */ 109 | #define STDC_HEADERS 1 110 | 111 | /* Version number of package */ 112 | #define VERSION "1.6.7" 113 | 114 | /* Define to 1 if your processor stores words with the most significant byte 115 | first (like Motorola and SPARC, unlike Intel and VAX). */ 116 | /* #undef WORDS_BIGENDIAN */ 117 | 118 | /* If using Mac OS X uncomment this line */ 119 | /* #include "macconfig.h" */ 120 | 121 | /* Define to 1 if the X Window System is missing or not being used. */ 122 | /* #undef X_DISPLAY_MISSING */ 123 | #endif /* __CONFIG_H__ */ 124 | -------------------------------------------------------------------------------- /devil/include/IL/config.h.win: -------------------------------------------------------------------------------- 1 | /* include/IL/config.h. Generated by configure. */ 2 | /* include/IL/config.h.in. Generated from configure.in by autoheader. */ 3 | #ifndef __CONFIG_H__ 4 | #define __CONFIG_H__ 5 | 6 | /* Supported images formats (il) */ 7 | 8 | /* #undef IL_NO_BMP */ 9 | /* #undef IL_NO_CUT */ 10 | /* #undef IL_NO_CHEAD */ 11 | /* #undef IL_NO_DCX */ 12 | /* #undef IL_NO_DDS */ 13 | /* #undef IL_NO_DOOM */ 14 | /* #undef IL_NO_GIF */ 15 | /* #undef IL_NO_HDR */ 16 | /* #undef IL_NO_ICO */ 17 | /* #undef IL_NO_JPG */ 18 | /* #undef IL_NO_LCMS */ 19 | /* #undef IL_NO_LIF */ 20 | /* #undef IL_NO_MDL */ 21 | /* #undef IL_NO_MNG */ 22 | /* #undef IL_NO_PCD */ 23 | /* #undef IL_NO_PCX */ 24 | /* #undef IL_NO_PIC */ 25 | /* #undef IL_NO_PIX */ 26 | /* #undef IL_NO_PNG */ 27 | /* #undef IL_NO_PNM */ 28 | /* #undef IL_NO_PSD */ 29 | /* #undef IL_NO_PSP */ 30 | /* #undef IL_NO_PXR */ 31 | /* #undef IL_NO_RAW */ 32 | /* #undef IL_NO_SGI */ 33 | /* #undef IL_NO_TGA */ 34 | /* #undef IL_NO_TIF */ 35 | /* #undef IL_NO_WAL */ 36 | /* #undef IL_NO_XPM */ 37 | #define IL_USE_JPEGLIB_UNMODIFIED 1 38 | 39 | /* Supported api (ilut) */ 40 | 41 | 42 | // 43 | // sorry just 44 | // cant get this one to work under windows 45 | // have disabled for the now 46 | // 47 | // will look at it some more later 48 | // 49 | // Kriss 50 | // 51 | #undef ILUT_USE_ALLEGRO 52 | 53 | #define ILUT_USE_DIRECTX8 1 54 | #define ILUT_USE_DIRECTX9 1 55 | #define ILUT_USE_OPENGL 1 56 | #define ILUT_USE_SDL 1 57 | #define ILUT_USE_WIN32 1 58 | 59 | 60 | /* Define to 1 if you have the header file. */ 61 | #define HAVE_DLFCN_H 1 62 | 63 | /* Define to 1 if you have the header file. */ 64 | #define HAVE_INTTYPES_H 1 65 | 66 | /* Define to 1 if you have the header file. */ 67 | #define HAVE_MEMORY_H 1 68 | 69 | /* Define to 1 if you have the header file. */ 70 | #define HAVE_STDINT_H 1 71 | 72 | /* Define to 1 if you have the header file. */ 73 | #define HAVE_STDLIB_H 1 74 | 75 | /* Define to 1 if you have the header file. */ 76 | #define HAVE_STRINGS_H 1 77 | 78 | /* Define to 1 if you have the header file. */ 79 | #define HAVE_STRING_H 1 80 | 81 | /* Define to 1 if you have the header file. */ 82 | //#define HAVE_SYS_STAT_H 1 83 | 84 | /* Define to 1 if you have the header file. */ 85 | //#define HAVE_SYS_TYPES_H 1 86 | 87 | /* Define to 1 if you have the header file. */ 88 | //#define HAVE_UNISTD_H 1 89 | 90 | /* Name of package */ 91 | #define PACKAGE "DevIL" 92 | 93 | /* Define to the address where bug reports for this package should be sent. */ 94 | #define PACKAGE_BUGREPORT "" 95 | 96 | /* Define to the full name of this package. */ 97 | #define PACKAGE_NAME "" 98 | 99 | /* Define to the full name and version of this package. */ 100 | #define PACKAGE_STRING "" 101 | 102 | /* Define to the one symbol short name of this package. */ 103 | #define PACKAGE_TARNAME "" 104 | 105 | /* Define to the version of this package. */ 106 | #define PACKAGE_VERSION "" 107 | 108 | /* Define to 1 if you have the ANSI C header files. */ 109 | #define STDC_HEADERS 1 110 | 111 | /* Version number of package */ 112 | #define VERSION "1.6.7" 113 | 114 | /* Define to 1 if your processor stores words with the most significant byte 115 | first (like Motorola and SPARC, unlike Intel and VAX). */ 116 | /* #undef WORDS_BIGENDIAN */ 117 | 118 | /* If using Mac OS X uncomment this line */ 119 | /* #include "macconfig.h" */ 120 | 121 | /* Define to 1 if the X Window System is missing or not being used. */ 122 | /* #undef X_DISPLAY_MISSING */ 123 | #endif /* __CONFIG_H__ */ 124 | -------------------------------------------------------------------------------- /devil/include/IL/ilu_region.h: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------------- 2 | // 3 | // ImageLib Utility Sources 4 | // Copyright (C) 2000-2002 by Denton Woods 5 | // Last modified: 07/09/2002 <--Y2K Compliant! =] 6 | // 7 | // Filename: src-ILU/src/ilu_region.h 8 | // 9 | // Description: Creates an image region. 10 | // 11 | //----------------------------------------------------------------------------- 12 | 13 | #ifndef ILU_REGION_H 14 | #define ILU_REGION_H 15 | 16 | #include "ilu_internal.h" 17 | 18 | 19 | typedef struct Edge 20 | { 21 | ILint yUpper; 22 | ILfloat xIntersect, dxPerScan; 23 | struct Edge *next; 24 | } Edge; 25 | 26 | 27 | #endif//ILU_REGION_H 28 | 29 | -------------------------------------------------------------------------------- /devil/lib/DevIL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/devil/lib/DevIL.dll -------------------------------------------------------------------------------- /devil/lib/DevIL.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/devil/lib/DevIL.exp -------------------------------------------------------------------------------- /devil/lib/DevIL.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/devil/lib/DevIL.lib -------------------------------------------------------------------------------- /devil/lib/ILU.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/devil/lib/ILU.dll -------------------------------------------------------------------------------- /devil/lib/ILU.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/devil/lib/ILU.exp -------------------------------------------------------------------------------- /devil/lib/ILU.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/devil/lib/ILU.lib -------------------------------------------------------------------------------- /devil/lib/ILUT.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/devil/lib/ILUT.dll -------------------------------------------------------------------------------- /devil/lib/ILUT.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/devil/lib/ILUT.exp -------------------------------------------------------------------------------- /devil/lib/ILUT.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/devil/lib/ILUT.lib -------------------------------------------------------------------------------- /dialogs/SrActiView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrActiView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 1 January 2021 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRACTIVIEW_H 11 | #define __SRACTIVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "windows/srrecordlistctrl.h" 21 | #include "afxwin.h" 22 | #include "afxcmn.h" 23 | /*=========================================================================== 24 | * End of Required Includes 25 | *=========================================================================*/ 26 | 27 | 28 | /*=========================================================================== 29 | * 30 | * Begin Class CSrActiView Definition 31 | * 32 | *=========================================================================*/ 33 | class CSrActiView: public CSrRecordDialog 34 | { 35 | DECLARE_DYNCREATE(CSrActiView); 36 | DECLARE_SRRECUIFIELDS(); 37 | 38 | /*---------- Begin Protected Class Members ---------------------*/ 39 | protected: 40 | 41 | 42 | /*---------- Begin Protected Class Methods ---------------------*/ 43 | protected: 44 | 45 | /* Protected constructor used by dynamic creation */ 46 | CSrActiView(); 47 | 48 | 49 | 50 | /*---------- Begin Public Class Methods ------------------------*/ 51 | public: 52 | 53 | enum { IDD = IDD_ACTI_VIEW }; 54 | CEdit m_EditorID; 55 | CEdit m_FormID; 56 | CEdit m_ItemName; 57 | CEdit m_Model; 58 | 59 | public: 60 | 61 | protected: 62 | virtual void OnInitialUpdate(); 63 | virtual void DoDataExchange(CDataExchange* pDX); 64 | 65 | protected: 66 | virtual ~CSrActiView(); 67 | 68 | #ifdef _DEBUG 69 | virtual void AssertValid() const; 70 | virtual void Dump(CDumpContext& dc) const; 71 | #endif 72 | 73 | DECLARE_MESSAGE_MAP(); 74 | 75 | public: 76 | 77 | 78 | CEdit m_Verb; 79 | CEdit m_Unknown1; 80 | CEdit m_Unknown2; 81 | CEdit m_Unknown3; 82 | CEdit m_Unknown4; 83 | CEdit m_Keyword; 84 | CEdit m_AmbientSound; 85 | CEdit m_UseSound; 86 | CEdit m_Water; 87 | CEdit m_DestroyModel; 88 | afx_msg void OnBnClickedSelectDestroymodel(); 89 | afx_msg void OnBnClickedEditKeyword(); 90 | afx_msg void OnBnClickedSelectKeyword(); 91 | afx_msg void OnBnClickedEditAmbientsound(); 92 | afx_msg void OnBnClickedSelectAmbientsound(); 93 | afx_msg void OnBnClickedEditUsesound(); 94 | afx_msg void OnBnClickedSelectusesoundButton(); 95 | afx_msg void OnBnClickedEditWater(); 96 | afx_msg void OnBnClickedSelectWater(); 97 | afx_msg void OnDropAmbientSound (NMHDR* pNotifyStruct, LRESULT* pResult); 98 | afx_msg void OnDropUseSound (NMHDR* pNotifyStruct, LRESULT* pResult); 99 | afx_msg void OnDropWater (NMHDR* pNotifyStruct, LRESULT* pResult); 100 | afx_msg void OnDropKeyword (NMHDR* pNotifyStruct, LRESULT* pResult); 101 | afx_msg void OnDropDestroyModel (NMHDR* pNotifyStruct, LRESULT* pResult); 102 | afx_msg void OnSelectDestroyModel (void); 103 | CListBox m_Scripts; 104 | }; 105 | /*=========================================================================== 106 | * End of Class CSrActiView Definition 107 | *=========================================================================*/ 108 | 109 | 110 | #endif 111 | /*=========================================================================== 112 | * End of File SrActiView.H 113 | *=========================================================================*/ 114 | -------------------------------------------------------------------------------- /dialogs/SrAmmoView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrAmmoview.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 16 December 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRAMMOVIEW_H 11 | #define __SRAMMOVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrAmmoView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrAmmoView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrAmmoView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrAmmoView(); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | 49 | enum { IDD = IDD_AMMO_VIEW }; 50 | CEdit m_Value; 51 | CEdit m_Name; 52 | CEdit m_EditorID; 53 | CEdit m_FormID; 54 | CEdit m_Model; 55 | CEdit m_Damage; 56 | CListBox m_Keywords; 57 | 58 | protected: 59 | virtual void OnInitialUpdate(); 60 | virtual void DoDataExchange(CDataExchange* pDX); 61 | 62 | 63 | protected: 64 | virtual ~CSrAmmoView(); 65 | 66 | #ifdef _DEBUG 67 | virtual void AssertValid() const; 68 | virtual void Dump(CDumpContext& dc) const; 69 | #endif 70 | 71 | 72 | DECLARE_MESSAGE_MAP(); 73 | 74 | public: 75 | 76 | CButton m_IgnoreResist; 77 | CButton m_Vanish; 78 | CEdit m_DropSound; 79 | CEdit m_PickupSound; 80 | CEdit m_Projectile; 81 | afx_msg void OnBnClickedEditProjectile(); 82 | afx_msg void OnBnClickedSelectprojectileButton(); 83 | afx_msg void OnDropProjectile (NMHDR* pNotifyStruct, LRESULT* pResult); 84 | }; 85 | /*=========================================================================== 86 | * End of Class CSrAmmoView Definition 87 | *=========================================================================*/ 88 | 89 | 90 | #endif 91 | /*=========================================================================== 92 | * End of File SrAmmoView.H 93 | *=========================================================================*/ 94 | -------------------------------------------------------------------------------- /dialogs/SrBodyPartsListDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrBodypartslistdlg.H 4 | * Author: Dave Humphrey (uesp@sympatico.ca) 5 | * Created On: 17 December 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRBODYPARTSLISTDLG_H 11 | #define __SRBODYPARTSLISTDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "modfile/srespfile.h" 20 | #include "resource.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrBodyPartsDlg Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrBodyPartsDlg : public CDialog { 32 | 33 | /*---------- Begin Protected Class Members ----------------*/ 34 | protected: 35 | dword m_BodyParts; 36 | CButton m_BodyButtons[16]; 37 | 38 | 39 | /*---------- Begin Public Class Methods ------------------*/ 40 | public: 41 | 42 | /* Constructor */ 43 | CSrBodyPartsDlg(CWnd* pParent = NULL); 44 | 45 | /* Get class members */ 46 | dword GetBodyParts (void) { return (m_BodyParts); } 47 | 48 | /* Set class members */ 49 | void SetBodyParts (const dword Flags) { m_BodyParts = Flags; } 50 | 51 | /* Get/Set control data */ 52 | void GetControlData (void); 53 | void SetControlData (void); 54 | 55 | 56 | //{{AFX_DATA(CSrBodyPartsDlg) 57 | enum { IDD = IDD_BODYPARTS_DLG }; 58 | CListBox m_PartsList; 59 | //}}AFX_DATA 60 | 61 | /* ClassWizard generated virtual function overrides */ 62 | //{{AFX_VIRTUAL(CSrBodyPartsDlg) 63 | protected: 64 | virtual void DoDataExchange(CDataExchange* pDX); 65 | //}}AFX_VIRTUAL 66 | 67 | protected: 68 | 69 | /* Generated message map functions */ 70 | virtual void OnOK(); 71 | virtual BOOL OnInitDialog(); 72 | 73 | DECLARE_MESSAGE_MAP(); 74 | 75 | }; 76 | /*=========================================================================== 77 | * End of Class CSrBodyPartsDlg Definition 78 | *=========================================================================*/ 79 | 80 | 81 | /*=========================================================================== 82 | * 83 | * Begin Function Prototypes 84 | * 85 | *=========================================================================*/ 86 | 87 | /* Show a model biped parts dialog */ 88 | bool SrEditBodyPartsDlg (dword& BodyParts); 89 | 90 | /*=========================================================================== 91 | * End of Function Prototypes 92 | *=========================================================================*/ 93 | 94 | 95 | #endif 96 | /*=========================================================================== 97 | * End of File SrBodypartslistdlg.H 98 | *=========================================================================*/ 99 | -------------------------------------------------------------------------------- /dialogs/SrBookView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrBookView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 17 Decemberr 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRBOOKVIEW_H 11 | #define __SRBOOKVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrBookView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrBookView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrBookView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrBookView(); 44 | 45 | void EnableSpellSkillControls (void); 46 | 47 | /*---------- Begin Public Class Methods ------------------------*/ 48 | public: 49 | enum { IDD = IDD_BOOK_VIEW }; 50 | CButton m_QuestItem; 51 | CEdit m_Value; 52 | CEdit m_Weight; 53 | CEdit m_Name; 54 | CEdit m_EditorID; 55 | CEdit m_FormID; 56 | CEdit m_Model; 57 | CListBox m_Keywords; 58 | CEdit m_PickupSound; 59 | CEdit m_CName; 60 | CEdit m_Description; 61 | CButton m_SkillBook; 62 | CButton m_NoteType; 63 | CButton m_SpellTome; 64 | CComboBox m_Skill; 65 | CEdit m_StaticModel; 66 | CEdit m_Spell; 67 | CButton m_EditSpellButton; 68 | CButton m_SelectSpellButton; 69 | 70 | protected: 71 | virtual void OnInitialUpdate(); 72 | virtual void DoDataExchange(CDataExchange* pDX); 73 | virtual ~CSrBookView(); 74 | 75 | #ifdef _DEBUG 76 | virtual void AssertValid() const; 77 | virtual void Dump(CDumpContext& dc) const; 78 | #endif 79 | 80 | DECLARE_MESSAGE_MAP(); 81 | 82 | public: 83 | 84 | afx_msg void OnBnClickedEditStaticmodel(); 85 | afx_msg void OnBnClickedSelectstaticmodelButton(); 86 | afx_msg void OnDropStaticModel (NMHDR* pNotifyStruct, LRESULT* pResult); 87 | 88 | afx_msg void OnBnClickedSkillbook(); 89 | afx_msg void OnBnClickedSpelltome(); 90 | 91 | afx_msg void OnBnClickedEditSpell(); 92 | afx_msg void OnBnClickedSelectspellButton(); 93 | afx_msg void OnDropSpell (NMHDR* pNotifyStruct, LRESULT* pResult); 94 | 95 | CListBox m_Scripts; 96 | }; 97 | /*=========================================================================== 98 | * End of Class CSrBookView Definition 99 | *=========================================================================*/ 100 | 101 | 102 | #endif 103 | /*=========================================================================== 104 | * End of File SrWeapview.H 105 | *=========================================================================*/ 106 | -------------------------------------------------------------------------------- /dialogs/SrBoundsDlg.cpp: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrBoundsDlg.CPP 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 6 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | 11 | /* Include Files */ 12 | #include "stdafx.h" 13 | #include "sredit.h" 14 | #include "dialogs\SrBoundsDlg.h" 15 | #include "afxdialogex.h" 16 | 17 | 18 | 19 | /*=========================================================================== 20 | * 21 | * Begin Local Definitions 22 | * 23 | *=========================================================================*/ 24 | IMPLEMENT_DYNAMIC(CSrBoundsDlg, CDialogEx) 25 | /*=========================================================================== 26 | * End of Local Definitions 27 | *=========================================================================*/ 28 | 29 | 30 | /*=========================================================================== 31 | * 32 | * Begin CSrSounView Message Map 33 | * 34 | *=========================================================================*/ 35 | BEGIN_MESSAGE_MAP(CSrBoundsDlg, CDialogEx) 36 | ON_BN_CLICKED(IDOK, &CSrBoundsDlg::OnBnClickedOk) 37 | END_MESSAGE_MAP() 38 | /*=========================================================================== 39 | * End of CSrSounView Message Map 40 | *=========================================================================*/ 41 | 42 | 43 | CSrBoundsDlg::CSrBoundsDlg(CWnd* pParent) : CDialogEx(CSrBoundsDlg::IDD, pParent) 44 | { 45 | 46 | } 47 | 48 | 49 | CSrBoundsDlg::~CSrBoundsDlg() 50 | { 51 | } 52 | 53 | 54 | void CSrBoundsDlg::DoDataExchange(CDataExchange* pDX) 55 | { 56 | CDialogEx::DoDataExchange(pDX); 57 | DDX_Control(pDX, IDC_X1, m_X1); 58 | DDX_Control(pDX, IDC_Y1, m_Y1); 59 | DDX_Control(pDX, IDC_Z1, m_Z1); 60 | DDX_Control(pDX, IDC_X2, m_X2); 61 | DDX_Control(pDX, IDC_Y2, m_Y2); 62 | DDX_Control(pDX, IDC_Z2, m_Z2); 63 | } 64 | 65 | 66 | void CSrBoundsDlg::SetControlData (void) 67 | { 68 | CString Buffer; 69 | 70 | Buffer.Format("%hd", m_BoundsData.X1); 71 | m_X1.SetWindowText(Buffer); 72 | 73 | Buffer.Format("%hd", m_BoundsData.Y1); 74 | m_Y1.SetWindowText(Buffer); 75 | 76 | Buffer.Format("%hd", m_BoundsData.Z1); 77 | m_Z1.SetWindowText(Buffer); 78 | 79 | Buffer.Format("%hd", m_BoundsData.X2); 80 | m_X2.SetWindowText(Buffer); 81 | 82 | Buffer.Format("%hd", m_BoundsData.Y2); 83 | m_Y2.SetWindowText(Buffer); 84 | 85 | Buffer.Format("%hd", m_BoundsData.Z2); 86 | m_Z2.SetWindowText(Buffer); 87 | } 88 | 89 | 90 | void CSrBoundsDlg::GetControlData (void) 91 | { 92 | CString Buffer; 93 | 94 | m_X1.GetWindowText(Buffer); 95 | SrFieldConvertShort(Buffer, m_BoundsData.X1); 96 | 97 | m_Y1.GetWindowText(Buffer); 98 | SrFieldConvertShort(Buffer, m_BoundsData.Y1); 99 | 100 | m_Z1.GetWindowText(Buffer); 101 | SrFieldConvertShort(Buffer, m_BoundsData.Z1); 102 | 103 | m_X2.GetWindowText(Buffer); 104 | SrFieldConvertShort(Buffer, m_BoundsData.X2); 105 | 106 | m_Y2.GetWindowText(Buffer); 107 | SrFieldConvertShort(Buffer, m_BoundsData.Y2); 108 | 109 | m_Z2.GetWindowText(Buffer); 110 | SrFieldConvertShort(Buffer, m_BoundsData.Z2); 111 | } 112 | 113 | 114 | void CSrBoundsDlg::OnBnClickedOk() 115 | { 116 | GetControlData(); 117 | CDialogEx::OnOK(); 118 | } 119 | 120 | 121 | BOOL CSrBoundsDlg::OnInitDialog() 122 | { 123 | CDialogEx::OnInitDialog(); 124 | 125 | SetControlData(); 126 | 127 | m_X1.SetFocus(); 128 | return FALSE; 129 | } 130 | 131 | 132 | bool SrEditBoundsDlg (srboundsdata_t& Data) 133 | { 134 | CSrBoundsDlg Dlg; 135 | 136 | Dlg.m_BoundsData = Data; 137 | 138 | if (Dlg.DoModal() != IDOK) return false; 139 | 140 | Data = Dlg.m_BoundsData; 141 | return true; 142 | } 143 | -------------------------------------------------------------------------------- /dialogs/SrBoundsDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrBoundsDlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 6 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRBOUNDSDLG_H 11 | #define __SRBOUNDSDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "modfile/subrecords/srboundssubrecord.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrBoundsDlg Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrBoundsDlg : public CDialogEx 32 | { 33 | DECLARE_DYNAMIC(CSrBoundsDlg) 34 | 35 | public: 36 | srboundsdata_t m_BoundsData; 37 | 38 | 39 | CSrBoundsDlg(CWnd* pParent = NULL); 40 | virtual ~CSrBoundsDlg(); 41 | 42 | enum { IDD = IDD_BOUNDS_DLG }; 43 | 44 | protected: 45 | virtual void DoDataExchange(CDataExchange* pDX); 46 | void SetControlData (void); 47 | void GetControlData (void); 48 | 49 | DECLARE_MESSAGE_MAP() 50 | public: 51 | CEdit m_X1; 52 | CEdit m_Y1; 53 | CEdit m_Z1; 54 | CEdit m_X2; 55 | CEdit m_Y2; 56 | CEdit m_Z2; 57 | afx_msg void OnBnClickedOk(); 58 | virtual BOOL OnInitDialog(); 59 | }; 60 | /*=========================================================================== 61 | * End of Class CSrBoundsDlg Definition 62 | *=========================================================================*/ 63 | 64 | 65 | bool SrEditBoundsDlg (srboundsdata_t& Data); 66 | 67 | 68 | #endif 69 | /*=========================================================================== 70 | * End of File SrBoundsDlg.H 71 | *=========================================================================*/ 72 | -------------------------------------------------------------------------------- /dialogs/SrCamsView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrCamsView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 6 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRCAMSVIEW_H 11 | #define __SRCAMSVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrCamsView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrCamsView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrCamsView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrCamsView(); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | enum { IDD = IDD_CAMS_VIEW }; 49 | CEdit m_EditorID; 50 | CEdit m_FormID; 51 | CEdit m_Model; 52 | 53 | protected: 54 | virtual void OnInitialUpdate(); 55 | virtual void DoDataExchange(CDataExchange* pDX); 56 | virtual ~CSrCamsView(); 57 | 58 | #ifdef _DEBUG 59 | virtual void AssertValid() const; 60 | virtual void Dump(CDumpContext& dc) const; 61 | #endif 62 | 63 | DECLARE_MESSAGE_MAP(); 64 | 65 | public: 66 | 67 | CEdit m_ImageSpace; 68 | afx_msg void OnBnClickedEditImagespace(); 69 | afx_msg void OnBnClickedSelectImagespace(); 70 | afx_msg void OnDropImageSpace (NMHDR* pNotifyStruct, LRESULT* pResult); 71 | CEdit m_X1; 72 | CEdit m_Y1; 73 | CEdit m_Z1; 74 | CEdit m_X2; 75 | CEdit m_Y2; 76 | CEdit m_Z2; 77 | CEdit m_Unknown1; 78 | CEdit m_Unknown2; 79 | CEdit m_Unknown3; 80 | CEdit m_Unknown4; 81 | }; 82 | /*=========================================================================== 83 | * End of Class CSrCamsView Definition 84 | *=========================================================================*/ 85 | 86 | 87 | #endif 88 | /*=========================================================================== 89 | * End of File SrCamsView.H 90 | *=========================================================================*/ 91 | -------------------------------------------------------------------------------- /dialogs/SrClasView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrClasview.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 2 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRCLASVIEW_H 11 | #define __SRCLASVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrClasView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrClasView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrClasView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | CSrClasView(); 43 | 44 | 45 | /*---------- Begin Public Class Methods ------------------------*/ 46 | public: 47 | enum { IDD = IDD_CLAS_VIEW }; 48 | CEdit m_Name; 49 | CEdit m_EditorID; 50 | CEdit m_FormID; 51 | 52 | 53 | protected: 54 | virtual void OnInitialUpdate(); 55 | virtual void DoDataExchange(CDataExchange* pDX); 56 | 57 | protected: 58 | virtual ~CSrClasView(); 59 | 60 | #ifdef _DEBUG 61 | virtual void AssertValid() const; 62 | virtual void Dump(CDumpContext& dc) const; 63 | #endif 64 | 65 | DECLARE_MESSAGE_MAP(); 66 | 67 | public: 68 | 69 | 70 | CEdit m_Unknown1; 71 | CEdit m_Unknown2; 72 | CEdit m_Unknown3; 73 | CEdit m_Unknown4; 74 | CEdit m_Unknown5; 75 | CEdit m_Unknown6; 76 | CEdit m_Unknown7; 77 | CEdit m_Unknown8; 78 | CEdit m_Description; 79 | 80 | CComboBox m_TrainerSkill; 81 | CEdit m_TrainerLevel; 82 | CEdit m_OneHand; 83 | CEdit m_TwoHand; 84 | CEdit m_Marksman; 85 | CEdit m_Block; 86 | CEdit m_Smithing; 87 | CEdit m_HeavyArmor; 88 | CEdit m_LightArmor; 89 | CEdit m_Pickpocketing; 90 | CEdit m_Lockpicking; 91 | CEdit m_Sneak; 92 | CEdit m_Alchemy; 93 | CEdit m_Speechcraft; 94 | CEdit m_Alteration; 95 | CEdit m_Conjuration; 96 | CEdit m_Destruction; 97 | CEdit m_Illusion; 98 | CEdit m_Restoration; 99 | CEdit m_Enchanting; 100 | }; 101 | /*=========================================================================== 102 | * End of Class CSrClasView Definition 103 | *=========================================================================*/ 104 | 105 | 106 | #endif 107 | /*=========================================================================== 108 | * End of File SrClasView.H 109 | *=========================================================================*/ 110 | -------------------------------------------------------------------------------- /dialogs/SrClfmView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Srclfmview.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 8 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRCLFMVIEW_H 11 | #define __SRCLFMVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "colorstatic.h" 21 | #include "afxwin.h" 22 | /*=========================================================================== 23 | * End of Required Includes 24 | *=========================================================================*/ 25 | 26 | 27 | /*=========================================================================== 28 | * 29 | * Begin Class CSrClfmView Definition 30 | * 31 | *=========================================================================*/ 32 | class CSrClfmView : public CSrRecordDialog 33 | { 34 | DECLARE_DYNCREATE(CSrClfmView); 35 | DECLARE_SRRECUIFIELDS(); 36 | 37 | /*---------- Begin Protected Class Members ---------------------*/ 38 | protected: 39 | 40 | 41 | /*---------- Begin Protected Class Methods ---------------------*/ 42 | protected: 43 | 44 | /* Protected constructor used by dynamic creation */ 45 | CSrClfmView(); 46 | 47 | void EnableCarried (const bool Enable); 48 | 49 | 50 | /*---------- Begin Public Class Methods ------------------------*/ 51 | public: 52 | enum { IDD = IDD_CLFM_VIEW }; 53 | CSpinButtonCtrl m_BlueSpin; 54 | CSpinButtonCtrl m_GreenSpin; 55 | CSpinButtonCtrl m_RedSpin; 56 | CColorStatic m_ColorBox; 57 | CEdit m_BlueColor; 58 | CEdit m_GreenColor; 59 | CEdit m_RedColor; 60 | CEdit m_Name; 61 | CEdit m_EditorID; 62 | CEdit m_FormID; 63 | 64 | protected: 65 | virtual void OnInitialUpdate(); 66 | virtual void DoDataExchange(CDataExchange* pDX); 67 | 68 | protected: 69 | virtual ~CSrClfmView(); 70 | 71 | #ifdef _DEBUG 72 | virtual void AssertValid() const; 73 | virtual void Dump(CDumpContext& dc) const; 74 | #endif 75 | 76 | afx_msg void OnColor(); 77 | afx_msg void OnChangeColor(); 78 | 79 | DECLARE_MESSAGE_MAP(); 80 | 81 | public: 82 | CEdit m_Unknown1; 83 | 84 | }; 85 | /*=========================================================================== 86 | * End of Class CSrClfmView Definition 87 | *=========================================================================*/ 88 | 89 | 90 | #endif 91 | /*=========================================================================== 92 | * End of File SrClfmView.H 93 | *=========================================================================*/ 94 | -------------------------------------------------------------------------------- /dialogs/SrEcznView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrEcznView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 9 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRECZNVIEW_H 11 | #define __SRECZNVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrEcznView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrEcznView : public CSrRecordDialog 32 | { 33 | DECLARE_DYNCREATE(CSrEcznView); 34 | DECLARE_SRRECUIFIELDS(); 35 | 36 | /*---------- Begin Protected Class Members ---------------------*/ 37 | protected: 38 | 39 | 40 | /*---------- Begin Protected Class Methods ---------------------*/ 41 | protected: 42 | 43 | /* Protected constructor used by dynamic creation */ 44 | CSrEcznView(); 45 | 46 | 47 | /*---------- Begin Public Class Methods ------------------------*/ 48 | public: 49 | enum { IDD = IDD_ECZN_VIEW }; 50 | CEdit m_EditorID; 51 | CEdit m_FormID; 52 | 53 | protected: 54 | virtual void OnInitialUpdate(); 55 | virtual void DoDataExchange(CDataExchange* pDX); 56 | virtual ~CSrEcznView(); 57 | 58 | #ifdef _DEBUG 59 | virtual void AssertValid() const; 60 | virtual void Dump(CDumpContext& dc) const; 61 | #endif 62 | 63 | DECLARE_MESSAGE_MAP(); 64 | 65 | public: 66 | 67 | CEdit m_Rank; 68 | CEdit m_MinLevel; 69 | CEdit m_Unknown3; 70 | CEdit m_Faction; 71 | CEdit m_Location; 72 | CButton m_ZoneReset; 73 | CButton m_ZoneUnknown1; 74 | CButton m_ZoneUnknown2; 75 | afx_msg void OnBnClickedEditFaction(); 76 | afx_msg void OnBnClickedSelectFaction(); 77 | afx_msg void OnBnClickedEditLocation(); 78 | afx_msg void OnBnClickedSelectLocation(); 79 | afx_msg void OnDropFaction (NMHDR* pNotifyStruct, LRESULT* pResult); 80 | afx_msg void OnDropLocation (NMHDR* pNotifyStruct, LRESULT* pResult); 81 | }; 82 | /*=========================================================================== 83 | * End of Class CSrEcznView Definition 84 | *=========================================================================*/ 85 | 86 | 87 | #endif 88 | /*=========================================================================== 89 | * End of File SrEcznView.H 90 | *=========================================================================*/ 91 | -------------------------------------------------------------------------------- /dialogs/SrEditFlagsDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrEditFlagsDlg.H 4 | * Author: Dave Humphrey (uesp@sympatico.ca) 5 | * Created On: 13 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SREDITFLAGSDLG_H 11 | #define __SREDITFLAGSDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "modfile/srespfile.h" 20 | #include "resource.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrEditFlagsDlg Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrEditFlagsDlg : public CDialog { 32 | 33 | /*---------- Begin Protected Class Members ----------------*/ 34 | protected: 35 | dword m_Flags; 36 | dword m_Mask; 37 | 38 | 39 | /*---------- Begin Public Class Methods ------------------*/ 40 | public: 41 | 42 | /* Constructor */ 43 | CSrEditFlagsDlg(CWnd* pParent = NULL); 44 | 45 | /* Get class members */ 46 | dword GetFlags (void) { return m_Flags; } 47 | 48 | /* Set class members */ 49 | void SetFlags (const dword Flags) { m_Flags = Flags; } 50 | void SetMask (const dword Mask) { m_Mask = Mask; } 51 | 52 | /* Get/Set control data */ 53 | void GetControlData (void); 54 | void SetControlData (void); 55 | 56 | 57 | enum { IDD = IDD_EDITFLAGS_DLG }; 58 | CListBox m_FlagsList; 59 | 60 | protected: 61 | virtual void DoDataExchange(CDataExchange* pDX); 62 | 63 | protected: 64 | 65 | /* Generated message map functions */ 66 | virtual void OnOK(); 67 | virtual BOOL OnInitDialog(); 68 | 69 | DECLARE_MESSAGE_MAP(); 70 | 71 | }; 72 | /*=========================================================================== 73 | * End of Class CSrEditFlagsDlg Definition 74 | *=========================================================================*/ 75 | 76 | 77 | /*=========================================================================== 78 | * 79 | * Begin Function Prototypes 80 | * 81 | *=========================================================================*/ 82 | 83 | /* Show a model biped parts dialog */ 84 | bool SrEditFlagsDlg (dword& Flags, const dword Mask); 85 | 86 | /*=========================================================================== 87 | * End of Function Prototypes 88 | *=========================================================================*/ 89 | 90 | 91 | #endif 92 | /*=========================================================================== 93 | * End of File SrEditFlagsDlg.H 94 | *=========================================================================*/ 95 | -------------------------------------------------------------------------------- /dialogs/SrFlstView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrFlstView.H 4 | * Author: Dave Humphrey (uesp@sympatico.ca) 5 | * Created On: 9 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRFLSTVIEW_H 11 | #define __SRFLSTVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "windows/srrecordlistctrl.h" 21 | #include "afxwin.h" 22 | /*=========================================================================== 23 | * End of Required Includes 24 | *=========================================================================*/ 25 | 26 | 27 | /*=========================================================================== 28 | * 29 | * Begin Class CSrFlstView Definition 30 | * 31 | *=========================================================================*/ 32 | class CSrFlstView : public CSrRecordDialog 33 | { 34 | DECLARE_DYNCREATE(CSrFlstView) 35 | DECLARE_SRRECUIFIELDS() 36 | 37 | /*---------- Begin Protected Class Members ----------------------------*/ 38 | protected: 39 | 40 | 41 | /*---------- Begin Protected Class Methods ----------------------------*/ 42 | protected: 43 | 44 | /* Protected constructor used by dynamic creation */ 45 | CSrFlstView(); 46 | virtual ~CSrFlstView(); 47 | 48 | /* Helper update methods */ 49 | void FillItemList (void); 50 | void SaveSubrecords (void); 51 | int AddItemList (const srformid_t FormID); 52 | 53 | /* Drag/drop helpers */ 54 | int OnDropCustomData (srrldroprecords_t& DropItems); 55 | int OnDropRecords (srrldroprecords_t& DropItems); 56 | 57 | 58 | /*---------- Begin Public Class Methods -------------------------------*/ 59 | public: 60 | 61 | /* Get and set data */ 62 | virtual void GetControlData (void); 63 | virtual void SetControlData (void); 64 | 65 | /* Listener events */ 66 | virtual int OnListenCleanRecord (CSrListenEvent* pEvent); 67 | virtual int OnListenUpdateRecord (CSrListenEvent* pEvent); 68 | virtual int GetListenEvents (void) { return (SR_EVENT_CLEANRECORD | SR_EVENT_UPDATERECORD); } 69 | 70 | enum { IDD = IDD_FLST_VIEW }; 71 | CEdit m_EditorID; 72 | CEdit m_FormID; 73 | CSrRecordListCtrl m_ItemList; 74 | 75 | protected: 76 | virtual void DoDataExchange(CDataExchange* pDX); 77 | 78 | 79 | #ifdef _DEBUG 80 | virtual void AssertValid() const; 81 | virtual void Dump(CDumpContext& dc) const; 82 | #endif 83 | 84 | virtual void OnInitialUpdate (void); 85 | afx_msg void OnContextMenu (CWnd* pWnd, CPoint Point); 86 | afx_msg LRESULT OnEditRecordMsg (WPARAM wParam, LPARAM lParam); 87 | afx_msg LRESULT OnEditBaseRecordMsg (WPARAM wParam, LPARAM lParam); 88 | afx_msg void OnDropItemList (NMHDR* pNotifyStruct, LRESULT* pResult); 89 | 90 | DECLARE_MESSAGE_MAP(); 91 | 92 | public: 93 | afx_msg void OnFlstlistAdd(); 94 | afx_msg void OnFlstlistEdit(); 95 | afx_msg void OnFlstlistDelete(); 96 | afx_msg void OnFlsttlistEditbase(); 97 | afx_msg void OnUpdateFlstlistEdit(CCmdUI *pCmdUI); 98 | afx_msg void OnBnClickedAddButton(); 99 | afx_msg void OnBnClickedEditButton(); 100 | afx_msg void OnBnClickedDeleteButton4(); 101 | }; 102 | /*=========================================================================== 103 | * End of Class CSrFlstView Definition 104 | *=========================================================================*/ 105 | 106 | 107 | #endif 108 | /*=========================================================================== 109 | * End of File SrFlstView.H 110 | *=========================================================================*/ 111 | -------------------------------------------------------------------------------- /dialogs/SrFunctionParamDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrFunctionParamDlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 26 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRFUNCTIONPARAMDLG_H 11 | #define __SRFUNCTIONPARAMDLG_H 12 | 13 | 14 | #include "afxwin.h" 15 | #include "afxcmn.h" 16 | #include "modfile/srmoddefs.h" 17 | 18 | 19 | #define SR_FUNCPARAMDLG_SUBITEM_NAME 0 20 | #define SR_FUNCPARAMDLG_SUBITEM_TYPE 1 21 | 22 | struct srfuncparasortdata_t 23 | { 24 | CListCtrl& List; 25 | int SubItem; 26 | bool SortReverse; 27 | bool IsRecordType; 28 | }; 29 | 30 | 31 | /*=========================================================================== 32 | * 33 | * Begin Class CSrFunctionParamDlg Definition 34 | * 35 | *=========================================================================*/ 36 | class CSrFunctionParamDlg : public CDialogEx 37 | { 38 | DECLARE_DYNAMIC(CSrFunctionParamDlg) 39 | 40 | protected: 41 | CString m_OrigParamValue; 42 | CString m_CurrentParamValue; 43 | CString m_FilterString; 44 | CSrRecordHandler* m_pRecordHandler; 45 | int m_ParamType; 46 | 47 | bool m_IsRecordType; 48 | const stringvalue_t* m_pStringValues; 49 | const srrectype_t* m_pRecordType; 50 | const CSrRecTypeArray* m_pRecordTypeArray; 51 | 52 | bool m_IsUpdating; 53 | bool m_LastSortOrder; 54 | int m_LastSortSubItem; 55 | int m_CurrentValueCheck; 56 | 57 | CEdit m_Filter; 58 | CEdit m_PreviousValue; 59 | CEdit m_CurrentValue; 60 | CListCtrl m_ParamList; 61 | 62 | 63 | protected: 64 | 65 | bool SetupListType (void); 66 | void FillParamList (void); 67 | void SetupParamList (void); 68 | void FillParamRecordList (void); 69 | void FillParamRecordArrayList (void); 70 | void FillParamStringValueList (void); 71 | void FillParamList (const srrectype_t RecordType); 72 | 73 | public: 74 | CSrFunctionParamDlg(CWnd* pParent = NULL); 75 | virtual ~CSrFunctionParamDlg(); 76 | 77 | bool DoModal (CString& ParamValue, const int ParamType, CSrRecordHandler& RecordHandler); 78 | 79 | enum { IDD = IDD_FUNCTIONPARAM_DLG }; 80 | 81 | protected: 82 | virtual void DoDataExchange(CDataExchange* pDX); 83 | 84 | DECLARE_MESSAGE_MAP() 85 | 86 | public: 87 | 88 | virtual BOOL OnInitDialog(); 89 | virtual void OnOK(); 90 | 91 | afx_msg void OnLvnItemchangingParamList(NMHDR *pNMHDR, LRESULT *pResult); 92 | afx_msg void OnDblclk (NMHDR* pNMHDR, LRESULT* pResult); 93 | afx_msg void OnEnChangeFilterText(); 94 | afx_msg void OnBnClickedClearFilter(); 95 | afx_msg void OnHelp (void); 96 | afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); 97 | afx_msg void OnLvnColumnclickParamList(NMHDR *pNMHDR, LRESULT *pResult); 98 | CStatic m_FilterLabel; 99 | CButton m_FilterReset; 100 | afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 101 | afx_msg void OnEnChangeCurrentText(); 102 | }; 103 | /*=========================================================================== 104 | * End of Class CSrFunctionParamDlg Definition 105 | *=========================================================================*/ 106 | 107 | 108 | /*=========================================================================== 109 | * 110 | * Begin Function Declarations 111 | * 112 | *=========================================================================*/ 113 | /*=========================================================================== 114 | * End of Function Declarations 115 | *=========================================================================*/ 116 | 117 | 118 | #endif 119 | /*=========================================================================== 120 | * End of File SrFunctionParamDlg.H 121 | *=========================================================================*/ 122 | 123 | -------------------------------------------------------------------------------- /dialogs/SrLighView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrLighview.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 18 December 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRLIGHVIEW_H 11 | #define __SRLIGHVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "colorstatic.h" 21 | #include "afxwin.h" 22 | /*=========================================================================== 23 | * End of Required Includes 24 | *=========================================================================*/ 25 | 26 | 27 | /*=========================================================================== 28 | * 29 | * Begin Class CSrLighView Definition 30 | * 31 | *=========================================================================*/ 32 | class CSrLighView : public CSrRecordDialog 33 | { 34 | DECLARE_DYNCREATE(CSrLighView); 35 | DECLARE_SRRECUIFIELDS(); 36 | 37 | /*---------- Begin Protected Class Members ---------------------*/ 38 | protected: 39 | bool m_Initialized; 40 | 41 | 42 | /*---------- Begin Protected Class Methods ---------------------*/ 43 | protected: 44 | 45 | /* Protected constructor used by dynamic creation */ 46 | CSrLighView(); 47 | 48 | void EnableCarried (const bool Enable); 49 | 50 | 51 | /*---------- Begin Public Class Methods ------------------------*/ 52 | public: 53 | enum { IDD = IDD_LIGH_VIEW }; 54 | CEdit m_Falloff; 55 | CEdit m_Radius; 56 | CEdit m_FOV; 57 | CSpinButtonCtrl m_BlueSpin; 58 | CSpinButtonCtrl m_GreenSpin; 59 | CSpinButtonCtrl m_RedSpin; 60 | CComboBox m_FlickerType; 61 | CColorStatic m_ColorBox; 62 | CEdit m_Fade; 63 | CEdit m_BlueColor; 64 | CEdit m_GreenColor; 65 | CEdit m_RedColor; 66 | CEdit m_Sound; 67 | CEdit m_Time; 68 | CEdit m_Icon; 69 | CEdit m_Model; 70 | CEdit m_Value; 71 | CEdit m_Weight; 72 | CEdit m_Name; 73 | CEdit m_EditorID; 74 | CEdit m_FormID; 75 | CButton m_QuestItem; 76 | 77 | protected: 78 | virtual void OnInitialUpdate(); 79 | virtual void DoDataExchange(CDataExchange* pDX); 80 | 81 | protected: 82 | virtual ~CSrLighView(); 83 | 84 | #ifdef _DEBUG 85 | virtual void AssertValid() const; 86 | virtual void Dump(CDumpContext& dc) const; 87 | #endif 88 | 89 | afx_msg void OnCarried(); 90 | afx_msg void OnColor(); 91 | afx_msg void OnChangeColor(); 92 | afx_msg void OnDropSound(NMHDR* pNotifyStruct, LRESULT* pResult); 93 | 94 | DECLARE_MESSAGE_MAP(); 95 | 96 | public: 97 | CButton m_Dynamic; 98 | CButton m_Carried; 99 | CButton m_SpotShadow; 100 | CButton m_UnknownFlag1; 101 | CButton m_UnknownFlag2; 102 | CButton m_UnknownFlag3; 103 | CEdit m_Unknown1; 104 | CEdit m_Unknown2; 105 | CEdit m_Unknown3; 106 | CEdit m_Unknown4; 107 | afx_msg void OnBnClickedEditSound(); 108 | afx_msg void OnBnClickedSelectsoundButton(); 109 | }; 110 | /*=========================================================================== 111 | * End of Class CSrLighView Definition 112 | *=========================================================================*/ 113 | 114 | 115 | #endif 116 | /*=========================================================================== 117 | * End of File SrLighview.H 118 | *=========================================================================*/ 119 | -------------------------------------------------------------------------------- /dialogs/SrLvliView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Srlvliview.H 4 | * Author: Dave Humphrey (uesp@sympatico.ca) 5 | * Created On: 17 December 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRLVLIVIEW_H 11 | #define __SRLVLIVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "windows/srrecordlistctrl.h" 21 | #include "afxwin.h" 22 | #include "srlvllistinfo.h" 23 | /*=========================================================================== 24 | * End of Required Includes 25 | *=========================================================================*/ 26 | 27 | 28 | /*=========================================================================== 29 | * 30 | * Begin Class CSrLvliView Definition 31 | * 32 | *=========================================================================*/ 33 | class CSrLvliView : public CSrRecordDialog 34 | { 35 | DECLARE_DYNCREATE(CSrLvliView) 36 | DECLARE_SRRECUIFIELDS() 37 | 38 | /*---------- Begin Protected Class Members ----------------------------*/ 39 | protected: 40 | CSrLvlListInfoArray m_LvlListInfo; 41 | 42 | 43 | /*---------- Begin Protected Class Methods ----------------------------*/ 44 | protected: 45 | 46 | /* Protected constructor used by dynamic creation */ 47 | CSrLvliView(); 48 | virtual ~CSrLvliView(); 49 | 50 | /* Helper update methods */ 51 | void FillItemList (void); 52 | void SaveSubrecords (void); 53 | int AddItemList (srlvllistinfo_t* pInfo); 54 | void UpdateItem (const int ListIndex, srlvllistinfo_t* pInfo); 55 | 56 | /* Drag/drop helpers */ 57 | int OnDropCustomData (srrldroprecords_t& DropItems); 58 | int OnDropRecords (srrldroprecords_t& DropItems); 59 | 60 | 61 | /*---------- Begin Public Class Methods -------------------------------*/ 62 | public: 63 | 64 | /* Get and set data */ 65 | virtual void GetControlData (void); 66 | virtual void SetControlData (void); 67 | 68 | /* Listener events */ 69 | virtual int OnListenCleanRecord (CSrListenEvent* pEvent); 70 | virtual int OnListenUpdateRecord (CSrListenEvent* pEvent); 71 | virtual int GetListenEvents (void) { return (SR_EVENT_CLEANRECORD | SR_EVENT_UPDATERECORD); } 72 | 73 | enum { IDD = IDD_LVLI_VIEW }; 74 | CButton m_CalculateEach; 75 | CButton m_CalculateAll; 76 | CEdit m_ChanceNone; 77 | CEdit m_EditorID; 78 | CEdit m_FormID; 79 | CSrRecordListCtrl m_ItemList; 80 | 81 | protected: 82 | virtual void DoDataExchange(CDataExchange* pDX); 83 | 84 | 85 | #ifdef _DEBUG 86 | virtual void AssertValid() const; 87 | virtual void Dump(CDumpContext& dc) const; 88 | #endif 89 | 90 | virtual void OnInitialUpdate (void); 91 | afx_msg void OnContextMenu (CWnd* pWnd, CPoint Point); 92 | afx_msg void OnLvllistEdit(); 93 | afx_msg void OnUpdateLvllistEdit(CCmdUI* pCmdUI); 94 | afx_msg void OnLvllistAdd(); 95 | afx_msg void OnLvllistDelete(); 96 | afx_msg void OnUpdateLvllistDelete(CCmdUI* pCmdUI); 97 | afx_msg void OnMinusCount(); 98 | afx_msg void OnAddCount(); 99 | afx_msg void OnMinusLevel(); 100 | afx_msg void OnAddLevel(); 101 | afx_msg LRESULT OnEditRecordMsg (WPARAM wParam, LPARAM lParam); 102 | afx_msg LRESULT OnEditBaseRecordMsg (WPARAM wParam, LPARAM lParam); 103 | afx_msg void OnLvlEditrecord(); 104 | afx_msg void OnDropItemList (NMHDR* pNotifyStruct, LRESULT* pResult); 105 | afx_msg void OnKeydownItemList (NMHDR* pHdr, LRESULT* lResult); 106 | 107 | DECLARE_MESSAGE_MAP(); 108 | 109 | public: 110 | CButton m_UseAll; 111 | CEdit m_Global; 112 | afx_msg void OnBnClickedEditGlobal(); 113 | afx_msg void OnBnClickedSelectGlobal(); 114 | }; 115 | /*=========================================================================== 116 | * End of Class CSrLvliView Definition 117 | *=========================================================================*/ 118 | 119 | 120 | #endif 121 | /*=========================================================================== 122 | * End of File Srlvliview.H 123 | *=========================================================================*/ 124 | -------------------------------------------------------------------------------- /dialogs/SrLvlnView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: Srlvlbview.H 4 | * Author: Dave Humphrey (uesp@sympatico.ca) 5 | * Created On: 17 December 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRLVLNVIEW_H 11 | #define __SRLVLNVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "windows/srrecordlistctrl.h" 21 | #include "afxwin.h" 22 | #include "srlvllistinfo.h" 23 | /*=========================================================================== 24 | * End of Required Includes 25 | *=========================================================================*/ 26 | 27 | 28 | /*=========================================================================== 29 | * 30 | * Begin Class CSrLvlnView Definition 31 | * 32 | *=========================================================================*/ 33 | class CSrLvlnView : public CSrRecordDialog 34 | { 35 | DECLARE_DYNCREATE(CSrLvlnView) 36 | DECLARE_SRRECUIFIELDS() 37 | 38 | /*---------- Begin Protected Class Members ----------------------------*/ 39 | protected: 40 | CSrLvlListInfoArray m_LvlListInfo; 41 | 42 | 43 | /*---------- Begin Protected Class Methods ----------------------------*/ 44 | protected: 45 | 46 | /* Protected constructor used by dynamic creation */ 47 | CSrLvlnView(); 48 | virtual ~CSrLvlnView(); 49 | 50 | /* Helper update methods */ 51 | void FillItemList (void); 52 | void SaveSubrecords (void); 53 | int AddItemList (srlvllistinfo_t* pInfo); 54 | void UpdateItem (const int ListIndex, srlvllistinfo_t* pInfo); 55 | 56 | /* Drag/drop helpers */ 57 | int OnDropCustomData (srrldroprecords_t& DropItems); 58 | int OnDropRecords (srrldroprecords_t& DropItems); 59 | 60 | 61 | /*---------- Begin Public Class Methods -------------------------------*/ 62 | public: 63 | 64 | /* Get and set data */ 65 | virtual void GetControlData (void); 66 | virtual void SetControlData (void); 67 | 68 | /* Listener events */ 69 | virtual int OnListenCleanRecord (CSrListenEvent* pEvent); 70 | virtual int OnListenUpdateRecord (CSrListenEvent* pEvent); 71 | virtual int GetListenEvents (void) { return (SR_EVENT_CLEANRECORD | SR_EVENT_UPDATERECORD); } 72 | 73 | enum { IDD = IDD_LVLN_VIEW }; 74 | CButton m_CalculateEach; 75 | CButton m_CalculateAll; 76 | CEdit m_ChanceNone; 77 | CEdit m_EditorID; 78 | CEdit m_FormID; 79 | CSrRecordListCtrl m_ItemList; 80 | 81 | protected: 82 | virtual void DoDataExchange(CDataExchange* pDX); 83 | 84 | 85 | #ifdef _DEBUG 86 | virtual void AssertValid() const; 87 | virtual void Dump(CDumpContext& dc) const; 88 | #endif 89 | 90 | virtual void OnInitialUpdate (void); 91 | afx_msg void OnContextMenu (CWnd* pWnd, CPoint Point); 92 | afx_msg void OnLvllistEdit(); 93 | afx_msg void OnUpdateLvllistEdit(CCmdUI* pCmdUI); 94 | afx_msg void OnLvllistAdd(); 95 | afx_msg void OnLvllistDelete(); 96 | afx_msg void OnUpdateLvllistDelete(CCmdUI* pCmdUI); 97 | afx_msg void OnMinusCount(); 98 | afx_msg void OnAddCount(); 99 | afx_msg void OnMinusLevel(); 100 | afx_msg void OnAddLevel(); 101 | afx_msg LRESULT OnEditRecordMsg (WPARAM wParam, LPARAM lParam); 102 | afx_msg LRESULT OnEditBaseRecordMsg (WPARAM wParam, LPARAM lParam); 103 | afx_msg void OnLvlEditrecord(); 104 | afx_msg void OnDropItemList (NMHDR* pNotifyStruct, LRESULT* pResult); 105 | afx_msg void OnKeydownItemList (NMHDR* pHdr, LRESULT* lResult); 106 | 107 | DECLARE_MESSAGE_MAP(); 108 | 109 | public: 110 | CButton m_UseAll; 111 | CEdit m_Model; 112 | }; 113 | /*=========================================================================== 114 | * End of Class CSrLvlnView Definition 115 | *=========================================================================*/ 116 | 117 | 118 | #endif 119 | /*=========================================================================== 120 | * End of File Srlvliview.H 121 | *=========================================================================*/ 122 | -------------------------------------------------------------------------------- /dialogs/SrLvspView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrLvspView.H 4 | * Author: Dave Humphrey (uesp@sympatico.ca) 5 | * Created On: 17 December 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRLVSPVIEW_H 11 | #define __SRLVSPVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "windows/srrecordlistctrl.h" 21 | #include "afxwin.h" 22 | #include "srlvllistinfo.h" 23 | /*=========================================================================== 24 | * End of Required Includes 25 | *=========================================================================*/ 26 | 27 | 28 | /*=========================================================================== 29 | * 30 | * Begin Class CSrLvspView Definition 31 | * 32 | *=========================================================================*/ 33 | class CSrLvspView : public CSrRecordDialog 34 | { 35 | DECLARE_DYNCREATE(CSrLvspView) 36 | DECLARE_SRRECUIFIELDS() 37 | 38 | /*---------- Begin Protected Class Members ----------------------------*/ 39 | protected: 40 | CSrLvlListInfoArray m_LvlListInfo; 41 | 42 | 43 | /*---------- Begin Protected Class Methods ----------------------------*/ 44 | protected: 45 | 46 | /* Protected constructor used by dynamic creation */ 47 | CSrLvspView(); 48 | virtual ~CSrLvspView(); 49 | 50 | /* Helper update methods */ 51 | void FillItemList (void); 52 | void SaveSubrecords (void); 53 | int AddItemList (srlvllistinfo_t* pInfo); 54 | void UpdateItem (const int ListIndex, srlvllistinfo_t* pInfo); 55 | 56 | /* Drag/drop helpers */ 57 | int OnDropCustomData (srrldroprecords_t& DropItems); 58 | int OnDropRecords (srrldroprecords_t& DropItems); 59 | 60 | 61 | /*---------- Begin Public Class Methods -------------------------------*/ 62 | public: 63 | 64 | /* Get and set data */ 65 | virtual void GetControlData (void); 66 | virtual void SetControlData (void); 67 | 68 | /* Listener events */ 69 | virtual int OnListenCleanRecord (CSrListenEvent* pEvent); 70 | virtual int OnListenUpdateRecord (CSrListenEvent* pEvent); 71 | virtual int GetListenEvents (void) { return (SR_EVENT_CLEANRECORD | SR_EVENT_UPDATERECORD); } 72 | 73 | enum { IDD = IDD_LVSP_VIEW }; 74 | CButton m_CalculateEach; 75 | CButton m_CalculateAll; 76 | CEdit m_ChanceNone; 77 | CEdit m_EditorID; 78 | CEdit m_FormID; 79 | CSrRecordListCtrl m_ItemList; 80 | 81 | protected: 82 | virtual void DoDataExchange(CDataExchange* pDX); 83 | 84 | 85 | #ifdef _DEBUG 86 | virtual void AssertValid() const; 87 | virtual void Dump(CDumpContext& dc) const; 88 | #endif 89 | 90 | virtual void OnInitialUpdate (void); 91 | afx_msg void OnContextMenu (CWnd* pWnd, CPoint Point); 92 | afx_msg void OnLvllistEdit(); 93 | afx_msg void OnUpdateLvllistEdit(CCmdUI* pCmdUI); 94 | afx_msg void OnLvllistAdd(); 95 | afx_msg void OnLvllistDelete(); 96 | afx_msg void OnUpdateLvllistDelete(CCmdUI* pCmdUI); 97 | afx_msg void OnMinusCount(); 98 | afx_msg void OnAddCount(); 99 | afx_msg void OnMinusLevel(); 100 | afx_msg void OnAddLevel(); 101 | afx_msg LRESULT OnEditRecordMsg (WPARAM wParam, LPARAM lParam); 102 | afx_msg LRESULT OnEditBaseRecordMsg (WPARAM wParam, LPARAM lParam); 103 | afx_msg void OnLvlEditrecord(); 104 | afx_msg void OnDropItemList (NMHDR* pNotifyStruct, LRESULT* pResult); 105 | afx_msg void OnKeydownItemList (NMHDR* pHdr, LRESULT* lResult); 106 | 107 | DECLARE_MESSAGE_MAP(); 108 | 109 | public: 110 | CButton m_UseAll; 111 | }; 112 | /*=========================================================================== 113 | * End of Class CSrLvspView Definition 114 | *=========================================================================*/ 115 | 116 | 117 | #endif 118 | /*=========================================================================== 119 | * End of File SrLvspView.H 120 | *=========================================================================*/ 121 | -------------------------------------------------------------------------------- /dialogs/SrMiscView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrMiscView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 17 December 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRMISCVIEW_H 11 | #define __SRMISCVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrMiscView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrMiscView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrMiscView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrMiscView(); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | enum { IDD = IDD_MISC_VIEW }; 49 | CButton m_QuestItem; 50 | CEdit m_Value; 51 | CEdit m_Weight; 52 | CEdit m_Name; 53 | CEdit m_EditorID; 54 | CEdit m_FormID; 55 | CEdit m_Model; 56 | CEdit m_PickupSound; 57 | CEdit m_DropSound; 58 | CListBox m_Keywords; 59 | 60 | protected: 61 | virtual void OnInitialUpdate(); 62 | virtual void DoDataExchange(CDataExchange* pDX); 63 | virtual ~CSrMiscView(); 64 | 65 | #ifdef _DEBUG 66 | virtual void AssertValid() const; 67 | virtual void Dump(CDumpContext& dc) const; 68 | #endif 69 | 70 | DECLARE_MESSAGE_MAP(); 71 | 72 | public: 73 | 74 | CListBox m_Scripts; 75 | }; 76 | /*=========================================================================== 77 | * End of Class CSrMiscView Definition 78 | *=========================================================================*/ 79 | 80 | 81 | #endif 82 | /*=========================================================================== 83 | * End of File SrMiscView.H 84 | *=========================================================================*/ 85 | -------------------------------------------------------------------------------- /dialogs/SrNewScriptPropertyDlg.cpp: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrNewScriptPropertyDlg.cpp 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 3 February 2012 6 | * 7 | *=========================================================================*/ 8 | #include "stdafx.h" 9 | #include "sredit.h" 10 | #include "dialogs\SrNewScriptPropertyDlg.h" 11 | #include "afxdialogex.h" 12 | #include "scripts/SrScriptFile.h" 13 | 14 | 15 | /*=========================================================================== 16 | * 17 | * Begin Local Definitions 18 | * 19 | *=========================================================================*/ 20 | IMPLEMENT_DYNAMIC(CSrNewScriptPropertyDlg, CDialogEx) 21 | /*=========================================================================== 22 | * End of Local Definitions 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Message Map 29 | * 30 | *=========================================================================*/ 31 | BEGIN_MESSAGE_MAP(CSrNewScriptPropertyDlg, CDialogEx) 32 | END_MESSAGE_MAP() 33 | /*=========================================================================== 34 | * End Message Map 35 | *=========================================================================*/ 36 | 37 | 38 | CSrNewScriptPropertyDlg::CSrNewScriptPropertyDlg(CWnd* pParent) 39 | : CDialogEx(CSrNewScriptPropertyDlg::IDD, pParent) 40 | { 41 | 42 | } 43 | 44 | CSrNewScriptPropertyDlg::~CSrNewScriptPropertyDlg() 45 | { 46 | } 47 | 48 | void CSrNewScriptPropertyDlg::DoDataExchange(CDataExchange* pDX) 49 | { 50 | CDialogEx::DoDataExchange(pDX); 51 | DDX_Control(pDX, IDC_ARRAYCHECK, m_ArrayCheck); 52 | DDX_Control(pDX, IDC_HIDDENCHECK, m_HiddenCheck); 53 | DDX_Control(pDX, IDC_PROPERTYTYPES, m_TypeList); 54 | DDX_Control(pDX, IDC_PROPERTYNAME, m_Name); 55 | DDX_Control(pDX, IDC_PROPERTYVALUE, m_Value); 56 | DDX_Control(pDX, IDC_PROPERTYDOC, m_Document); 57 | } 58 | 59 | 60 | void CSrNewScriptPropertyDlg::FillTypeList (void) 61 | { 62 | int ListIndex; 63 | 64 | m_TypeList.ResetContent(); 65 | 66 | //Note: Skip first array element on purpose 67 | for (dword i = 1; g_SrScriptRefTypes[i].pName != NULL; ++i) 68 | { 69 | ListIndex = m_TypeList.AddString(g_SrScriptRefTypes[i].pName); 70 | } 71 | 72 | /* Add predefined property types */ 73 | m_TypeList.AddString("bool"); 74 | m_TypeList.AddString("int"); 75 | m_TypeList.AddString("float"); 76 | m_TypeList.AddString("string"); 77 | 78 | m_TypeList.SetCurSel(0); 79 | } 80 | 81 | 82 | BOOL CSrNewScriptPropertyDlg::OnInitDialog() 83 | { 84 | CDialogEx::OnInitDialog(); 85 | 86 | FillTypeList(); 87 | 88 | return TRUE; 89 | } 90 | 91 | 92 | void CSrNewScriptPropertyDlg::GetControlData (void) 93 | { 94 | CString Buffer; 95 | 96 | m_TypeList.GetWindowTextA(Buffer); 97 | m_NewProperty.Type = Buffer; 98 | m_Name.GetWindowTextA(Buffer); 99 | m_NewProperty.Name = Buffer; 100 | m_Value.GetWindowTextA(Buffer); 101 | m_NewProperty.Value = Buffer; 102 | m_Document.GetWindowTextA(Buffer); 103 | m_NewProperty.Document = Buffer; 104 | 105 | m_NewProperty.Name.RemoveCharsToMatch(iscsym); 106 | m_NewProperty.Name.Trim(); 107 | m_NewProperty.Value.Trim(); 108 | 109 | m_NewProperty.Hidden = m_HiddenCheck.GetCheck() != 0; 110 | m_NewProperty.Array = m_ArrayCheck.GetCheck() != 0; 111 | } 112 | 113 | 114 | void CSrNewScriptPropertyDlg::OnOK (void) 115 | { 116 | GetControlData(); 117 | CDialogEx::OnOK(); 118 | } 119 | 120 | 121 | bool CSrNewScriptPropertyDlg::DoModal (srnewscriptpropertyinfo_t& Property) 122 | { 123 | int Result; 124 | 125 | Result = CDialogEx::DoModal(); 126 | if (Result != IDOK) return false; 127 | 128 | Property = m_NewProperty; 129 | return true; 130 | } 131 | 132 | 133 | -------------------------------------------------------------------------------- /dialogs/SrNewScriptPropertyDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrNewScriptPropertyDlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 3 February 2012 6 | * 7 | *=========================================================================*/ 8 | #ifndef __SRNEWSCRIPTPROPERTYDLG_H 9 | #define __SRNEWSCRIPTPROPERTYDLG_H 10 | 11 | 12 | /*=========================================================================== 13 | * 14 | * Begin Required Includes 15 | * 16 | *=========================================================================*/ 17 | #include "scripts/SrScriptFile.h" 18 | #include "modfile/subrecords/srvmadsubrecord.h" 19 | #include "afxwin.h" 20 | #include "afxcmn.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrNewScriptPropertyDlg 29 | * 30 | *=========================================================================*/ 31 | class CSrNewScriptPropertyDlg : public CDialogEx 32 | { 33 | DECLARE_DYNAMIC(CSrNewScriptPropertyDlg) 34 | 35 | protected: 36 | srnewscriptpropertyinfo_t m_NewProperty; 37 | 38 | 39 | protected: 40 | void GetControlData (void); 41 | void FillTypeList (void); 42 | 43 | public: 44 | CSrNewScriptPropertyDlg(CWnd* pParent = NULL); 45 | virtual ~CSrNewScriptPropertyDlg(); 46 | 47 | bool DoModal (srnewscriptpropertyinfo_t& Property); 48 | 49 | enum { IDD = IDD_NEWSCRIPTPROPERTY_DLG }; 50 | 51 | protected: 52 | virtual void DoDataExchange(CDataExchange* pDX); 53 | virtual void OnOK (void); 54 | 55 | DECLARE_MESSAGE_MAP() 56 | 57 | public: 58 | virtual BOOL OnInitDialog(); 59 | CButton m_ArrayCheck; 60 | CButton m_HiddenCheck; 61 | CComboBox m_TypeList; 62 | CEdit m_Name; 63 | CEdit m_Value; 64 | CEdit m_Document; 65 | }; 66 | /*=========================================================================== 67 | * End of Class CSrNewScriptPropertyDlg 68 | *=========================================================================*/ 69 | 70 | 71 | #endif 72 | /*=========================================================================== 73 | * End of File SrNewScriptPropertyDlg.h 74 | *=========================================================================*/ 75 | -------------------------------------------------------------------------------- /dialogs/SrOtftView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrOtftView.H 4 | * Author: Dave Humphrey (uesp@sympatico.ca) 5 | * Created On: 8 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SROTFTVIEW_H 11 | #define __SROTFTVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "windows/srrecordlistctrl.h" 21 | #include "afxwin.h" 22 | /*=========================================================================== 23 | * End of Required Includes 24 | *=========================================================================*/ 25 | 26 | 27 | /*=========================================================================== 28 | * 29 | * Begin Class CSrOtftView Definition 30 | * 31 | *=========================================================================*/ 32 | class CSrOtftView : public CSrRecordDialog 33 | { 34 | DECLARE_DYNCREATE(CSrOtftView) 35 | DECLARE_SRRECUIFIELDS() 36 | 37 | /*---------- Begin Protected Class Members ----------------------------*/ 38 | protected: 39 | 40 | 41 | /*---------- Begin Protected Class Methods ----------------------------*/ 42 | protected: 43 | 44 | /* Protected constructor used by dynamic creation */ 45 | CSrOtftView(); 46 | virtual ~CSrOtftView(); 47 | 48 | /* Helper update methods */ 49 | void FillItemList (void); 50 | void SaveSubrecords (void); 51 | int AddItemList (const srformid_t FormID); 52 | void UpdateItem (const int ListIndex, CSrIdRecord* pRecord); 53 | 54 | /* Drag/drop helpers */ 55 | int OnDropCustomData (srrldroprecords_t& DropItems); 56 | int OnDropRecords (srrldroprecords_t& DropItems); 57 | 58 | 59 | /*---------- Begin Public Class Methods -------------------------------*/ 60 | public: 61 | 62 | /* Get and set data */ 63 | virtual void GetControlData (void); 64 | virtual void SetControlData (void); 65 | 66 | /* Listener events */ 67 | virtual int OnListenCleanRecord (CSrListenEvent* pEvent); 68 | virtual int OnListenUpdateRecord (CSrListenEvent* pEvent); 69 | virtual int GetListenEvents (void) { return (SR_EVENT_CLEANRECORD | SR_EVENT_UPDATERECORD); } 70 | 71 | enum { IDD = IDD_OTFT_VIEW }; 72 | CEdit m_EditorID; 73 | CEdit m_FormID; 74 | CSrRecordListCtrl m_ItemList; 75 | 76 | protected: 77 | virtual void DoDataExchange(CDataExchange* pDX); 78 | 79 | 80 | #ifdef _DEBUG 81 | virtual void AssertValid() const; 82 | virtual void Dump(CDumpContext& dc) const; 83 | #endif 84 | 85 | LRESULT OnEditRecordMsg (WPARAM wParam, LPARAM lParam); 86 | LRESULT OnEditBaseRecordMsg (WPARAM wParam, LPARAM lParam); 87 | virtual void OnInitialUpdate (void); 88 | afx_msg void OnContextMenu (CWnd* pWnd, CPoint Point); 89 | afx_msg void OnDropItemList (NMHDR* pNotifyStruct, LRESULT* pResult); 90 | 91 | DECLARE_MESSAGE_MAP(); 92 | 93 | public: 94 | afx_msg void OnOutfitlistAdd(); 95 | afx_msg void OnOutfitlistDelete(); 96 | afx_msg void OnOutfitlistEdit(); 97 | afx_msg void OnOutfitlistEditBase(); 98 | afx_msg void OnUpdateOutfitlistMenu(CCmdUI *pCmdUI); 99 | afx_msg void OnBnClickedAddButton(); 100 | afx_msg void OnBnClickedEditButton(); 101 | afx_msg void OnBnClickedDeleteButton4(); 102 | }; 103 | /*=========================================================================== 104 | * End of Class CSrOtftView Definition 105 | *=========================================================================*/ 106 | 107 | 108 | #endif 109 | /*=========================================================================== 110 | * End of File SrOtftView.H 111 | *=========================================================================*/ 112 | -------------------------------------------------------------------------------- /dialogs/SrRacePageAttack.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxcmn.h" 3 | #include "afxwin.h" 4 | 5 | 6 | class CSrRacePageAttack : public CPropertyPage 7 | { 8 | DECLARE_DYNAMIC(CSrRacePageAttack) 9 | 10 | srraceinfo_t& m_RaceInfo; 11 | bool m_IsInitialized; 12 | srraceattackinfo_t* m_pCurrentAttack; 13 | 14 | int AddAttack (srraceattackinfo_t* pAttack); 15 | void EnableAttackControls (void); 16 | void SetCurrentAttack (srraceattackinfo_t* pAttack); 17 | void GetAttackControlData (void); 18 | void SetAttackControlData (void); 19 | void SetAttackCustomData(srrlcustomdata_t& CustomData, srraceattackinfo_t* pAttack); 20 | void UpdateAttackList(const int ListIndex, const bool Update); 21 | 22 | public: 23 | CSrRacePageAttack(srraceinfo_t& RaceInfo); 24 | virtual ~CSrRacePageAttack(); 25 | 26 | CSrEditDlgHandler* m_pDlgHandler; 27 | CSrRecordDialog* m_pParent; 28 | 29 | void GetControlData (void); 30 | void SetControlData (void); 31 | 32 | enum { IDD = IDD_RACE_ATTACKPAGE }; 33 | 34 | protected: 35 | virtual void DoDataExchange(CDataExchange* pDX); 36 | 37 | DECLARE_MESSAGE_MAP() 38 | public: 39 | CSrRecordListCtrl m_AttackList; 40 | CEdit m_AttackKeyword; 41 | afx_msg void OnBnClickedEditAttackkeyword(); 42 | afx_msg void OnBnClickedSelectAttackkeyword(); 43 | CEdit m_AttackUnknown1; 44 | CEdit m_AttackUnknown2; 45 | CEdit m_AttackUnknown3; 46 | CEdit m_AttackUnknown4; 47 | CEdit m_AttackUnknown5; 48 | CEdit m_AttackUnknown6; 49 | CEdit m_AttackUnknown7; 50 | CEdit m_AttackUnknown8; 51 | CEdit m_AttackUnknown9; 52 | CEdit m_AttackUnknown10; 53 | CButton m_EditKeyword; 54 | CButton m_SelectKeyword; 55 | virtual BOOL OnInitDialog(); 56 | CEdit m_AttackEvent; 57 | CButton m_DeleteAttack; 58 | afx_msg void OnLvnItemchangedAttacklist(NMHDR *pNMHDR, LRESULT *pResult); 59 | afx_msg void OnBnClickedAddAttack(); 60 | afx_msg void OnBnClickedDeleteAttack(); 61 | afx_msg void OnDropKeyword (NMHDR* pNotifyStruct, LRESULT* pResult); 62 | afx_msg void OnDropAttackList (NMHDR* pNotifyStruct, LRESULT* pResult); 63 | }; 64 | -------------------------------------------------------------------------------- /dialogs/SrRacePageBasic.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | class CSrRacePageBasic : public CPropertyPage 6 | { 7 | DECLARE_DYNAMIC(CSrRacePageBasic) 8 | 9 | srraceinfo_t& m_RaceInfo; 10 | 11 | public: 12 | CSrRacePageBasic(srraceinfo_t& RaceInfo); 13 | virtual ~CSrRacePageBasic(); 14 | 15 | CSrEditDlgHandler* m_pDlgHandler; 16 | CSrRecordDialog* m_pParent; 17 | 18 | void GetControlData (void); 19 | void SetControlData (void); 20 | 21 | 22 | enum { IDD = IDD_RACE_BASICPAGE }; 23 | 24 | protected: 25 | virtual void DoDataExchange(CDataExchange* pDX); 26 | 27 | DECLARE_MESSAGE_MAP() 28 | public: 29 | CEdit m_ItemName; 30 | CEdit m_Description; 31 | CComboBox m_ActorValue[7]; 32 | CEdit m_ActorSkill[7]; 33 | virtual BOOL OnInitDialog(); 34 | CButton m_RaceFlags; 35 | afx_msg void OnBnClickedRaceflags(); 36 | CListBox m_SpellList; 37 | CListBox m_Keywords; 38 | afx_msg void OnBnClickedAddSpell(); 39 | afx_msg void OnBnClickedEditSpell(); 40 | afx_msg void OnBnClickedDelSpell(); 41 | afx_msg void OnLbnDblclkSpells(); 42 | afx_msg void OnBnClickedAddkeywordButton(); 43 | afx_msg void OnBnClickedEditkeywordButton(); 44 | afx_msg void OnBnClickedDelkeywordButton(); 45 | afx_msg void OnDropKeywords (NMHDR* pNotifyStruct, LRESULT* pResult); 46 | afx_msg void OnDropSpells (NMHDR* pNotifyStruct, LRESULT* pResult); 47 | CListBox m_EquipSlots; 48 | afx_msg void OnBnClickedAddEquipslot(); 49 | afx_msg void OnBnClickedEditEquipslot(); 50 | afx_msg void OnBnClickedDelEquipslot(); 51 | afx_msg void OnDropEquipSlots (NMHDR* pNotifyStruct, LRESULT* pResult); 52 | CEdit m_UnequipSlot; 53 | afx_msg void OnBnClickedEditUnequipslot(); 54 | afx_msg void OnBnClickedSelectUnequipslot(); 55 | afx_msg void OnDropUnequipSlot (NMHDR* pNotifyStruct, LRESULT* pResult); 56 | afx_msg void OnLbnDblclkEquipslots(); 57 | }; 58 | -------------------------------------------------------------------------------- /dialogs/SrRacePageFace.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | #include "afxcmn.h" 4 | 5 | 6 | class CSrRacePageFace : public CPropertyPage 7 | { 8 | DECLARE_DYNAMIC(CSrRacePageFace) 9 | 10 | bool m_IsInitialized; 11 | srraceinfo_t& m_RaceInfo; 12 | CSrPhwtSubrecord* m_pCurrentWeight; 13 | 14 | int AddWeightList (CSrPhwtSubrecord* pWeight); 15 | void EnableWeightControls (void); 16 | void SetCurrentWeight (CSrPhwtSubrecord* pWeight); 17 | void GetWeightControlData (void); 18 | void SetWeightControlData (void); 19 | void UpdateWeightList(const int ListIndex, const bool Update); 20 | 21 | public: 22 | CSrRacePageFace(srraceinfo_t& RaceInfo); 23 | virtual ~CSrRacePageFace(); 24 | 25 | void GetControlData (void); 26 | void SetControlData (void); 27 | 28 | CSrEditDlgHandler* m_pDlgHandler; 29 | CSrRecordDialog* m_pParent; 30 | 31 | enum { IDD = IDD_RACE_FACEPAGE }; 32 | 33 | protected: 34 | virtual void DoDataExchange(CDataExchange* pDX); 35 | 36 | DECLARE_MESSAGE_MAP() 37 | public: 38 | virtual BOOL OnInitDialog(); 39 | CListBox m_FaceKeys; 40 | afx_msg void OnBnClickedAddFacekey(); 41 | afx_msg void OnBnClickedEditFacekey(); 42 | afx_msg void OnBnClickedDelFacekey(); 43 | afx_msg void OnLbnSelchangeFacekeys(); 44 | afx_msg void OnLbnDblclkFacekeys(); 45 | CSrRecordListCtrl m_FaceWeights; 46 | CEdit m_Weight[16]; 47 | CButton m_AddFaceWeight; 48 | afx_msg void OnBnClickedAddFaceweight(); 49 | afx_msg void OnBnClickedDeleteFaceweight(); 50 | afx_msg void OnDropFaceWeights (NMHDR* pNotifyStruct, LRESULT* pResult); 51 | afx_msg void OnLvnItemchangedFaceweights(NMHDR *pNMHDR, LRESULT *pResult); 52 | }; 53 | -------------------------------------------------------------------------------- /dialogs/SrRacePageHead1.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | #include "afxcmn.h" 4 | 5 | 6 | class CSrRacePageHead1 : public CPropertyPage 7 | { 8 | DECLARE_DYNAMIC(CSrRacePageHead1) 9 | 10 | bool m_IsInitialized; 11 | srraceinfo_t& m_RaceInfo; 12 | srraceheadinfo_t& m_HeadInfo; 13 | bool m_IsMale; 14 | 15 | srraceheadmpadata_t* m_pCurrentMpa; 16 | 17 | int AddMpaList (srraceheadmpadata_t* pMpa); 18 | void UpdateMpaList (const int ListIndex, const bool Update); 19 | void SetCurrentMpa (srraceheadmpadata_t* pMpa); 20 | void EnableMpaControls (void); 21 | void GetMpaControlData (void); 22 | void SetMpaControlData (void); 23 | 24 | 25 | public: 26 | CSrRacePageHead1(srraceinfo_t& RaceInfo, const bool IsMale); 27 | virtual ~CSrRacePageHead1(); 28 | 29 | void GetControlData (void); 30 | void SetControlData (void); 31 | 32 | CSrEditDlgHandler* m_pDlgHandler; 33 | CSrRecordDialog* m_pParent; 34 | 35 | enum { IDD = IDD_RACE_HEADPAGE1 }; 36 | 37 | protected: 38 | virtual void DoDataExchange(CDataExchange* pDX); 39 | 40 | DECLARE_MESSAGE_MAP() 41 | public: 42 | virtual BOOL OnInitDialog(); 43 | CListBox m_RacePresets; 44 | CListBox m_HairColors; 45 | CListBox m_FeatureSets; 46 | CEdit m_HeadFeature; 47 | afx_msg void OnBnClickedAddRacepreset(); 48 | afx_msg void OnBnClickedEditRacepreset(); 49 | afx_msg void OnBnClickedDelRacepreset(); 50 | afx_msg void OnBnClickedAddHaircolor(); 51 | afx_msg void OnBnClickedEditHaircolor(); 52 | afx_msg void OnBnClickedDelHaircolor(); 53 | afx_msg void OnBnClickedAddFeatureset(); 54 | afx_msg void OnBnClickedEditFeatureset(); 55 | afx_msg void OnBnClickedDelFeatureset(); 56 | afx_msg void OnBnClickedEditHeadfeature(); 57 | afx_msg void OnBnClickedSelectHeadfeature(); 58 | afx_msg void OnDropRacePresets (NMHDR* pNotifyStruct, LRESULT* pResult); 59 | afx_msg void OnDropHairColors (NMHDR* pNotifyStruct, LRESULT* pResult); 60 | afx_msg void OnDropFeatureSets (NMHDR* pNotifyStruct, LRESULT* pResult); 61 | afx_msg void OnDropHeadFeature (NMHDR* pNotifyStruct, LRESULT* pResult); 62 | afx_msg void OnLbnDblclkRacepresets(); 63 | afx_msg void OnLbnDblclkHaircolors(); 64 | afx_msg void OnLbnDblclkFeaturesets(); 65 | CListBox m_HeadParts; 66 | afx_msg void OnBnClickedAddHeadpart(); 67 | afx_msg void OnBnClickedEditHeadpart(); 68 | afx_msg void OnBnClickedDelHeadpart(); 69 | afx_msg void OnLbnDblclkHeadparts(); 70 | CSrRecordListCtrl m_MpaList; 71 | CEdit m_MpaData[8]; 72 | CButton m_DeleteMpa; 73 | afx_msg void OnBnClickedAddMpa(); 74 | afx_msg void OnBnClickedDeleteMpa(); 75 | afx_msg void OnLvnItemchangedMpalist(NMHDR *pNMHDR, LRESULT *pResult); 76 | afx_msg void OnDropMpaList (NMHDR* pNotifyStruct, LRESULT* pResult); 77 | }; 78 | -------------------------------------------------------------------------------- /dialogs/SrRacePageModel.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | class CSrRacePageModel : public CPropertyPage 6 | { 7 | DECLARE_DYNAMIC(CSrRacePageModel) 8 | 9 | srraceinfo_t& m_RaceInfo; 10 | 11 | public: 12 | CSrRacePageModel(srraceinfo_t& RaceInfo); 13 | virtual ~CSrRacePageModel(); 14 | 15 | void GetControlData (void); 16 | void SetControlData (void); 17 | 18 | enum { IDD = IDD_RACE_MODELPAGE }; 19 | 20 | CSrEditDlgHandler* m_pDlgHandler; 21 | CSrRecordDialog* m_pParent; 22 | 23 | 24 | 25 | protected: 26 | virtual void DoDataExchange(CDataExchange* pDX); 27 | 28 | DECLARE_MESSAGE_MAP() 29 | 30 | public: 31 | CEdit m_MaleHeight; 32 | CEdit m_FemaleHeight; 33 | CEdit m_MaleModel; 34 | CEdit m_FemaleModel; 35 | CButton m_BodyParts; 36 | afx_msg void OnBnClickedSelectMalemodel(); 37 | afx_msg void OnBnClickedSelectFemalemodel(); 38 | CEdit m_MaleEgtModel; 39 | CEdit m_MaleHavokModel; 40 | CEdit m_FemaleEgtModel; 41 | CEdit m_FemaleHavokModel; 42 | afx_msg void OnBnClickedSelectMaleegtmodel(); 43 | afx_msg void OnBnClickedSelectMalehavokmodel(); 44 | afx_msg void OnBnClickedSelectFemaleegtmodel(); 45 | afx_msg void OnBnClickedSelectFemalehavokmodel(); 46 | afx_msg void OnBnClickedBodydata(); 47 | CEdit m_DefaultVoice; 48 | afx_msg void OnBnClickedEditDefaultvoice(); 49 | afx_msg void OnBnClickedSelectDefaultvoice(); 50 | CEdit m_DefaultHairColor; 51 | afx_msg void OnBnClickedEditDefaulthaircolor(); 52 | afx_msg void OnBnClickedSelectDefaulthaircolor(); 53 | CEdit m_DecapitatedHead; 54 | afx_msg void OnBnClickedEditDecapitatedhead(); 55 | afx_msg void OnBnClickedSelectDecapitatedhead(); 56 | CEdit m_Material; 57 | afx_msg void OnBnClickedEditMaterial(); 58 | afx_msg void OnBnClickedSelectMaterial(); 59 | CEdit m_ImpactSet; 60 | afx_msg void OnBnClickedEditImpactset(); 61 | afx_msg void OnBnClickedSelectImpactset(); 62 | CEdit m_BloodFX; 63 | afx_msg void OnBnClickedEditBloodfx(); 64 | afx_msg void OnBnClickedSelectBloodfx(); 65 | CEdit m_OpenSound; 66 | afx_msg void OnBnClickedEditOpensound(); 67 | afx_msg void OnBnClickedSelectOpensound(); 68 | CEdit m_CloseSound; 69 | afx_msg void OnBnClickedEditClosesound(); 70 | afx_msg void OnBnClickedSelectClosesound(); 71 | CEdit m_Name8; 72 | afx_msg void OnBnClickedEditName8(); 73 | afx_msg void OnBnClickedSelectName8(); 74 | CEdit m_RName; 75 | afx_msg void OnBnClickedEditRname(); 76 | afx_msg void OnBnClickedSelectRname(); 77 | 78 | afx_msg void OnDropDefaultVoice (NMHDR* pNotifyStruct, LRESULT* pResult); 79 | afx_msg void OnDropDefaultHairColor (NMHDR* pNotifyStruct, LRESULT* pResult); 80 | afx_msg void OnDropDecapitatedHead (NMHDR* pNotifyStruct, LRESULT* pResult); 81 | afx_msg void OnDropDefaultVoice2 (NMHDR* pNotifyStruct, LRESULT* pResult); 82 | afx_msg void OnDropDefaultHairColor2 (NMHDR* pNotifyStruct, LRESULT* pResult); 83 | afx_msg void OnDropDecapitatedHead2 (NMHDR* pNotifyStruct, LRESULT* pResult); 84 | afx_msg void OnDropMaterial (NMHDR* pNotifyStruct, LRESULT* pResult); 85 | afx_msg void OnDropImpactSet (NMHDR* pNotifyStruct, LRESULT* pResult); 86 | afx_msg void OnDropBloodFX (NMHDR* pNotifyStruct, LRESULT* pResult); 87 | afx_msg void OnDropOpenSound (NMHDR* pNotifyStruct, LRESULT* pResult); 88 | afx_msg void OnDropCloseSound (NMHDR* pNotifyStruct, LRESULT* pResult); 89 | afx_msg void OnDropName8 (NMHDR* pNotifyStruct, LRESULT* pResult); 90 | afx_msg void OnDropRName (NMHDR* pNotifyStruct, LRESULT* pResult); 91 | CEdit m_DefaultVoice2; 92 | CEdit m_DefaultHairColor2; 93 | CEdit m_DecapitatedHead2; 94 | afx_msg void OnBnClickedEditDecapitatedhead2(); 95 | afx_msg void OnBnClickedSelectDecapitatedhead2(); 96 | afx_msg void OnBnClickedEditDefaulthaircolor2(); 97 | afx_msg void OnBnClickedSelectDefaulthaircolor2(); 98 | afx_msg void OnBnClickedEditDefaultvoice2(); 99 | afx_msg void OnBnClickedSelectDefaultvoice2(); 100 | }; 101 | -------------------------------------------------------------------------------- /dialogs/SrRacePageMove.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | #include "afxcmn.h" 4 | 5 | 6 | class CSrRacePageMove : public CPropertyPage 7 | { 8 | DECLARE_DYNAMIC(CSrRacePageMove) 9 | 10 | bool m_IsInitialized; 11 | srraceinfo_t& m_RaceInfo; 12 | srracemoveinfo_t* m_pCurrentMoveType; 13 | 14 | void SetMoveTypeList (void); 15 | int AddMoveTypeList (srracemoveinfo_t* pMoveType); 16 | void SetMoveTypeCustomData(srrlcustomdata_t& CustomData, srracemoveinfo_t* pMoveType); 17 | void UpdateMoveTypeList(const int ListIndex, const bool Update); 18 | 19 | void SetCurrentMoveType (srracemoveinfo_t* pMoveType); 20 | void EnableMoveControls (void); 21 | void GetMoveTypeControlData (void); 22 | void SetMoveTypeControlData (void); 23 | 24 | public: 25 | CSrRacePageMove(srraceinfo_t& RaceInfo); 26 | virtual ~CSrRacePageMove(); 27 | 28 | void GetControlData (void); 29 | void SetControlData (void); 30 | 31 | CSrEditDlgHandler* m_pDlgHandler; 32 | CSrRecordDialog* m_pParent; 33 | 34 | enum { IDD = IDD_RACE_MOVEPAGE }; 35 | 36 | protected: 37 | virtual void DoDataExchange(CDataExchange* pDX); 38 | 39 | DECLARE_MESSAGE_MAP() 40 | public: 41 | CListBox m_MoveNames; 42 | virtual BOOL OnInitDialog(); 43 | CEdit m_WalkMove; 44 | CEdit m_RunMove; 45 | CEdit m_SwimMove; 46 | CEdit m_FlyMove; 47 | CEdit m_SneakMove; 48 | afx_msg void OnBnClickedEditWalkmove(); 49 | afx_msg void OnBnClickedSelectWalkmove(); 50 | afx_msg void OnBnClickedEditRunmove(); 51 | afx_msg void OnBnClickedSelectRunmove(); 52 | afx_msg void OnBnClickedEditSwimmove(); 53 | afx_msg void OnBnClickedSelectSwimmove(); 54 | afx_msg void OnBnClickedEditFlymove(); 55 | afx_msg void OnBnClickedSelectFlymove(); 56 | afx_msg void OnBnClickedEditSneakmove(); 57 | afx_msg void OnBnClickedSelectSneakmove(); 58 | afx_msg void OnDropWalkMove (NMHDR* pNotifyStruct, LRESULT* pResult); 59 | afx_msg void OnDropRunMove (NMHDR* pNotifyStruct, LRESULT* pResult); 60 | afx_msg void OnDropSwimMove (NMHDR* pNotifyStruct, LRESULT* pResult); 61 | afx_msg void OnDropFlyMove (NMHDR* pNotifyStruct, LRESULT* pResult); 62 | afx_msg void OnDropSneakMove (NMHDR* pNotifyStruct, LRESULT* pResult); 63 | afx_msg void OnDropMoveType (NMHDR* pNotifyStruct, LRESULT* pResult); 64 | 65 | CSrRecordListCtrl m_MoveTypeList; 66 | CEdit m_MoveType; 67 | afx_msg void OnBnClickedEditMovetype(); 68 | afx_msg void OnBnClickedSelectMovetype(); 69 | CButton m_SelectMoveType; 70 | CButton m_EditMoveType; 71 | CEdit m_MoveUnknown[11]; 72 | CButton m_AddMoveType; 73 | CButton m_DeleteMoveType; 74 | afx_msg void OnBnClickedAddMovetype(); 75 | afx_msg void OnBnClickedDeleteMovetype(); 76 | afx_msg void OnLvnItemchangedMovetypelist(NMHDR *pNMHDR, LRESULT *pResult); 77 | afx_msg void OnDropMoveTypeList (NMHDR* pNotifyStruct, LRESULT* pResult); 78 | }; 79 | -------------------------------------------------------------------------------- /dialogs/SrRacePageTint.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | #include "afxcmn.h" 4 | 5 | 6 | class CSrRacePageTint : public CPropertyPage 7 | { 8 | DECLARE_DYNAMIC(CSrRacePageTint) 9 | 10 | bool m_IsInitialized; 11 | srraceinfo_t& m_RaceInfo; 12 | srraceheadinfo_t& m_HeadInfo; 13 | bool m_IsMale; 14 | 15 | srraceheadtintinfo_t* m_pCurrentTint; 16 | srraceheadtintdata_t* m_pCurrentTintData; 17 | 18 | void SetCurrentTint (srraceheadtintinfo_t* pTint); 19 | void EnableTintControls (void); 20 | void GetTintControlData (void); 21 | void SetTintControlData (void); 22 | int AddTintList (srraceheadtintinfo_t* pTint); 23 | void CreateTintCustomData (srrlcustomdata_t& CustomData, srraceheadtintinfo_t* pTint); 24 | void UpdateTintList (const int ListIndex, const bool Update); 25 | 26 | int AddTintDataList(srraceheadtintdata_t *pTintData); 27 | void UpdateTintDataList (const int ListIndex, const bool Update); 28 | void CreateTintDataCustomData (srrlcustomdata_t& CustomData, srraceheadtintdata_t* pTintData); 29 | void EnableTintDataControls (void); 30 | void SetCurrentTintData (srraceheadtintdata_t* pTintData); 31 | void GetTintDataControlData (void); 32 | void SetTintDataControlData (void); 33 | void UpdateTintCustomData (void); 34 | 35 | void DropListCreateTint (CSrRefSubrecordArray& Subrecords); 36 | 37 | public: 38 | CSrRacePageTint(srraceinfo_t& RaceInfo, const bool IsMale); 39 | virtual ~CSrRacePageTint(); 40 | 41 | void GetControlData (void); 42 | void SetControlData (void); 43 | 44 | CSrEditDlgHandler* m_pDlgHandler; 45 | CSrRecordDialog* m_pParent; 46 | 47 | enum { IDD = IDD_RACE_TINTPAGE }; 48 | 49 | protected: 50 | virtual void DoDataExchange(CDataExchange* pDX); 51 | 52 | DECLARE_MESSAGE_MAP() 53 | public: 54 | CEdit m_Index; 55 | CEdit m_MaskFile; 56 | CEdit m_TindColor; 57 | CButton m_SelectMaskFile; 58 | CButton m_EditTind; 59 | CButton m_SelectTind; 60 | CEdit m_Tinp; 61 | CSrRecordListCtrl m_TintDataList; 62 | CSrRecordListCtrl m_TintList; 63 | CButton m_AddTintData; 64 | CButton m_DeleteTintData; 65 | CButton m_DeleteTint; 66 | virtual BOOL OnInitDialog(); 67 | afx_msg void OnLvnItemchangedTintlist(NMHDR *pNMHDR, LRESULT *pResult); 68 | afx_msg void OnBnClickedAddTint(); 69 | afx_msg void OnBnClickedDeleteTint(); 70 | afx_msg void OnBnClickedSelectTintmask(); 71 | afx_msg void OnBnClickedEditTindcolor(); 72 | afx_msg void OnBnClickedSelectTindcolor(); 73 | afx_msg void OnBnClickedAddTintdata(); 74 | afx_msg void OnBnClickedDeleteTintdata(); 75 | afx_msg void OnDropMaskFile (NMHDR* pNotifyStruct, LRESULT* pResult); 76 | afx_msg void OnDropTintList (NMHDR* pNotifyStruct, LRESULT* pResult); 77 | afx_msg void OnDropTintDataList (NMHDR* pNotifyStruct, LRESULT* pResult); 78 | afx_msg void OnDropTindColor (NMHDR* pNotifyStruct, LRESULT* pResult); 79 | afx_msg void OnDropDataColor (NMHDR* pNotifyStruct, LRESULT* pResult); 80 | CEdit m_DataTinc; 81 | CEdit m_DataTinv; 82 | CEdit m_DataTirs; 83 | CButton m_EditDataTinc; 84 | CButton m_SelectDataTinc; 85 | afx_msg void OnLvnItemchangedTintdatalist(NMHDR *pNMHDR, LRESULT *pResult); 86 | afx_msg void OnBnClickedEditDatatinc(); 87 | afx_msg void OnBnClickedSelectDatatinc(); 88 | }; 89 | -------------------------------------------------------------------------------- /dialogs/SrRacePageUnknown.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | #include "afxcmn.h" 4 | 5 | 6 | // CSrRacePageUnknown dialog 7 | 8 | class CSrRacePageUnknown : public CPropertyPage 9 | { 10 | DECLARE_DYNAMIC(CSrRacePageUnknown) 11 | 12 | srraceinfo_t& m_RaceInfo; 13 | 14 | public: 15 | CSrRacePageUnknown(srraceinfo_t& RaceInfo); 16 | virtual ~CSrRacePageUnknown(); 17 | 18 | void GetControlData (void); 19 | void SetControlData (void); 20 | 21 | 22 | enum { IDD = IDD_RACE_UNKNOWNPAGE }; 23 | 24 | CSrEditDlgHandler* m_pDlgHandler; 25 | CSrRecordDialog* m_pParent; 26 | 27 | protected: 28 | virtual void DoDataExchange(CDataExchange* pDX); 29 | 30 | CEdit m_Unknown[26]; 31 | 32 | DECLARE_MESSAGE_MAP() 33 | public: 34 | CEdit m_Tinl; 35 | CEdit m_PName; 36 | CEdit m_UName; 37 | CEdit m_VName; 38 | CListCtrl m_BodyNameList; 39 | afx_msg void OnLvnItemActivateBodynamelist(NMHDR *pNMHDR, LRESULT *pResult); 40 | virtual BOOL OnInitDialog(); 41 | }; 42 | -------------------------------------------------------------------------------- /dialogs/SrRaceView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrRaceView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 12 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRRACEVIEW_H 11 | #define __SRRACEVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | #include "afxcmn.h" 22 | #include "windows/tabctrlsheet.h" 23 | #include "SrRacePageBasic.h" 24 | #include "SrRacePageMove.h" 25 | #include "SrRacePageAttack.h" 26 | #include "SrRacePageModel.h" 27 | #include "SrRacePageUnknown.h" 28 | #include "SrRacePageFace.h" 29 | #include "SrRacePageHead1.h" 30 | #include "SrRacePageTint.h" 31 | /*=========================================================================== 32 | * End of Required Includes 33 | *=========================================================================*/ 34 | 35 | 36 | /*=========================================================================== 37 | * 38 | * Begin Class CSrRaceView Definition 39 | * 40 | *=========================================================================*/ 41 | class CSrRaceView : public CSrRecordDialog 42 | { 43 | DECLARE_DYNCREATE(CSrRaceView); 44 | DECLARE_SRRECUIFIELDS(); 45 | 46 | /*---------- Begin Protected Class Members ---------------------*/ 47 | protected: 48 | CSrRacePageBasic m_BasicPage; 49 | CSrRacePageMove m_MovePage; 50 | CSrRacePageAttack m_AttackPage; 51 | CSrRacePageModel m_ModelPage; 52 | CSrRacePageUnknown m_UnknownPage; 53 | CSrRacePageFace m_FacePage; 54 | CSrRacePageHead1 m_MaleHead1Page; 55 | CSrRacePageHead1 m_FemaleHead1Page; 56 | CSrRacePageTint m_MaleTintPage; 57 | CSrRacePageTint m_FemaleTintPage; 58 | 59 | srraceinfo_t m_RaceInfo; 60 | 61 | 62 | /*---------- Begin Protected Class Methods ---------------------*/ 63 | protected: 64 | 65 | /* Protected constructor used by dynamic creation */ 66 | CSrRaceView(); 67 | 68 | virtual void GetControlData (void); 69 | virtual void SetControlData (void); 70 | 71 | CWnd* GetNextControl (const bool Previous); 72 | 73 | 74 | /*---------- Begin Public Class Methods ------------------------*/ 75 | public: 76 | enum { IDD = IDD_RACE_VIEW }; 77 | CEdit m_EditorID; 78 | CEdit m_FormID; 79 | 80 | protected: 81 | virtual void OnInitialUpdate(); 82 | virtual void DoDataExchange(CDataExchange* pDX); 83 | virtual ~CSrRaceView(); 84 | 85 | #ifdef _DEBUG 86 | virtual void AssertValid() const; 87 | virtual void Dump(CDumpContext& dc) const; 88 | #endif 89 | 90 | DECLARE_MESSAGE_MAP(); 91 | 92 | public: 93 | 94 | CTabCtrlSheet m_TabControl; 95 | virtual BOOL PreTranslateMessage(MSG* pMsg); 96 | }; 97 | /*=========================================================================== 98 | * End of Class CSrRaceView Definition 99 | *=========================================================================*/ 100 | 101 | 102 | #endif 103 | /*=========================================================================== 104 | * End of File SrRaceView.H 105 | *=========================================================================*/ 106 | -------------------------------------------------------------------------------- /dialogs/SrRawDataDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/dialogs/SrRawDataDlg.cpp -------------------------------------------------------------------------------- /dialogs/SrRawDataDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrRawDataDlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 2 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRRAWDATADLG_H 11 | #define __SRRAWDATADLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "afxcmn.h" 20 | #include "modfile/SrMultiRecordHandler.h" 21 | #include "afxwin.h" 22 | #include 23 | /*=========================================================================== 24 | * End of Required Includes 25 | *=========================================================================*/ 26 | 27 | 28 | struct srrawdata_lineinfo_t 29 | { 30 | long SelIndex; 31 | CSrSubrecord* pSubrecord; 32 | dword SubrecordIndex; 33 | dword DataOffset; 34 | }; 35 | 36 | typedef std::vector CLineInfoArray; 37 | 38 | /*=========================================================================== 39 | * 40 | * Begin Class CSrRawDataDlg Definition 41 | * 42 | *=========================================================================*/ 43 | class CSrRawDataDlg : public CDialogEx 44 | { 45 | DECLARE_DYNAMIC(CSrRawDataDlg) 46 | 47 | protected: 48 | CSrRecord* m_pRecord; 49 | CSrRecordHandler& m_RecordHandler; 50 | CFont m_TextFont; 51 | 52 | CString m_FullTextCopy; 53 | 54 | CHARFORMAT2 m_HexFmt1; 55 | CHARFORMAT2 m_HexFmt2; 56 | CHARFORMAT2 m_StringFmt; 57 | CHARFORMAT2 m_DefaultFmt; 58 | 59 | CHARFORMAT2* m_pCurrentFmt; 60 | 61 | bool m_UpdateSelection; 62 | bool m_SummaryOnly; 63 | 64 | static bool g_UseFastText; 65 | 66 | CLineInfoArray m_LineInfos; 67 | 68 | 69 | protected: 70 | void AddText (const char* pString, ...); 71 | void OutputSubrecord (CSrSubrecord* pSubrecord, const int i); 72 | bool FindLineInfo (srrawdata_lineinfo_t& Result, const long SelIndex); 73 | CString FormatValueText (const dword Data); 74 | 75 | public: 76 | CSrRawDataDlg(CSrRecordHandler& Handler, CWnd* pParent = NULL); 77 | virtual ~CSrRawDataDlg(); 78 | 79 | int DoModal (CSrRecord* pRecord, const bool SummaryOnly); 80 | 81 | void SetControlData (void); 82 | 83 | 84 | enum { IDD = IDD_RAWDATA_DLG }; 85 | 86 | protected: 87 | virtual void DoDataExchange(CDataExchange* pDX); 88 | 89 | DECLARE_MESSAGE_MAP() 90 | 91 | public: 92 | CRichEditCtrl m_Text; 93 | 94 | virtual BOOL OnInitDialog(); 95 | CEdit m_ValueText; 96 | afx_msg void OnEnSelchangeTextcontrol(NMHDR *pNMHDR, LRESULT *pResult); 97 | }; 98 | /*=========================================================================== 99 | * End of Class CSrPromptDlg Definition 100 | *=========================================================================*/ 101 | 102 | 103 | /*=========================================================================== 104 | * 105 | * Begin Function Prototypes 106 | * 107 | *=========================================================================*/ 108 | /*=========================================================================== 109 | * End of Function Prototypes 110 | *=========================================================================*/ 111 | 112 | 113 | #endif 114 | /*=========================================================================== 115 | * End of File SrRawDataDlg.H 116 | *=========================================================================*/ 117 | -------------------------------------------------------------------------------- /dialogs/SrScriptErrorView.h: -------------------------------------------------------------------------------- 1 | #ifndef __SRSCRIPTERRORVIEW_H 2 | #define __SRSCRIPTERRORVIEW_H 3 | 4 | 5 | class CSrScriptView; 6 | 7 | 8 | class CSrScriptErrorView : public CFormView 9 | { 10 | DECLARE_DYNCREATE(CSrScriptErrorView); 11 | 12 | protected: 13 | CSrScriptView* m_pScriptView; 14 | bool m_HasDblClick; 15 | 16 | HACCEL m_hAccelerator; 17 | 18 | 19 | protected: 20 | 21 | CSrScriptErrorView(); 22 | virtual ~CSrScriptErrorView(); 23 | 24 | public: 25 | 26 | void ClearErrors (void); 27 | void AddError (CSrScriptError* pError); 28 | void AddErrors (CSrScriptErrorArray& Errors); 29 | void AddMessage (const char* pString, ...); 30 | 31 | void SetErrorText (const char* pString); 32 | 33 | CSrScriptError* FindErrorFromLine (const int Line); 34 | 35 | void SetScriptView (CSrScriptView* pView) { m_pScriptView = pView; } 36 | 37 | enum { IDD = IDD_SCRIPTERROR_VIEW }; 38 | CRichEditCtrl m_ErrorText; 39 | 40 | public: 41 | virtual void OnInitialUpdate(); 42 | 43 | protected: 44 | virtual void DoDataExchange(CDataExchange* pDX); 45 | 46 | protected: 47 | 48 | #ifdef _DEBUG 49 | virtual void AssertValid() const; 50 | virtual void Dump(CDumpContext& dc) const; 51 | #endif 52 | 53 | afx_msg void OnSize(UINT nType, int cx, int cy); 54 | afx_msg void OnDblclkErrortext(NMHDR* pNMHDR, LRESULT* pResult); 55 | afx_msg void OnMsgfilterErrortext(NMHDR* pNMHDR, LRESULT* pResult); 56 | afx_msg void OnContextMenu (CWnd* pWnd, CPoint Point); 57 | afx_msg void OnErrorbarCopy(); 58 | afx_msg void OnUpdateErrorbarCopy(CCmdUI *pCmdUI); 59 | virtual BOOL PreTranslateMessage(MSG* pMsg); 60 | afx_msg void OnErrorCopy(); 61 | afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); 62 | 63 | DECLARE_MESSAGE_MAP(); 64 | 65 | }; 66 | 67 | 68 | #endif 69 | -------------------------------------------------------------------------------- /dialogs/SrScriptTextCtrl.cpp: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrScriptTextCtrl.CPP 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 29 January 2012 6 | * 7 | * Implements the CSrScriptTextCtrl class 8 | * 9 | *=========================================================================*/ 10 | #include "stdafx.h" 11 | #include "SrScriptTextCtrl.h" 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Local Definitions 17 | * 18 | *=========================================================================*/ 19 | #ifdef _DEBUG 20 | #define new DEBUG_NEW 21 | #undef THIS_FILE 22 | static char THIS_FILE[] = __FILE__; 23 | #endif 24 | 25 | IMPLEMENT_DYNCREATE(CSrScriptTextCtrl, CRichEditCtrl); 26 | /*=========================================================================== 27 | * End of Local Definitions 28 | *=========================================================================*/ 29 | 30 | 31 | /*=========================================================================== 32 | * 33 | * Begin CSrScriptTextCtrl Message Map 34 | * 35 | *=========================================================================*/ 36 | BEGIN_MESSAGE_MAP(CSrScriptTextCtrl, CRichEditCtrl) 37 | ON_WM_GETDLGCODE() 38 | ON_WM_KEYDOWN() 39 | END_MESSAGE_MAP() 40 | /*=========================================================================== 41 | * End of CSrScriptTextCtrl Message Map 42 | *=========================================================================*/ 43 | 44 | 45 | void CSrScriptTextCtrl::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 46 | { 47 | 48 | if (nChar == '\t') 49 | { 50 | ReplaceSel("\t", true); 51 | } 52 | else 53 | { 54 | CRichEditCtrl::OnKeyDown(nChar, nRepCnt, nFlags); 55 | } 56 | 57 | } 58 | 59 | 60 | UINT CSrScriptTextCtrl::OnGetDlgCode() 61 | { 62 | return CRichEditCtrl::OnGetDlgCode() | DLGC_WANTTAB; 63 | } 64 | -------------------------------------------------------------------------------- /dialogs/SrScriptTextCtrl.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrScriptTextCtrl.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 29 January 2012 6 | * 7 | *=========================================================================*/ 8 | #ifndef __SRSCRIPTTEXTCTRL_H 9 | #define __SRSCRIPTTEXTCTRL_H 10 | 11 | 12 | class CSrScriptTextCtrl : public CRichEditCtrl 13 | { 14 | DECLARE_DYNCREATE(CSrScriptTextCtrl); 15 | 16 | public: 17 | afx_msg UINT OnGetDlgCode(); 18 | afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 19 | 20 | DECLARE_MESSAGE_MAP(); 21 | 22 | }; 23 | 24 | #endif 25 | /*=========================================================================== 26 | * End of File SrScriptTextCtrl.H 27 | *=========================================================================*/ 28 | -------------------------------------------------------------------------------- /dialogs/SrSelectScriptDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrSelectScriptDlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 7 February 2012 6 | * 7 | *=========================================================================*/ 8 | #ifndef __SRSELECTSCRIPTDLG_H 9 | #define __SRSELECTSCRIPTDLG_H 10 | 11 | 12 | #include "afxwin.h" 13 | #include "afxcmn.h" 14 | #include 15 | 16 | 17 | class CSrSelectScriptDlg : public CDialogEx 18 | { 19 | DECLARE_DYNAMIC(CSrSelectScriptDlg) 20 | 21 | CStringArray m_ScriptFiles; 22 | CString m_CurrentScriptName; 23 | CString m_CurrentFilter; 24 | std::unordered_map m_IndexMap; 25 | 26 | public: 27 | CSrSelectScriptDlg(CWnd* pParent = NULL); 28 | virtual ~CSrSelectScriptDlg(); 29 | 30 | enum { IDD = IDD_SELECTSCRIPT_DLG }; 31 | 32 | int DoModal (CString& ScriptName); 33 | 34 | protected: 35 | virtual void DoDataExchange(CDataExchange* pDX); 36 | 37 | void FillScriptNames (void); 38 | void FillScriptList (void); 39 | 40 | DECLARE_MESSAGE_MAP() 41 | public: 42 | CEdit m_CurrentValue; 43 | CListCtrl m_ScriptList; 44 | virtual BOOL OnInitDialog(); 45 | virtual void OnOK(); 46 | afx_msg void OnLvnItemchangedScriptlist(NMHDR *pNMHDR, LRESULT *pResult); 47 | afx_msg void OnLvnItemActivateScriptlist(NMHDR *pNMHDR, LRESULT *pResult); 48 | CEdit m_Filter; 49 | afx_msg void OnEnChangeScriptfilter(); 50 | afx_msg void OnLvnGetdispinfoScriptlist(NMHDR *pNMHDR, LRESULT *pResult); 51 | afx_msg void OnEnChangeCurrentText(); 52 | }; 53 | 54 | 55 | #endif 56 | /*=========================================================================== 57 | * End of File SrScriptTextCtrl.H 58 | *=========================================================================*/ -------------------------------------------------------------------------------- /dialogs/SrShouView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrShouView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 2 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRSHOUVIEW_H 11 | #define __SRSHOUVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrShouView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrShouView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrShouView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | CSrShouView(); 43 | virtual void GetControlData (void); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | enum { IDD = IDD_SHOU_VIEW }; 49 | CEdit m_Name; 50 | CEdit m_EditorID; 51 | CEdit m_FormID; 52 | 53 | protected: 54 | virtual void OnInitialUpdate(); 55 | virtual void DoDataExchange(CDataExchange* pDX); 56 | virtual ~CSrShouView(); 57 | 58 | #ifdef _DEBUG 59 | virtual void AssertValid() const; 60 | virtual void Dump(CDumpContext& dc) const; 61 | #endif 62 | 63 | DECLARE_MESSAGE_MAP(); 64 | 65 | public: 66 | 67 | CEdit m_Description; 68 | CEdit m_StaticModel; 69 | afx_msg void OnBnClickedEditStaticmodel(); 70 | afx_msg void OnBnClickedSelectStaticmodel(); 71 | afx_msg void OnBnClickedEditPowerword1(); 72 | afx_msg void OnBnClickedSelectPowerword1(); 73 | afx_msg void OnBnClickedEditSpell1(); 74 | afx_msg void OnBnClickedSelectSpell1(); 75 | afx_msg void OnBnClickedEditPowerword2(); 76 | afx_msg void OnBnClickedSelectPowerword2(); 77 | afx_msg void OnBnClickedEditSpell2(); 78 | afx_msg void OnBnClickedSelectSpell2(); 79 | afx_msg void OnBnClickedEditPowerword3(); 80 | afx_msg void OnBnClickedSelectPowerword3(); 81 | afx_msg void OnBnClickedEditSpell3(); 82 | afx_msg void OnBnClickedSelectSpell3(); 83 | CEdit m_PowerWord1; 84 | CEdit m_Spell1; 85 | CEdit m_Recharge1; 86 | CEdit m_PowerWord2; 87 | CEdit m_Spell2; 88 | CEdit m_Recharge2; 89 | CEdit m_PowerWord3; 90 | CEdit m_Spell3; 91 | CEdit m_Recharge3; 92 | afx_msg void OnDropStaticModel (NMHDR* pNotifyStruct, LRESULT* pResult); 93 | afx_msg void OnDropSpell1 (NMHDR* pNotifyStruct, LRESULT* pResult); 94 | afx_msg void OnDropSpell2 (NMHDR* pNotifyStruct, LRESULT* pResult); 95 | afx_msg void OnDropSpell3 (NMHDR* pNotifyStruct, LRESULT* pResult); 96 | afx_msg void OnDropPowerWord1 (NMHDR* pNotifyStruct, LRESULT* pResult); 97 | afx_msg void OnDropPowerWord2 (NMHDR* pNotifyStruct, LRESULT* pResult); 98 | afx_msg void OnDropPowerWord3 (NMHDR* pNotifyStruct, LRESULT* pResult); 99 | }; 100 | /*=========================================================================== 101 | * End of Class CSrShouView Definition 102 | *=========================================================================*/ 103 | 104 | 105 | #endif 106 | /*=========================================================================== 107 | * End of File SrShouView.H 108 | *=========================================================================*/ 109 | -------------------------------------------------------------------------------- /dialogs/SrSnctView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrSnctView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 7 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRSNCTVIEW_H 11 | #define __SRSNCTVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrSnctView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrSnctView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrSnctView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrSnctView(); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | enum { IDD = IDD_SNCT_VIEW }; 49 | CEdit m_EditorID; 50 | CEdit m_FormID; 51 | 52 | protected: 53 | virtual void OnInitialUpdate(); 54 | virtual void DoDataExchange(CDataExchange* pDX); 55 | virtual ~CSrSnctView(); 56 | 57 | #ifdef _DEBUG 58 | virtual void AssertValid() const; 59 | virtual void Dump(CDumpContext& dc) const; 60 | #endif 61 | 62 | DECLARE_MESSAGE_MAP(); 63 | 64 | public: 65 | 66 | afx_msg void OnDropSoundParent (NMHDR* pNotifyStruct, LRESULT* pResult); 67 | CEdit m_Unknown1; 68 | CEdit m_Unknown2; 69 | 70 | afx_msg void OnBnClickedEditSoundParent(); 71 | afx_msg void OnBnClickedSelectSoundParent(); 72 | 73 | CEdit m_ItemName; 74 | CEdit m_SoundFlags; 75 | CEdit m_SoundParent; 76 | }; 77 | /*=========================================================================== 78 | * End of Class CSrSnctView Definition 79 | *=========================================================================*/ 80 | 81 | 82 | #endif 83 | /*=========================================================================== 84 | * End of File SrSnctView.H 85 | *=========================================================================*/ 86 | -------------------------------------------------------------------------------- /dialogs/SrSndrView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrSndrView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 7 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRSNDRVIEW_H 11 | #define __SRSNDRVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrSndrView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrSndrView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrSndrView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrSndrView(); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | enum { IDD = IDD_SNDR_VIEW }; 49 | CEdit m_EditorID; 50 | CEdit m_FormID; 51 | 52 | protected: 53 | virtual void OnInitialUpdate(); 54 | virtual void DoDataExchange(CDataExchange* pDX); 55 | virtual ~CSrSndrView(); 56 | 57 | virtual void GetControlData (void); 58 | virtual void SetControlData (void); 59 | 60 | #ifdef _DEBUG 61 | virtual void AssertValid() const; 62 | virtual void Dump(CDumpContext& dc) const; 63 | #endif 64 | 65 | DECLARE_MESSAGE_MAP(); 66 | 67 | public: 68 | 69 | afx_msg void OnDropSound (NMHDR* pNotifyStruct, LRESULT* pResult); 70 | afx_msg void OnDropCategory (NMHDR* pNotifyStruct, LRESULT* pResult); 71 | afx_msg void OnDropOutputMarker (NMHDR* pNotifyStruct, LRESULT* pResult); 72 | afx_msg void OnDropSoundFileList (NMHDR* pNotifyStruct, LRESULT* pResult); 73 | 74 | CEdit m_Unknown1; 75 | CEdit m_Unknown2; 76 | CEdit m_Unknown3; 77 | CEdit m_FName; 78 | CEdit m_CName; 79 | CEdit m_SoundFlags; 80 | CEdit m_Category; 81 | CEdit m_Sound; 82 | CEdit m_OutputMarker; 83 | CButton m_Conditions; 84 | CListBox m_SoundFileList; 85 | 86 | afx_msg void OnBnClickedEditSound(); 87 | afx_msg void OnBnClickedSelectSound(); 88 | afx_msg void OnBnClickedEditCategory(); 89 | afx_msg void OnBnClickedSelectCategory(); 90 | afx_msg void OnBnClickedEditOutputmarker(); 91 | afx_msg void OnBnClickedSelectOutputmarker(); 92 | afx_msg void OnBnClickedAddSoundfilelist(); 93 | afx_msg void OnBnClickedSelectSoundfilelist(); 94 | afx_msg void OnBnClickedDeleteSoundfilelist(); 95 | afx_msg void OnLbnDblclkSoundfileList(); 96 | afx_msg void OnBnClickedEditSoundfile(); 97 | }; 98 | /*=========================================================================== 99 | * End of Class CSrSndrView Definition 100 | *=========================================================================*/ 101 | 102 | 103 | #endif 104 | /*=========================================================================== 105 | * End of File SrSndrView.H 106 | *=========================================================================*/ 107 | -------------------------------------------------------------------------------- /dialogs/SrSopmEditDlg.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrSopmEditDlg.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 8 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRSOPMEDITDLG_H 11 | #define __SRSOPMEDITDLG_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "afxwin.h" 20 | #include "afxcmn.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | struct srsopmeditinfo_t 27 | { 28 | srsopmanamdata_t* pAnamData; 29 | srsopmonamdata_t* pOnamData; 30 | srsopmsnamdata_t* pSnamData; 31 | }; 32 | 33 | /*=========================================================================== 34 | * 35 | * Begin Class CSrSopmEditDlg Definition 36 | * 37 | *=========================================================================*/ 38 | class CSrSopmEditDlg : public CDialogEx 39 | { 40 | DECLARE_DYNAMIC(CSrSopmEditDlg) 41 | 42 | public: 43 | srsopmeditinfo_t m_EditInfo; 44 | 45 | 46 | CSrSopmEditDlg(CWnd* pParent = NULL); 47 | virtual ~CSrSopmEditDlg(); 48 | 49 | enum { IDD = IDD_SOPMEDIT_DLG }; 50 | 51 | void GetControlData (void); 52 | void SetControlData (void); 53 | 54 | void EnableControls (void); 55 | 56 | protected: 57 | virtual void DoDataExchange(CDataExchange* pDX); 58 | virtual BOOL OnInitDialog (void); 59 | afx_msg void OnBnClickedOk(); 60 | 61 | CEdit m_Data[24]; 62 | CStatic m_DataLabel[8]; 63 | 64 | DECLARE_MESSAGE_MAP() 65 | }; 66 | /*=========================================================================== 67 | * End of Class CSrSopmEditDlg Definition 68 | *=========================================================================*/ 69 | 70 | 71 | bool SrSopmEditDlg (srsopmeditinfo_t EditInfo); 72 | 73 | #endif 74 | /*=========================================================================== 75 | * End of File SrSopmEditDlg.H 76 | *=========================================================================*/ 77 | 78 | -------------------------------------------------------------------------------- /dialogs/SrSopmView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrSopmView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 7 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRSOPMVIEW_H 11 | #define __SRSOPMVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | #include "afxcmn.h" 22 | /*=========================================================================== 23 | * End of Required Includes 24 | *=========================================================================*/ 25 | 26 | 27 | /*=========================================================================== 28 | * 29 | * Begin Class CSrSopmView Definition 30 | * 31 | *=========================================================================*/ 32 | class CSrSopmView : public CSrRecordDialog { 33 | DECLARE_DYNCREATE(CSrSopmView); 34 | DECLARE_SRRECUIFIELDS(); 35 | 36 | /*---------- Begin Protected Class Members ---------------------*/ 37 | protected: 38 | srsopmonamdata_t m_OnamData; 39 | srsopmanamdata_t m_AnamData; 40 | srsopmsnamdata_t m_SnamData; 41 | 42 | 43 | /*---------- Begin Protected Class Methods ---------------------*/ 44 | protected: 45 | 46 | /* Protected constructor used by dynamic creation */ 47 | CSrSopmView(); 48 | 49 | virtual void GetControlData (void); 50 | virtual void SetControlData (void); 51 | 52 | void SetAnamControlData (void); 53 | void SetOnamControlData (void); 54 | void SetSnamControlData (void); 55 | 56 | 57 | /*---------- Begin Public Class Methods ------------------------*/ 58 | public: 59 | enum { IDD = IDD_SOPM_VIEW }; 60 | CEdit m_EditorID; 61 | CEdit m_FormID; 62 | 63 | protected: 64 | virtual void OnInitialUpdate(); 65 | virtual void DoDataExchange(CDataExchange* pDX); 66 | virtual ~CSrSopmView(); 67 | 68 | void CopyNameData (void); 69 | void UpdateEnableControls (void); 70 | 71 | #ifdef _DEBUG 72 | virtual void AssertValid() const; 73 | virtual void Dump(CDumpContext& dc) const; 74 | #endif 75 | 76 | DECLARE_MESSAGE_MAP(); 77 | 78 | public: 79 | CEdit m_Unknown1; 80 | CEdit m_Unknown2; 81 | CEdit m_Unknown3; 82 | CEdit m_SoundFlags; 83 | CComboBox m_ContentType; 84 | afx_msg void OnBnClickedAnamdataButton(); 85 | afx_msg void OnBnClickedOnamdataButton(); 86 | afx_msg void OnBnClickedSnamdataButton(); 87 | CButton m_AnamButton; 88 | CButton m_OnamButton; 89 | CButton m_SnamButton; 90 | afx_msg void OnCbnSelchangeContenttype(); 91 | }; 92 | /*=========================================================================== 93 | * End of Class CSrSopmView Definition 94 | *=========================================================================*/ 95 | 96 | 97 | #endif 98 | /*=========================================================================== 99 | * End of File SrSopmView.H 100 | *=========================================================================*/ 101 | -------------------------------------------------------------------------------- /dialogs/SrSounView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrSounView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 6 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRSOUNVIEW_H 11 | #define __SRSOUNVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrSounView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrSounView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrSounView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrSounView(); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | enum { IDD = IDD_SOUN_VIEW }; 49 | CEdit m_EditorID; 50 | CEdit m_FormID; 51 | 52 | protected: 53 | virtual void OnInitialUpdate(); 54 | virtual void DoDataExchange(CDataExchange* pDX); 55 | virtual ~CSrSounView(); 56 | 57 | #ifdef _DEBUG 58 | virtual void AssertValid() const; 59 | virtual void Dump(CDumpContext& dc) const; 60 | #endif 61 | 62 | DECLARE_MESSAGE_MAP(); 63 | 64 | public: 65 | 66 | afx_msg void OnDropSoundRef (NMHDR* pNotifyStruct, LRESULT* pResult); 67 | afx_msg void OnDropSoundFile (NMHDR* pNotifyStruct, LRESULT* pResult); 68 | CEdit m_Unknown1; 69 | CEdit m_Unknown2; 70 | CEdit m_Unknown3; 71 | CEdit m_Unknown4; 72 | CEdit m_Unknown5; 73 | CEdit m_Unknown6; 74 | CEdit m_Unknown7; 75 | CEdit m_Unknown8; 76 | CEdit m_Unknown9; 77 | CEdit m_Unknown10; 78 | CEdit m_Unknown11; 79 | CEdit m_Unknown12; 80 | CEdit m_SoundFile; 81 | CEdit m_SoundRef; 82 | afx_msg void OnBnClickedSelectSoundfile(); 83 | afx_msg void OnBnClickedEditSoundref(); 84 | afx_msg void OnBnClickedSelectSoundref(); 85 | CButton m_Bounds; 86 | 87 | }; 88 | /*=========================================================================== 89 | * End of Class CSrSounView Definition 90 | *=========================================================================*/ 91 | 92 | 93 | #endif 94 | /*=========================================================================== 95 | * End of File SrSounView.H 96 | *=========================================================================*/ 97 | -------------------------------------------------------------------------------- /dialogs/SrStatView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrStatView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 17 December 2011 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRSTATVIEW_H 11 | #define __SRSTATVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrStatView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrStatView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrStatView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrStatView(); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | enum { IDD = IDD_STAT_VIEW }; 49 | CEdit m_Scale; 50 | CEdit m_EditorID; 51 | CEdit m_FormID; 52 | CEdit m_Material; 53 | CEdit m_Model; 54 | 55 | 56 | protected: 57 | virtual void OnInitialUpdate(); 58 | virtual void DoDataExchange(CDataExchange* pDX); 59 | virtual ~CSrStatView(); 60 | 61 | #ifdef _DEBUG 62 | virtual void AssertValid() const; 63 | virtual void Dump(CDumpContext& dc) const; 64 | #endif 65 | 66 | DECLARE_MESSAGE_MAP(); 67 | 68 | public: 69 | 70 | void OnBnClickedEditMaterial(); 71 | void OnBnClickedSelectMaterial(); 72 | }; 73 | /*=========================================================================== 74 | * End of Class CSrStatView Definition 75 | *=========================================================================*/ 76 | 77 | 78 | #endif 79 | /*=========================================================================== 80 | * End of File SrStatView.H 81 | *=========================================================================*/ 82 | -------------------------------------------------------------------------------- /dialogs/SrWoopView.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrWoopView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 2 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRWOOPVIEW_H 11 | #define __SRWOOPVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrWoopView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrWoopView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrWoopView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrWoopView(); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | enum { IDD = IDD_WOOP_VIEW }; 49 | CEdit m_EditorID; 50 | CEdit m_FormID; 51 | 52 | protected: 53 | virtual void OnInitialUpdate(); 54 | virtual void DoDataExchange(CDataExchange* pDX); 55 | virtual ~CSrWoopView(); 56 | 57 | #ifdef _DEBUG 58 | virtual void AssertValid() const; 59 | virtual void Dump(CDumpContext& dc) const; 60 | #endif 61 | 62 | DECLARE_MESSAGE_MAP(); 63 | 64 | public: 65 | 66 | CEdit m_ItemName; 67 | CEdit m_Translation; 68 | }; 69 | /*=========================================================================== 70 | * End of Class CSrWoopView Definition 71 | *=========================================================================*/ 72 | 73 | 74 | #endif 75 | /*=========================================================================== 76 | * End of File SrWoopView.H 77 | *=========================================================================*/ 78 | -------------------------------------------------------------------------------- /dialogs/srslgmview.h: -------------------------------------------------------------------------------- 1 | /*=========================================================================== 2 | * 3 | * File: SrSlgmView.H 4 | * Author: Dave Humphrey (dave@uesp.net) 5 | * Created On: 2 January 2012 6 | * 7 | * Description 8 | * 9 | *=========================================================================*/ 10 | #ifndef __SRSLGMVIEW_H 11 | #define __SRSLGMVIEW_H 12 | 13 | 14 | /*=========================================================================== 15 | * 16 | * Begin Required Includes 17 | * 18 | *=========================================================================*/ 19 | #include "dialogs/srrecorddialog.h" 20 | #include "afxwin.h" 21 | /*=========================================================================== 22 | * End of Required Includes 23 | *=========================================================================*/ 24 | 25 | 26 | /*=========================================================================== 27 | * 28 | * Begin Class CSrSlgmView Definition 29 | * 30 | *=========================================================================*/ 31 | class CSrSlgmView : public CSrRecordDialog { 32 | DECLARE_DYNCREATE(CSrSlgmView); 33 | DECLARE_SRRECUIFIELDS(); 34 | 35 | /*---------- Begin Protected Class Members ---------------------*/ 36 | protected: 37 | 38 | 39 | /*---------- Begin Protected Class Methods ---------------------*/ 40 | protected: 41 | 42 | /* Protected constructor used by dynamic creation */ 43 | CSrSlgmView(); 44 | 45 | 46 | /*---------- Begin Public Class Methods ------------------------*/ 47 | public: 48 | enum { IDD = IDD_SLGM_VIEW }; 49 | CButton m_QuestItem; 50 | CEdit m_Value; 51 | CEdit m_Weight; 52 | CEdit m_Name; 53 | CEdit m_EditorID; 54 | CEdit m_FormID; 55 | CEdit m_Model; 56 | CListBox m_Keywords; 57 | 58 | protected: 59 | virtual void OnInitialUpdate(); 60 | virtual void DoDataExchange(CDataExchange* pDX); 61 | virtual ~CSrSlgmView(); 62 | 63 | #ifdef _DEBUG 64 | virtual void AssertValid() const; 65 | virtual void Dump(CDumpContext& dc) const; 66 | #endif 67 | 68 | DECLARE_MESSAGE_MAP(); 69 | 70 | public: 71 | CComboBox m_Capacity; 72 | CComboBox m_CurrentSoul; 73 | CEdit m_FilledGem; 74 | CButton m_Dangerous; 75 | afx_msg void OnBnClickedEditFilledgem(); 76 | afx_msg void OnBnClickedSelectFilledgem(); 77 | afx_msg void OnDropFilledGem (NMHDR* pNotifyStruct, LRESULT* pResult); 78 | }; 79 | /*=========================================================================== 80 | * End of Class CSrSlgmView Definition 81 | *=========================================================================*/ 82 | 83 | 84 | #endif 85 | /*=========================================================================== 86 | * End of File SrMiscView.H 87 | *=========================================================================*/ 88 | -------------------------------------------------------------------------------- /nodrop.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/nodrop.cur -------------------------------------------------------------------------------- /res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/Toolbar.bmp -------------------------------------------------------------------------------- /res/armor.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/armor.ico -------------------------------------------------------------------------------- /res/cursor1.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/cursor1.cur -------------------------------------------------------------------------------- /res/file.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/file.bmp -------------------------------------------------------------------------------- /res/find_dlg.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/find_dlg.ico -------------------------------------------------------------------------------- /res/folder.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/folder.bmp -------------------------------------------------------------------------------- /res/ico00001.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/ico00001.ico -------------------------------------------------------------------------------- /res/icon1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/icon1.ico -------------------------------------------------------------------------------- /res/idr_main.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/idr_main.ico -------------------------------------------------------------------------------- /res/resourceview.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/resourceview.ico -------------------------------------------------------------------------------- /res/skyedit.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/skyedit.ico -------------------------------------------------------------------------------- /res/skyedit.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // SREDIT.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /res/skyeditDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/res/skyeditDoc.ico -------------------------------------------------------------------------------- /todo.txt: -------------------------------------------------------------------------------- 1 | v0.060a 2 | - Conflict between external/internal script texts? 3 | - Bounds editing for which record types? 4 | - "WriteOnly" flag for complex fields (batch editing)? 5 | - Fill in missing complex fields 6 | - Perk sections 7 | - Conditions 8 | - Effect sections 9 | - List entries 10 | - Script editor doesn't resize properly at startup 11 | - Actor value global definitions 12 | - Generic global clipboard for objects 13 | - Scripts 14 | - Conditions 15 | - Perk sections 16 | - General records.subrecords? 17 | - Effect entries 18 | - Custom context menu for editor ID fields, new entry to clear/delete 19 | 20 | v0.050a 21 | - Context menu in resource viewer: extract all BSA resources to individual files 22 | - Active only toolbar item? 23 | - Filter test toolbar item? 24 | - Clear log manually (right-click) 25 | - Record count in TES4 is not being updated correctly 26 | - Drag records between files to copy 27 | - Reference selection 28 | - Function parameter selection list should use a virtual list when displaying 1000s of records 29 | - Redo magic effects 30 | - Cleaned records don't all "disappear" when "active only" is checked. 31 | - Save as/set as ESM 32 | - Load resources in background thread at startup 33 | - Popup tips? 34 | - Script property auto fill and auto fill all commands 35 | - Better progress updates when initializing resources (during file path addition) 36 | 37 | v0.046a 38 | - Conditions: Batch edit? drag-and-drop? 39 | - List drags grab the "old" item data instead of the current one (double-check if this occurs and where) 40 | - Get fieldmap from a record type 41 | - Get english name from a record type 42 | 43 | v0.045a 44 | - Implement an "editorid" control derived from a CEdit. Replace all current read-only CEdits with 45 | this control to permit more editing options (direct typing, color red/green for valid/invalid, 46 | drag and drop, autocomplete, etc...). 47 | - Play sounds (via default shell program?) 48 | 49 | v0.04a 50 | - Update web site help 51 | - Change all "old" manual fields to use field macros 52 | - Permit resource viewer to display outside of main frame 53 | 54 | v0.03a 55 | - Change shared pointer objects to references where it is required 56 | - ReadOnly/NoEdit field flag 57 | - Fill in missing tooltip strings 58 | - Batch rename (suffix/prefix) or batch copy/rename 59 | - Review and checks for record/subrecord sizes. 60 | -------------------------------------------------------------------------------- /zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uesp/skyedit/cb484d4ab4013c2d561397aa2f8a7043dd840d71/zlib1.dll --------------------------------------------------------------------------------