public method show takes boolean bol returns nothing
call FogModifierStop(.visible)
call DestroyFogModifier(.visible)
set .viewing = bol
//call EnumDestructablesInRect(CI_UI_RECT, Condition(function thistype.checkDest), null)
if bol then
if GetLocalPlayer() == Player(.Player) then
set .camX = GetCameraTargetPositionX()
set .camY = GetCameraTargetPositionY()
set .camZ = GetCameraTargetPositionZ()
set .camDist = GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)
endif
set .visible = CreateFogModifierRect(Player(.Player), FOG_OF_WAR_VISIBLE, CI_UI_RECT, false, false)
call .refresh()
call PreventSpecificOrder(.inventory.getOwner(), "move", true)
call PreventSpecificOrder(.inventory.getOwner(), "smart", true)
static if LIBRARY_CIItemBoard then
call .inventory.showBoard(true)
endif
else
set .visible = CreateFogModifierRect(Player(.Player), FOG_OF_WAR_MASKED, CI_UI_RECT, false, false)
if GetLocalPlayer() == Player(.Player) then
call SetCameraPosition(.camX, .camY)
call SetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK, 305., 0)
call SetCameraField(CAMERA_FIELD_TARGET_DISTANCE, .camDist, 0)
endif
call ClearAllSpecificOrderPrevention(.inventory.getOwner())
static if LIBRARY_CIItemBoard then
call .inventory.showBoard(false)
endif
endif
call FogModifierStart(.visible)
endmethod