Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
op2_sdk:textdialogbox [2016/12/28 18:57] – vagabond | op2_sdk:textdialogbox [2016/12/28 19:03] (current) – vagabond | ||
---|---|---|---|
Line 243: | Line 243: | ||
// | // | ||
// Microsoft Visual C++ generated include file. | // Microsoft Visual C++ generated include file. | ||
- | // Used by RisingFromTheAshes.rc | + | // Used by Resource.rc |
// | // | ||
#define IDR_MISSIONTEXT | #define IDR_MISSIONTEXT | ||
Line 268: | Line 268: | ||
Once the resource script and resource header have been included, the briefing screen must be initialized from the code. You will also have to include the Sierra library odasl in your project to ensure the dialog is formatted similar to other Outpost 2 menus. | Once the resource script and resource header have been included, the briefing screen must be initialized from the code. You will also have to include the Sierra library odasl in your project to ensure the dialog is formatted similar to other Outpost 2 menus. | ||
- | - Add odasl.h and odasl.lib | + | - Add a reference to the Outpost2Dialog project, which can be found with the rest of the APIs. odasl.h and odasl.lib are contained |
- Create a reference to the DLL instance from DllMain (HINSTANCE hInst). | - Create a reference to the DLL instance from DllMain (HINSTANCE hInst). | ||
- Add code to initialize and open the window. Typically this code is placed in it's own cpp file named briefing.cpp. | - Add code to initialize and open the window. Typically this code is placed in it's own cpp file named briefing.cpp. |