mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- Externalized Florist Delivery Locations by tagging to externalized BobbyR locations (by Buggler)
- Flower shipment now costs half of BobbyR's shipping rate (by Buggler) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5867 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -77,8 +77,8 @@ enum
|
||||
BR_DROP_DOWN_DISPLAY,
|
||||
};
|
||||
|
||||
#define BOBBYR_ORDER_NUM_SHIPPING_CITIES 17
|
||||
#define BOBBYR_NUM_DISPLAYED_CITIES 10
|
||||
//#define BOBBYR_ORDER_NUM_SHIPPING_CITIES 17
|
||||
//#define BOBBYR_NUM_DISPLAYED_CITIES 10
|
||||
|
||||
#define BOBBYR_NUM_DISPLAYED_ITEMS 10
|
||||
|
||||
@@ -1504,7 +1504,8 @@ BOOLEAN CreateDestroyBobbyRDropDown( UINT8 ubDropDownAction )
|
||||
|
||||
usPosX = BOBBYR_CITY_START_LOCATION_X;
|
||||
usPosY = BOBBYR_CITY_START_LOCATION_Y;
|
||||
for( i=0; i< BOBBYR_NUM_DISPLAYED_CITIES; i++)
|
||||
//for( i=0; i< BOBBYR_NUM_DISPLAYED_CITIES; i++)
|
||||
for( i=0; i< guiNumOfDisplayedCities; i++)
|
||||
{
|
||||
MSYS_DefineRegion( &gSelectedDropDownRegion[i], usPosX, (UINT16)(usPosY+4), (UINT16)(usPosX+BOBBYR_DROP_DOWN_WIDTH-6), (UINT16)(usPosY+usFontHeight+7), MSYS_PRIORITY_HIGH,
|
||||
CURSOR_WWW, SelectDropDownMovementCallBack, SelectDropDownRegionCallBack);
|
||||
@@ -2112,7 +2113,8 @@ void DrawGoldRectangle( INT8 bCityNum )
|
||||
//usHeight = usTempHeight / (BOBBYR_ORDER_NUM_SHIPPING_CITIES+1);
|
||||
usHeight = usTempHeight / (gPostalService.LookupDestinationList().size()+1);
|
||||
|
||||
usPosY = usTempPosY + (UINT16)( ( ( BOBBYR_SCROLL_AREA_HEIGHT - 2 * BOBBYR_SCROLL_ARROW_HEIGHT ) / (FLOAT)(BOBBYR_ORDER_NUM_SHIPPING_CITIES +1) ) * bCityNum );
|
||||
//usPosY = usTempPosY + (UINT16)( ( ( BOBBYR_SCROLL_AREA_HEIGHT - 2 * BOBBYR_SCROLL_ARROW_HEIGHT ) / (FLOAT)(BOBBYR_ORDER_NUM_SHIPPING_CITIES +1) ) * bCityNum );
|
||||
usPosY = usTempPosY + (UINT16)( ( ( BOBBYR_SCROLL_AREA_HEIGHT - 2 * BOBBYR_SCROLL_ARROW_HEIGHT ) / (FLOAT)(gPostalService.LookupDestinationList().size()+1) ) * bCityNum );
|
||||
|
||||
temp = BOBBYR_SCROLL_AREA_Y + BOBBYR_SCROLL_AREA_HEIGHT - BOBBYR_SCROLL_ARROW_HEIGHT - usHeight - 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user