OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4AppDelegate(MainMenuActions) Category Reference

#import <C4AppDelegate+MainMenuActions.h>

Instance Methods

(IBAction) - openScenario:
 
(IBAction) - openScenarioWithPlayers:
 
(IBAction) - closeScenario:
 
(IBAction) - saveGameAs:
 
(IBAction) - saveScenario:
 
(IBAction) - saveScenarioAs:
 
(IBAction) - record:
 
(IBAction) - newViewport:
 
(IBAction) - openPropTools:
 
(IBAction) - newViewportForPlayer:
 
(IBAction) - joinPlayer:
 
(IBAction) - showAbout:
 
(IBAction) - toggleFullScreen:
 
(IBAction) - togglePause:
 
(IBAction) - setConsoleMode:
 
(IBAction) - setDrawingTool:
 
(IBAction) - suggestQuitting:
 
(IBAction) - simulateKeyPressed:
 
(IBAction) - visitWebsite:
 
(IBAction) - makeScreenshot:
 
(IBAction) - makeScreenshotOfWholeMap:
 

Detailed Description

Definition at line 19 of file C4AppDelegate+MainMenuActions.h.

Method Documentation

- (IBAction) closeScenario: (id)  sender

Extends class C4AppDelegate.

Definition at line 39 of file C4AppDelegate+MainMenuActions.mm.

39  :(id)sender
40 {
42  [editorWindowController.window setRepresentedFilename:@""];
43 }
C4Console Console
Definition: C4Globals.cpp:45
bool FileClose()
Definition: C4Console.cpp:382
- (IBAction) joinPlayer: (id)  sender

Extends class C4AppDelegate.

Definition at line 76 of file C4AppDelegate+MainMenuActions.mm.

76  :(id)sender
77 {
79 }
C4Console Console
Definition: C4Globals.cpp:45
void PlayerJoin()
Definition: C4Console.cpp:513
- (IBAction) makeScreenshot: (id)  sender

Extends class C4AppDelegate.

Definition at line 195 of file C4AppDelegate+MainMenuActions.mm.

195  :(id)sender;
196 {
198 }
bool SaveScreenshotKey(bool fSaveAll)
C4GraphicsSystem GraphicsSystem
Definition: C4Globals.cpp:51
- (IBAction) makeScreenshotOfWholeMap: (id)  sender

Extends class C4AppDelegate.

Definition at line 200 of file C4AppDelegate+MainMenuActions.mm.

200  :(id)sender;
201 {
203 }
bool SaveScreenshotKey(bool fSaveAll)
C4GraphicsSystem GraphicsSystem
Definition: C4Globals.cpp:51
- (IBAction) newViewport: (id)  sender

Extends class C4AppDelegate.

Definition at line 66 of file C4AppDelegate+MainMenuActions.mm.

66  :(id)sender
67 {
69 }
C4Console Console
Definition: C4Globals.cpp:45
void ViewportNew()
Definition: C4Console.cpp:456
- (IBAction) newViewportForPlayer: (id)  sender

Extends class C4AppDelegate.

Definition at line 71 of file C4AppDelegate+MainMenuActions.mm.

71  :(id)sender
72 {
73  ::Viewports.CreateViewport([sender tag]);
74 }
bool CreateViewport(int32_t iPlayer, bool fSilent=false)
Definition: C4Viewport.cpp:917
C4ViewportList Viewports
Definition: C4Viewport.cpp:841
- (IBAction) openPropTools: (id)  sender

Extends class C4AppDelegate.

Definition at line 81 of file C4AppDelegate+MainMenuActions.mm.

81  :(id)sender;
82 {
84 }
C4EditCursor EditCursor
Definition: C4Console.h:90
C4Console Console
Definition: C4Globals.cpp:45
bool OpenPropTools()
- (IBAction) openScenario: (id)  sender

Extends class C4AppDelegate.

Definition at line 29 of file C4AppDelegate+MainMenuActions.mm.

29  :(id)sender
30 {
31  Console.FileOpen();
32 }
C4Console Console
Definition: C4Globals.cpp:45
bool FileOpen(const char *filename=nullptr, bool host_in_network=false)
Definition: C4Console.cpp:319
- (IBAction) openScenarioWithPlayers: (id)  sender

Extends class C4AppDelegate.

Definition at line 34 of file C4AppDelegate+MainMenuActions.mm.

34  :(id)sender
35 {
37 }
C4Console Console
Definition: C4Globals.cpp:45
bool FileOpenWPlrs()
Definition: C4Console.cpp:343
- (IBAction) record: (id)  sender

Extends class C4AppDelegate.

Definition at line 61 of file C4AppDelegate+MainMenuActions.mm.

61  :(id)sender
62 {
64 }
C4Console Console
Definition: C4Globals.cpp:45
bool FileRecord()
Definition: C4Console.cpp:394
- (IBAction) saveGameAs: (id)  sender

Extends class C4AppDelegate.

Definition at line 46 of file C4AppDelegate+MainMenuActions.mm.

