void SetEditorSmoothingMode( UINT8 ubNewMode ) { UnclickEditorButtons( MAPINFO_RADIO_NORMAL, MAPINFO_RADIO_CAVES ); if( iCurrentTaskbar == TASK_BUILDINGS ) HideEditorButtons( BUILDING_NEW_ROOM, BUILDING_CAVE_DRAWING ); gfBasement = FALSE; gfCaves = FALSE; gMapInformation.ubEditorSmoothingType = SMOOTHING_NORMAL; switch( ubNewMode ) { case SMOOTHING_NORMAL: ClickEditorButton( MAPINFO_RADIO_NORMAL ); if( iCurrentTaskbar == TASK_BUILDINGS ) ShowEditorButtons( BUILDING_NEW_ROOM, BUILDING_MOVE_BUILDING ); EnableEditorButtons( BUILDING_SMART_WALLS, BUILDING_SMART_BROKEN_WALLS ); break; case SMOOTHING_BASEMENT: gfBasement = TRUE; ClickEditorButton( MAPINFO_RADIO_BASEMENT ); if( iCurrentTaskbar == TASK_BUILDINGS ) ShowEditorButtons( BUILDING_NEW_ROOM, BUILDING_KILL_BUILDING ); EnableEditorButtons( BUILDING_SMART_WALLS, BUILDING_SMART_BROKEN_WALLS ); break; case SMOOTHING_CAVES: gfCaves = TRUE; ClickEditorButton( MAPINFO_RADIO_CAVES ); if( iCurrentTaskbar == TASK_BUILDINGS ) ShowEditorButton( BUILDING_CAVE_DRAWING ); DisableEditorButtons( BUILDING_SMART_WALLS, BUILDING_SMART_BROKEN_WALLS ); break; default: AssertMsg( 0, "Attempting to set an illegal smoothing mode." ); break; } gMapInformation.ubEditorSmoothingType = ubNewMode; }
void HideItemStatsPanel() { HideEditorButtons( FIRST_ITEMSTATS_BUTTON, LAST_ITEMSTATS_BUTTON ); SpecifyItemToEdit( NULL, -1 ); gfShowItemStatsPanel = FALSE; }