Files
oboe/osx/boe.global.h
Celtic Minstrel 6af129c277 - Nuked the storage_gworld and party_template_gworld. Monster, terrain, and PC graphics are now drawn directly from their sheets of origin. This is partly tested, and seems to work fine.
- Removed the terrain_pic and terrain_blockage arrays, which were redundant (though shorter).
- Cleaned out some of the commented code in boe.graphics.cpp and boe.graphutil.cpp
- Added a templated get function to cOutdoors::cWandering.
In the dialog engine:
- Important fields are now initialized to default values, as they should be.
- The absence of required attributes is now recognized as an error
- Added stack element to the DTD; no code support yet
- Added fore attribute to the dialog element to specify default text colour; DTD updated and code support added.
- Likewise with the def-key attribute on other clickable items besides buttons (which already had it)
- Updated stylesheet to fall back on the fore attribute when colour is unspecified
- When drawing default monster graphics, it uses m_start_pic instead of num as the index. This should be right, though it's untested.
Unfortunately, the dialog engine is still unstable.

git-svn-id: http://openexile.googlecode.com/svn/trunk@100 4ebdad44-0ea0-11de-aab3-ff745001d230
2009-06-28 17:18:24 +00:00

67 lines
1.5 KiB
C++

#include <vector>
#include <string>
#include <sstream>
#include "boe.consts.h"
#define DRAG_EDGE 15
#define IN_FRONT (WindowPtr)-1L
#define NUM_TOWN_ITEMS 115
#define DISPLAY_LEFT 23
#define DISPLAY_TOP 23
#define BITMAP_WIDTH 28
#define BITMAP_HEIGHT 36
//#define STORED_GRAPHICS 240
#define PC_WIN_UL_X 291
#define PC_WIN_UL_Y 5
#define ITEM_WIN_UL_X 291
#define ITEM_WIN_UL_Y 130
#define TEXT_WIN_UL_X 291
#define TEXT_WIN_UL_Y 283
#define NUM_BUTTONS 15
#define ASB add_string_to_buf
#define PSD univ.party.stuff_done
#define DES display_enc_string
#define D2ES display_2_enc_string
#define NUM_MONST_G 173
#define NUM_TER_G 251
#define NUM_ITEM_G 120
#define NUM_FACE_G 80
#define NUM_DLOG_G 28
#define CDGT cd_retrieve_text_edit_str
#define CDGN cd_retrieve_text_edit_num
#define CDST cd_set_text_edit_str
#define CDSN cd_set_text_edit_num
struct scen_header_type {
unsigned char flag1, flag2, flag3, flag4;
unsigned char ver[3],min_run_ver,prog_make_ver[3],num_towns;
unsigned char out_width,out_height,difficulty,intro_pic,rating;
};
struct scen_header_str_type{
std::string name, who1, who2, file;
};
class cScenarioList {
std::vector<scen_header_type> d;
std::vector<scen_header_str_type> s;
public:
void clear() {d.clear(); s.clear();}
size_t size() {return d.size();}
void push_back(scen_header_type& head, scen_header_str_type& strs) {d.push_back(head); s.push_back(strs);}
scen_header_type& data(size_t i) {return d.at(i);}
scen_header_str_type& strs(size_t i) {return s.at(i);}
};
struct effect_pat_type {
unsigned char pattern[9][9];
};