46  :(id)sender
47 {
48  Console.FileSaveAs(true);
49 }
bool FileSaveAs(bool fSaveGame, bool export_packed=false)
Definition: C4Console.cpp:269
C4Console Console
Definition: C4Globals.cpp:45
- (IBAction) saveScenario: (id)  sender

Extends class C4AppDelegate.

Definition at line 51 of file C4AppDelegate+MainMenuActions.mm.

51  :(id)sender
52 {
53  Console.FileSave();
54 }
C4Console Console
Definition: C4Globals.cpp:45
bool FileSave()
Definition: C4Console.cpp:262
- (IBAction) saveScenarioAs: (id)  sender

Extends class C4AppDelegate.

Definition at line 56 of file C4AppDelegate+MainMenuActions.mm.

56  :(id)sender
57 {
58  Console.FileSaveAs(false);
59 }
bool FileSaveAs(bool fSaveGame, bool export_packed=false)
Definition: C4Console.cpp:269
C4Console Console
Definition: C4Globals.cpp:45
- (IBAction) setConsoleMode: (id)  sender

Extends class C4AppDelegate.

Definition at line 108 of file C4AppDelegate+MainMenuActions.mm.

108  :(id)sender
109 {
110  [editorWindowController selectMode:sender];
111  [editorWindowController.modeSelector selectSegmentWithTag:[sender tag]];
112 }
- (IBAction) setDrawingTool: (id)  sender

Extends class C4AppDelegate.

Definition at line 114 of file C4AppDelegate+MainMenuActions.mm.

114  :(id)sender
115 {
116  [editorWindowController selectTool:sender];
117  [editorWindowController.toolSelector selectSegmentWithTag:[sender tag]];
118 }
- (IBAction) showAbout: (id)  sender

Extends class C4AppDelegate.

Definition at line 86 of file C4AppDelegate+MainMenuActions.mm.

86  :(id)sender;
87 {
89 }
C4Console Console
Definition: C4Globals.cpp:45
void HelpAbout()
Definition: C4Console.cpp:449
- (void) simulateKeyPressed: (C4KeyCode key

Extends class C4AppDelegate.

Definition at line 189 of file C4AppDelegate+MainMenuActions.mm.

189  :(C4KeyCode)key
190 {
191  Game.DoKeyboardInput(key, KEYEV_Down, false, false, false, false, NULL);
192  Game.DoKeyboardInput(key, KEYEV_Up, false, false, false, false, NULL);
193 }
C4Game Game
Definition: C4Globals.cpp:52
bool DoKeyboardInput(C4KeyCode vk_code, C4KeyEventType eEventType, bool fAlt, bool fCtrl, bool fShift, bool fRepeated, class C4GUI::Dialog *pForDialog=nullptr, bool fPlrCtrlOnly=false, int32_t iStrength=-1)
Definition: C4Game.cpp:1865
unsigned long C4KeyCode
- (IBAction) suggestQuitting: (id)  sender

Extends class C4AppDelegate.

Definition at line 120 of file C4AppDelegate+MainMenuActions.mm.

120  :(id)sender;
121 {
123  {
124  NSLog(@"Game running, only simulating Esc key");
125  [self simulateKeyPressed:K_ESCAPE];
126  }
127  else
128  {
129  if (Application.isEditor)
130  Console.FileClose();
133  Application.Clear();
134  Application.Quit();
135  }
136 }
bool IsRunning
Definition: C4Game.h:139
C4Console Console
Definition: C4Globals.cpp:45
C4Game Game
Definition: C4Globals.cpp:52
bool FileClose()
Definition: C4Console.cpp:382
void Clear() override
bool fQuitMsgReceived
Definition: C4App.h:81
void Quit() override
bool ScheduleProcs(int iTimeout=1000/36)
C4Application Application
Definition: C4Globals.cpp:44
- (IBAction) toggleFullScreen: (id)  sender

Extends class C4AppDelegate.

Definition at line 91 of file C4AppDelegate+MainMenuActions.mm.

91  :(id)sender
92 {
94  {
95  NSBeep();
96  return;
97  }
98  [gameWindowController setFullscreen:Config.Graphics.Windowed];
100 
101 }
C4Config Config
Definition: C4Config.cpp:833
int32_t Windowed
Definition: C4Config.h:106
C4ConfigGraphics Graphics
Definition: C4Config.h:253
C4Application Application
Definition: C4Globals.cpp:44
- (IBAction) togglePause: (id)  sender

Extends class C4AppDelegate.

Definition at line 103 of file C4AppDelegate+MainMenuActions.mm.

103  :(id)sender
104 {
105  [self simulateKeyPressed:K_PAUSE];
106 }
- (IBAction) visitWebsite: (id)  sender

Extends class C4AppDelegate.

Definition at line 184 of file C4AppDelegate+MainMenuActions.mm.

184  :(id)sender;
185 {
186  OpenURL("http://wiki.openclonk.org");
187 }
bool OpenURL(const char *szURL)
Definition: C4AppMac.mm:198

The documentation for this category was generated from the following files: