chernarusmap_open.c 373 B

1234567891011121314151617181920
  1. class ChernarusMap extends ItemMap
  2. {
  3. override void SetActions()
  4. {
  5. super.SetActions();
  6. AddAction(ActionUnfoldMap);
  7. }
  8. override bool GetActionWidgetOverride(out typename name)
  9. {
  10. if ( GetMapStateAnimation() ) //is map in the 'opened' state
  11. {
  12. name = ActionFoldMap;
  13. return true;
  14. }
  15. return false;
  16. }
  17. }
  18. class ChernarusMap_Open extends ItemMap {} //unused