- Fixed some bugs and inconsistencies in the dialog code
- Started a utility to quickly preview a dialog - Moved the ppats from the individual applications into the Graphics file; reduces redudancy git-svn-id: http://openexile.googlecode.com/svn/trunk@26 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
@@ -69,85 +69,85 @@ extern GWorldPtr spec_scen_g;
|
||||
Rect boat_rects[4] = {{0,0,36,28}, {0,28,36,56},{0,56,36,84},{0,84,36,112}};
|
||||
Boolean gave_no_g_error = FALSE;
|
||||
|
||||
unsigned char m_pic_index[200] = {////
|
||||
1,2,3,4,5,6,7,8,9,10,
|
||||
11,12,13,14,15,16,17,18,19,20,
|
||||
|
||||
21,22,23,24,25, 26,27,28,29,30,
|
||||
31,32,33,34,35, 36,37,38,39,40,
|
||||
|
||||
41,42,43,44,46,47,48,49,50,51,
|
||||
53,55,57,59,60,61,62,63,64,65,
|
||||
|
||||
66,67,68,69,70, 71,72,73,74,75,
|
||||
76,77,78,79,81, 82,83,85,86,87,
|
||||
|
||||
88,89,90,91,92, 93,94,95,96,97,
|
||||
98,99,100,101,102, 103,104,105,106,107,
|
||||
|
||||
108,109,111,112,113, 114,116,117,118,119, //100
|
||||
120,122,123,125,127, 128,129,130,131,135,
|
||||
|
||||
136,137,139,140,141,142,143,144,145,146,
|
||||
147,148,149,150,151,152,152,154,155,159,
|
||||
|
||||
160,164,166,168,170,171,172,173,174,175,
|
||||
176,177,178,179,180,181,182,183,184,185,
|
||||
|
||||
186,187,188,189,190,191,192,193,194,195,
|
||||
196,197,198,0,0,0,0,0,0,0,
|
||||
|
||||
0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0};
|
||||
|
||||
unsigned char m_pic_index_x[200] = {
|
||||
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,2,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
|
||||
1,2,1,1,1,2,1,1,1,1, // 100
|
||||
2,1,1,1,1,1,1,1,2,1,
|
||||
1,2,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,2,1,
|
||||
|
||||
2,2,2,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1};
|
||||
|
||||
unsigned char m_pic_index_y[200] = {
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,2,
|
||||
2,2,2,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,2,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,2,2,1,1,1,1,2,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,2,1,
|
||||
2,1,1,2,1,1,1,1,1,1,
|
||||
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1,
|
||||
1,1,1,1,1,1,1,1,1,1};
|
||||
//unsigned char m_pic_index[200] = {////
|
||||
//1,2,3,4,5,6,7,8,9,10,
|
||||
//11,12,13,14,15,16,17,18,19,20,
|
||||
//
|
||||
//21,22,23,24,25, 26,27,28,29,30,
|
||||
//31,32,33,34,35, 36,37,38,39,40,
|
||||
//
|
||||
//41,42,43,44,46,47,48,49,50,51,
|
||||
//53,55,57,59,60,61,62,63,64,65,
|
||||
//
|
||||
//66,67,68,69,70, 71,72,73,74,75,
|
||||
//76,77,78,79,81, 82,83,85,86,87,
|
||||
//
|
||||
//88,89,90,91,92, 93,94,95,96,97,
|
||||
//98,99,100,101,102, 103,104,105,106,107,
|
||||
//
|
||||
//108,109,111,112,113, 114,116,117,118,119, //100
|
||||
//120,122,123,125,127, 128,129,130,131,135,
|
||||
//
|
||||
//136,137,139,140,141,142,143,144,145,146,
|
||||
//147,148,149,150,151,152,152,154,155,159,
|
||||
//
|
||||
//160,164,166,168,170,171,172,173,174,175,
|
||||
//176,177,178,179,180,181,182,183,184,185,
|
||||
//
|
||||
//186,187,188,189,190,191,192,193,194,195,
|
||||
//196,197,198,0,0,0,0,0,0,0,
|
||||
//
|
||||
//0,0,0,0,0,0,0,0,0,0,
|
||||
//0,0,0,0,0,0,0,0,0,0};
|
||||
//
|
||||
//unsigned char m_pic_index_x[200] = {
|
||||
//
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,2,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//
|
||||
//1,2,1,1,1,2,1,1,1,1, // 100
|
||||
//2,1,1,1,1,1,1,1,2,1,
|
||||
//1,2,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,2,1,
|
||||
//
|
||||
//2,2,2,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1};
|
||||
//
|
||||
//unsigned char m_pic_index_y[200] = {
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,2,
|
||||
//2,2,2,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,2,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,2,2,1,1,1,1,2,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,2,1,
|
||||
//2,1,1,2,1,1,1,1,1,1,
|
||||
//
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1,
|
||||
//1,1,1,1,1,1,1,1,1,1};
|
||||
|
||||
void draw_one_terrain_spot (short i,short j,short terrain_to_draw,short dest) ////
|
||||
//short dest; // 0 - terrain gworld 1 - screen
|
||||
@@ -779,7 +779,7 @@ Rect get_monster_template_rect (unsigned char type_wanted,short mode,short which
|
||||
picture_wanted = get_monst_picnum(type_wanted);
|
||||
if (picture_wanted >= 1000)
|
||||
return store_rect;
|
||||
picture_wanted = m_pic_index[picture_wanted] + which_part;
|
||||
picture_wanted = m_pic_index[picture_wanted].i + which_part;
|
||||
return return_item_rect(300 + picture_wanted + (300 * mode) + adj);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user