#include <C4Console.h>
Public Types | |
enum | RecentScriptInputLists { MRU_Scenario = 0 , MRU_Object = 1 } |
enum | InfoTextType { CONSOLE_Cursor , CONSOLE_FrameCounter , CONSOLE_TimeFPS } |
enum | Stage { STAGE_Start , STAGE_Intermediate , STAGE_End } |
enum | Cursor { CURSOR_Normal , CURSOR_Wait } |
enum | ClientOperation { CO_None , CO_Deactivate , CO_Activate , CO_Kick } |
enum | WindowKind { W_GuiWindow , W_Console , W_Viewport , W_Fullscreen , W_Control } |
Public Member Functions | |
C4Console () | |
~C4Console () override | |
void | Default () |
void | Clear () override |
void | Close () override |
virtual C4Window * | Init (C4AbstractApp *app) |
void | Execute () |
void | ClearPointers (C4Object *pObj) |
bool | Message (const char *szMessage, bool fQuery=false) |
bool | In (const char *szText) |
void | DoPlay () |
void | DoHalt () |
void | UpdateInputCtrl () |
void | UpdateMenus () |
void | InitGame () |
bool | TogglePause () |
void | CloseGame () |
bool | UpdatePlayerMenu () |
bool | UpdateViewportMenu () |
void | UpdateStatusBars () |
void | ClearViewportMenu () |
void | UpdateNetMenu () |
void | ClearNetMenu () |
void | PlayerJoin () |
void | ViewportNew () |
void | HelpAbout () |
bool | FileSelect (StdStrBuf *sFilename, const char *szFilter, DWORD dwFlags, bool fSave=false) |
bool | SaveGame (const char *path) |
bool | SaveScenario (const char *path, bool export_packed=false) |
bool | FileSaveAs (bool fSaveGame, bool export_packed=false) |
bool | FileSave () |
bool | FileNew () |
bool | FileOpen (const char *filename=nullptr, bool host_in_network=false) |
bool | FileOpenWPlrs () |
bool | FileCommand () |
bool | FileClose () |
bool | FileQuit () |
bool | FileRecord () |
void | SetCaptionToFilename (const char *szFilename) |
std::list< const char * > | GetScriptSuggestions (class C4PropList *target, RecentScriptInputLists section) const |
void | RegisterRecentInput (const char *input, RecentScriptInputLists section) |
virtual C4Window * | Init (WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size) |
void | AddViewport (C4ViewportWindow *cvp) |
void | RemoveViewport (C4ViewportWindow *cvp) |
void | OnObjectSelectionChanged (class C4EditCursorSelection &selection) |
bool | CreateNewScenario (StdStrBuf *out_filename, bool *out_host_as_network) |
void | OnStartGame () |
void | EnsureDefinitionListInitialized () |
void | CloseConsoleWindow () |
void | EditGraphControl (const class C4ControlEditGraph *control) |
void | SetCursor (Cursor cursor) |
void | RecordingEnabled () |
void | ShowAboutWithCopyright (StdStrBuf ©right) |
bool | UpdateModeCtrls (int iMode) |
void | AddNetMenu () |
void | AddNetMenuItemForPlayer (int32_t client_id, const char *text, C4ConsoleGUI::ClientOperation co) |
void | ClearPlayerMenu () |
void | SetInputFunctions (std::list< const char * > &functions) |
bool | CreateConsoleWindow (C4AbstractApp *application) |
void | DeleteConsoleWindow () |
void | Out (const char *message) |
bool | ClearLog () |
void | DisplayInfoText (InfoTextType type, StdStrBuf &text) |
void | SetCaptionToFileName (const char *file_name) |
void | AddMenuItemForPlayer (C4Player *player, StdStrBuf &player_text) |
void | AddKickPlayerMenuItem (C4Player *player, StdStrBuf &player_text, bool enabled) |
void | EnableControls (bool fEnable) |
void | DoEnableControls (bool fEnable) |
bool | UpdateHaltCtrls (bool fHalt) |
bool | DoUpdateHaltCtrls (bool fHalt) |
bool | PropertyDlgOpen () |
void | PropertyDlgClose () |
void | PropertyDlgUpdate (class C4EditCursorSelection &rSelection, bool force_function_update) |
bool | ToolsDlgOpen (class C4ToolsDlg *dlg) |
void | ToolsDlgClose () |
void | ToolsDlgInitMaterialCtrls (class C4ToolsDlg *dlg) |
void | ToolsDlgSelectTexture (C4ToolsDlg *dlg, const char *texture) |
void | ToolsDlgSelectMaterial (C4ToolsDlg *dlg, const char *material) |
void | ToolsDlgSelectBackTexture (C4ToolsDlg *dlg, const char *texture) |
void | ToolsDlgSelectBackMaterial (C4ToolsDlg *dlg, const char *material) |
virtual void | CharIn (const char *) |
virtual bool | ReInit (C4AbstractApp *pApp) |
virtual void | EnumerateMultiSamples (std::vector< int > &samples, int min_expected=0) const |
bool | StorePosition (const char *szWindowName, const char *szSubKey, bool fStoreSize=true) |
bool | RestorePosition (const char *szWindowName, const char *szSubKey, bool fHidden=false) |
bool | GetSize (C4Rect *pRect) |
void | SetSize (unsigned int cx, unsigned int cy) |
void | SetTitle (const char *Title) |
void | FlashWindow () |
void | GrabMouse (bool grab) |
virtual void | RequestUpdate () |
virtual void | PerformUpdate () |
Public Attributes | |
C4ToolsDlg | ToolsDlg |
C4ObjectListDlg | ObjectListDlg |
C4EditCursor | EditCursor |
int | FrameCounter |
int | Time |
int | FPS |
bool | Editing |
bool | fGameOpen |
C4Object * | PropertyDlgObject |
bool | Active {false} |
C4Surface * | pSurface {nullptr} |
WindowKind | eKind |
Protected Member Functions | |
virtual C4Window * | Init (WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size) |
Definition at line 42 of file C4Console.h.
|
inherited |
|
inherited |
|
inherited |
Enumerator | |
---|---|
CONSOLE_Cursor | |
CONSOLE_FrameCounter | |
CONSOLE_TimeFPS |
Definition at line 50 of file C4ConsoleGUI.h.
|
inherited |
|
inherited |
Enumerator | |
---|---|
W_GuiWindow | |
W_Console | |
W_Viewport | |
W_Fullscreen | |
W_Control |
Definition at line 263 of file C4Window.h.
C4Console::C4Console | ( | ) |
Definition at line 44 of file C4Console.cpp.
References C4Window::Active, C4ConsoleGUI::Editing, C4ConsoleGUI::fGameOpen, and FrameCounter.
|
overridedefault |
|
inherited |
Definition at line 662 of file C4Console.cpp.
Referenced by UpdatePlayerMenu().
Definition at line 663 of file C4Console.cpp.
Referenced by UpdateViewportMenu().
|
inherited |
Definition at line 665 of file C4Console.cpp.
Referenced by UpdateNetMenu().
|
inherited |
Definition at line 664 of file C4Console.cpp.
Referenced by UpdateNetMenu().
|
inlineinherited |
Definition at line 110 of file C4ConsoleGUI.h.
|
inlinevirtualinherited |
|
overridevirtual |
Reimplemented from C4Window.
Definition at line 418 of file C4Console.cpp.
References Application, C4EditCursor::Clear(), C4ToolsDlg::Clear(), C4Window::Clear(), ClearNetMenu(), C4ConsoleGUI::ClearPlayerMenu(), ClearViewportMenu(), C4ConsoleGUI::DeleteConsoleWindow(), EditCursor, C4ConsoleGUI::PropertyDlgClose(), C4Window::pSurface, C4Application::Quit(), and ToolsDlg.
Referenced by C4Application::Clear().
|
inherited |
Definition at line 667 of file C4Console.cpp.
Referenced by C4MessageInput::ProcessCommand().
void C4Console::ClearNetMenu | ( | ) |
Definition at line 569 of file C4Console.cpp.
References C4Window::Active, and C4ConsoleGUI::ClearNetMenu().
Referenced by Clear(), and UpdateNetMenu().
|
inherited |
Definition at line 669 of file C4Console.cpp.
Referenced by Clear(), and UpdatePlayerMenu().
void C4Console::ClearPointers | ( | C4Object * | pObj | ) |
Definition at line 405 of file C4Console.cpp.
References C4EditCursor::ClearPointers(), C4ConsoleGUI::ClearPointers(), and EditCursor.
Referenced by C4Game::ClearPointers().
void C4Console::ClearViewportMenu | ( | ) |
Definition at line 475 of file C4Console.cpp.
References C4Window::Active, and C4ConsoleGUI::ClearViewportMenu().
Referenced by Clear(), and UpdateViewportMenu().
|
overridevirtual |
Implements C4Window.
Definition at line 437 of file C4Console.cpp.
References Application, C4ConsoleGUI::CloseConsoleWindow(), and C4Application::Quit().
Referenced by ConsoleDlgProc(), and FileQuit().
|
inlineinherited |
Definition at line 116 of file C4ConsoleGUI.h.
Referenced by Close().
void C4Console::CloseGame | ( | ) |
Definition at line 609 of file C4Console.cpp.
References C4Window::Active, C4ConsoleGUI::EnableControls(), C4ConsoleGUI::fGameOpen, LoadResStr(), and C4Window::SetTitle().
Referenced by C4Game::Clear().
|
inherited |
Definition at line 671 of file C4Console.cpp.
References C4Window::Init(), LoadResStr(), and C4Window::W_Console.
Referenced by Init().
|
inlineinherited |
Definition at line 113 of file C4ConsoleGUI.h.
Referenced by FileNew().
void C4Console::Default | ( | ) |
Definition at line 411 of file C4Console.cpp.
References C4EditCursor::Default(), C4ToolsDlg::Default(), EditCursor, C4ConsoleGUI::PropertyDlgObject, and ToolsDlg.
Referenced by InitGame().
|
inherited |
Definition at line 678 of file C4Console.cpp.
Referenced by Clear().
|
inherited |
Definition at line 679 of file C4Console.cpp.
Referenced by C4EditCursor::UpdateStatusBar(), and UpdateStatusBars().
|
inherited |
Definition at line 680 of file C4Console.cpp.
Referenced by C4ConsoleGUI::EnableControls().
void C4Console::DoHalt | ( | ) |
Definition at line 100 of file C4Console.cpp.
References Game, and C4Game::Pause().
Referenced by ConsoleDlgProc().
void C4Console::DoPlay | ( | ) |
Definition at line 95 of file C4Console.cpp.
References Game, and C4Game::Unpause().
Referenced by ConsoleDlgProc().
|
inherited |
Definition at line 681 of file C4Console.cpp.
Referenced by C4ConsoleGUI::UpdateHaltCtrls().
|
inlineinherited |
Definition at line 118 of file C4ConsoleGUI.h.
|
inlineinherited |
Definition at line 143 of file C4ConsoleGUI.h.
References C4Window::Active, Control, C4ConsoleGUI::DoEnableControls(), C4ConsoleGUI::Editing, and C4GameControl::NoInput().
Referenced by CloseGame(), InitGame(), and UpdateMenus().
|
inlineinherited |
Definition at line 115 of file C4ConsoleGUI.h.
|
virtualinherited |
Definition at line 105 of file C4AppT.cpp.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg().
void C4Console::Execute | ( | ) |
Definition at line 581 of file C4Console.cpp.
References EditCursor, C4ConsoleGUI::Execute(), C4EditCursor::Execute(), C4ObjectListDlg::Execute(), C4GraphicsSystem::Execute(), GraphicsSystem, ObjectListDlg, and UpdateStatusBars().
Referenced by C4Application::Draw().
bool C4Console::FileClose | ( | ) |
Definition at line 382 of file C4Console.cpp.
References Application, C4ConsoleGUI::fGameOpen, and C4Application::QuitGame().
Referenced by ConsoleDlgProc().
bool C4Console::FileCommand | ( | ) |
bool C4Console::FileNew | ( | ) |
Definition at line 298 of file C4Console.cpp.
References C4ConfigDeveloper::AddRecentlyEditedScenario(), Application, C4Application::ClearCommandLine(), Config, C4ConsoleGUI::CreateNewScenario(), C4Config::Developer, C4Game::fLobby, Game, StdStrBuf::getData(), C4Game::NetworkActive, and C4Application::OpenGame().
bool C4Console::FileOpen | ( | const char * | filename = nullptr , |
bool | host_in_network = false |
||
) |
Definition at line 319 of file C4Console.cpp.
References C4ConfigDeveloper::AddRecentlyEditedScenario(), Application, C4Application::ClearCommandLine(), Config, C4Config::Developer, FILE_SELECT_FILTER_FOR_C4S, FileSelect(), C4Game::fLobby, Game, StdStrBuf::getData(), C4Game::NetworkActive, OpenFileFlags::OFN_FILEMUSTEXIST, OpenFileFlags::OFN_HIDEREADONLY, and C4Application::OpenGame().
Referenced by ConsoleDlgProc().
bool C4Console::FileOpenWPlrs | ( | ) |
Definition at line 343 of file C4Console.cpp.
References C4ConfigDeveloper::AddRecentlyEditedScenario(), Application, C4Application::ClearCommandLine(), Config, C4Config::Developer, DirectoryExists(), DirSep, FILE_SELECT_FILTER_FOR_C4S, FileSelect(), Game, StdStrBuf::getData(), OpenFileFlags::OFN_ALLOWMULTISELECT, OpenFileFlags::OFN_EXPLORER, OpenFileFlags::OFN_FILEMUSTEXIST, OpenFileFlags::OFN_HIDEREADONLY, C4Application::OpenGame(), C4Game::PlayerFilenames, SAddModule(), SAppend(), and SLen().
Referenced by ConsoleDlgProc().
bool C4Console::FileQuit | ( | ) |
Definition at line 443 of file C4Console.cpp.
References Close().
Referenced by ConsoleDlgProc().
bool C4Console::FileRecord | ( | ) |
Definition at line 394 of file C4Console.cpp.
References Control, Game, C4Game::IsRunning, C4GameControl::IsRuntimeRecordPossible(), C4ConsoleGUI::RecordingEnabled(), and C4GameControl::RequestRuntimeRecord().
Referenced by ConsoleDlgProc().
bool C4Console::FileSave | ( | ) |
Definition at line 262 of file C4Console.cpp.
References SaveScenario().
Referenced by ConsoleDlgProc().
bool C4Console::FileSaveAs | ( | bool | fSaveGame, |
bool | export_packed = false |
||
) |
Definition at line 269 of file C4Console.cpp.
References C4ConfigDeveloper::AddRecentlyEditedScenario(), StdStrBuf::Append(), Config, StdStrBuf::Copy(), DefaultExtension(), C4Config::Developer, FileSelect(), Game, StdStrBuf::getData(), C4Group::GetName(), OpenFileFlags::OFN_HIDEREADONLY, OpenFileFlags::OFN_OVERWRITEPROMPT, RemoveExtension(), SaveGame(), SaveScenario(), and C4Game::ScenarioFile.
Referenced by ConsoleDlgProc().
bool C4Console::FileSelect | ( | StdStrBuf * | sFilename, |
const char * | szFilter, | ||
DWORD | dwFlags, | ||
bool | fSave = false |
||
) |
Definition at line 389 of file C4Console.cpp.
References C4ConsoleGUI::FileSelect().
Referenced by FileOpen(), FileOpenWPlrs(), FileSaveAs(), and PlayerJoin().
|
inherited |
Definition at line 75 of file C4AppMac.mm.
Referenced by C4AbstractApp::NotifyUserIfInactive().
std::list< const char * > C4Console::GetScriptSuggestions | ( | class C4PropList * | target, |
RecentScriptInputLists | section | ||
) | const |
Definition at line 622 of file C4Console.cpp.
References C4AulScriptEngine::GetFunctionNames(), and ScriptEngine.
Referenced by UpdateInputCtrl().
|
inherited |
Definition at line 108 of file C4AppT.cpp.
Referenced by C4Application::OnResolutionChanged(), C4GUI::DialogWindow::PerformUpdate(), and C4Game::PreInit().
|
inherited |
Definition at line 107 of file C4AppT.cpp.
Referenced by C4Application::GameTick().
void C4Console::HelpAbout | ( | ) |
Definition at line 449 of file C4Console.cpp.
References StdStrBuf::Format(), and C4ConsoleGUI::ShowAboutWithCopyright().
Referenced by ConsoleDlgProc().
bool C4Console::In | ( | const char * | szText | ) |
Definition at line 65 of file C4Console.cpp.
References C4Window::Active, CDT_Decide, CID_Script, Control, C4GameControl::DoInput(), EditCursor, C4EditCursor::EditingOK(), C4Network2::isEnabled(), C4Network2Status::isPastLobby(), MessageInput, Network, C4MessageInput::ProcessCommand(), C4MessageInput::ProcessInput(), C4ControlScript::SCOPE_Console, and C4Network2::Status.
Referenced by ConsoleDlgProc().
|
virtual |
Definition at line 58 of file C4Console.cpp.
References C4ConsoleGUI::CreateConsoleWindow().
Referenced by C4Application::DoInit().
C4Window * C4Window::Init |
Definition at line 322 of file C4AppT.cpp.
|
protectedvirtualinherited |
Definition at line 109 of file C4AppT.cpp.
Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), C4ConsoleGUI::CreateConsoleWindow(), C4GUI::DialogWindow::Init(), and C4ViewportWindow::Init().
void C4Console::InitGame | ( | ) |
Definition at line 590 of file C4Console.cpp.
References C4Window::Active, C4ViewportList::CreateViewport(), Default(), EditCursor, C4ConsoleGUI::EnableControls(), C4ConsoleGUI::fGameOpen, Game, C4PlayerInfoList::GetStartupCount(), C4EditCursor::Init(), NO_OWNER, C4Game::PlayerInfos, C4Game::ScenarioFilename, SetCaptionToFilename(), UpdateInputCtrl(), UpdatePlayerMenu(), UpdateViewportMenu(), and Viewports.
Referenced by C4Game::Init().
bool C4Console::Message | ( | const char * | szMessage, |
bool | fQuery = false |
||
) |
Definition at line 292 of file C4Console.cpp.
References C4Window::Active, and C4ConsoleGUI::Message().
Referenced by C4EditCursor::EditingOK(), C4Game::InitPlayers(), C4EditCursor::LeftButtonDown(), SaveGame(), SaveScenario(), C4ToolsDlg::SetLandscapeMode(), and C4EditCursor::ToolFailure().
|
inlineinherited |
Definition at line 112 of file C4ConsoleGUI.h.
|
inlineinherited |
Definition at line 114 of file C4ConsoleGUI.h.
Referenced by C4Application::GameTick().
|
inherited |
Definition at line 684 of file C4Console.cpp.
Referenced by C4Game::DropDef(), C4Game::DropFile(), Log(), C4Application::ProcessCallback(), SaveGame(), and SaveScenario().
|
virtualinherited |
Reimplemented in C4GUI::DialogWindow, C4FullScreen, and C4ViewportWindow.
void C4Console::PlayerJoin | ( | ) |
Definition at line 513 of file C4Console.cpp.
References StdStrBuf::Append(), StdStrBuf::AppendBackslash(), StdStrBuf::Copy(), DirectoryExists(), FileSelect(), StdStrBuf::getData(), C4PlayerList::JoinNew(), OpenFileFlags::OFN_ALLOWMULTISELECT, OpenFileFlags::OFN_EXPLORER, OpenFileFlags::OFN_HIDEREADONLY, Players, and SLen().
Referenced by ConsoleDlgProc().
|
inherited |
Definition at line 686 of file C4Console.cpp.
Referenced by Clear(), PropertyDlgProc(), and C4EditCursor::SetMode().
|
inherited |
Definition at line 685 of file C4Console.cpp.
Referenced by C4EditCursor::OpenPropTools().
|
inherited |
Definition at line 687 of file C4Console.cpp.
Referenced by C4EditCursor::Clear(), C4EditCursor::Execute(), C4EditCursor::In(), C4EditCursor::OnSelectionChanged(), and C4EditCursor::OpenPropTools().
|
inherited |
Definition at line 688 of file C4Console.cpp.
Referenced by FileRecord().
void C4Console::RegisterRecentInput | ( | const char * | input, |
RecentScriptInputLists | section | ||
) |
Definition at line 639 of file C4Console.cpp.
References Config, C4Config::Developer, and C4ConfigDeveloper::MaxScriptMRU.
Referenced by ConsoleDlgProc(), and C4EditCursor::In().
|
virtualinherited |
Definition at line 110 of file C4AppT.cpp.
|
inlineinherited |
Definition at line 111 of file C4ConsoleGUI.h.
|
virtualinherited |
Definition at line 112 of file C4AppT.cpp.
Referenced by C4FullScreen::Execute().
|
inherited |
Definition at line 111 of file C4AppT.cpp.
Referenced by C4GUI::DialogWindow::Init(), and C4ViewportWindow::Init().
bool C4Console::SaveGame | ( | const char * | path | ) |
Definition at line 127 of file C4Console.cpp.
References C4ConsoleGUI::CURSOR_Normal, C4ConsoleGUI::CURSOR_Wait, C4Network2::isEnabled(), C4Network2::isHost(), LoadResStr(), Message(), Network, C4ConsoleGUI::Out(), C4GameSave::Save(), and C4ConsoleGUI::SetCursor().
Referenced by FileSaveAs().
bool C4Console::SaveScenario | ( | const char * | path, |
bool | export_packed = false |
||
) |
Definition at line 151 of file C4Console.cpp.
References _MAX_PATH, C4Window::Active, C4Group_CopyItem(), C4Group_PackDirectoryTo(), C4Group::Close(), Console, C4ConsoleGUI::CURSOR_Normal, C4ConsoleGUI::CURSOR_Wait, EraseItem(), Exact, FileExists(), StdStrBuf::Format(), FormatString(), C4Game::fScriptCreatedObjects, Game, StdStrBuf::getData(), GetFilename(), C4Landscape::GetMode(), C4Group::GetMother(), C4Group::GetName(), C4Group::IsPacked(), ItemIdentical(), Landscape, LoadResStr(), Message(), C4Group::Open(), C4ConsoleGUI::Out(), C4GameSave::Save(), C4Game::ScenarioFile, C4Game::ScenarioFilename, SCopy(), SEqual2(), SetCaptionToFilename(), C4ConsoleGUI::SetCursor(), and C4Game::TempScenarioFile.
Referenced by FileSave(), and FileSaveAs().
|
inherited |
Definition at line 689 of file C4Console.cpp.
Referenced by SetCaptionToFilename().
void C4Console::SetCaptionToFilename | ( | const char * | szFilename | ) |
Definition at line 575 of file C4Console.cpp.
References GetFilename(), C4ConsoleGUI::SetCaptionToFileName(), and C4Window::SetTitle().
Referenced by InitGame(), and SaveScenario().
|
inherited |
Definition at line 690 of file C4Console.cpp.
Referenced by SaveGame(), and SaveScenario().
|
inherited |
Definition at line 691 of file C4Console.cpp.
Referenced by UpdateInputCtrl().
|
inherited |
Definition at line 113 of file C4AppT.cpp.
Referenced by C4Application::DoInit(), C4GUI::DialogWindow::Init(), C4AbstractApp::SetVideoMode(), and C4GUI::Dialog::UpdateSize().
|
inherited |
Definition at line 114 of file C4AppT.cpp.
Referenced by CloseGame(), SetCaptionToFilename(), and C4GUI::Dialog::SetTitle().
|
inherited |
Definition at line 692 of file C4Console.cpp.
Referenced by HelpAbout().
|
inherited |
Definition at line 153 of file C4WindowSDL.cpp.
bool C4Console::TogglePause | ( | ) |
Definition at line 617 of file C4Console.cpp.
References Game, and C4Game::TogglePause().
Referenced by C4Game::InitKeyboard().
|
inherited |
Definition at line 666 of file C4Console.cpp.
Referenced by C4ToolsDlg::Clear(), and C4EditCursor::SetMode().
|
inherited |
Definition at line 693 of file C4Console.cpp.
Referenced by C4ToolsDlg::InitMaterialCtrls().
|
inherited |
Definition at line 694 of file C4Console.cpp.
Referenced by C4ToolsDlg::Open().
|
inherited |
Definition at line 697 of file C4Console.cpp.
Referenced by C4ToolsDlg::SelectBackMaterial().
|
inherited |
Definition at line 698 of file C4Console.cpp.
Referenced by C4ToolsDlg::SelectBackTexture(), and C4ToolsDlg::SetBackTexture().
|
inherited |
Definition at line 695 of file C4Console.cpp.
Referenced by C4ToolsDlg::SelectMaterial().
|
inherited |
Definition at line 696 of file C4Console.cpp.
Referenced by C4ToolsDlg::SelectTexture(), and C4ToolsDlg::SetTexture().
|
inlineinherited |
Definition at line 152 of file C4ConsoleGUI.h.
References C4Window::Active, and C4ConsoleGUI::DoUpdateHaltCtrls().
Referenced by C4Network2::CheckStatusReached(), C4Game::InitGameFinal(), C4Network2::OnStatusAck(), C4Network2::OnStatusReached(), C4Game::Pause(), and C4Game::Unpause().
void C4Console::UpdateInputCtrl | ( | ) |
Definition at line 481 of file C4Console.cpp.
References C4Value::_getPropList(), Console, GameScript, GetScriptSuggestions(), MRU_Scenario, C4GameScriptHost::ScenPropList, and C4ConsoleGUI::SetInputFunctions().
Referenced by ConsoleDlgProc(), and InitGame().
void C4Console::UpdateMenus | ( | ) |
Definition at line 504 of file C4Console.cpp.
References C4Window::Active, C4ConsoleGUI::EnableControls(), C4ConsoleGUI::fGameOpen, UpdateNetMenu(), UpdatePlayerMenu(), and UpdateViewportMenu().
Referenced by C4Network2::DoLobby(), C4Game::JoinPlayer(), and C4PlayerList::Remove().
|
inherited |
Definition at line 699 of file C4Console.cpp.
Referenced by C4EditCursor::Init(), and C4EditCursor::SetMode().
void C4Console::UpdateNetMenu | ( | ) |
Definition at line 542 of file C4Console.cpp.
References C4Window::Active, C4ConsoleGUI::AddNetMenu(), C4ConsoleGUI::AddNetMenuItemForPlayer(), ClearNetMenu(), C4Game::Clients, C4Network2::Clients, C4ConsoleGUI::CO_Activate, C4ConsoleGUI::CO_Deactivate, C4ConsoleGUI::CO_Kick, C4ConsoleGUI::CO_None, StdStrBuf::Format(), Game, StdStrBuf::getData(), C4ClientList::getLocalID(), C4ClientList::getLocalName(), C4Network2ClientList::GetNextClient(), C4Network2::isEnabled(), C4Network2::isHost(), LoadResStr(), and Network.
Referenced by UpdateMenus().
bool C4Console::UpdatePlayerMenu | ( | ) |
Definition at line 488 of file C4Console.cpp.
References C4Window::Active, C4ConsoleGUI::AddKickPlayerMenuItem(), C4ConsoleGUI::ClearPlayerMenu(), C4ConsoleGUI::Editing, C4PlayerList::First, StdStrBuf::Format(), C4Network2::isEnabled(), C4Network2::isHost(), LoadResStr(), Network, C4Player::Next, and Players.
Referenced by InitGame(), and UpdateMenus().
void C4Console::UpdateStatusBars | ( | ) |
Definition at line 105 of file C4Console.cpp.
References C4Window::Active, C4ConsoleGUI::CONSOLE_FrameCounter, C4ConsoleGUI::CONSOLE_TimeFPS, C4ConsoleGUI::DisplayInfoText(), StdStrBuf::Format(), FPS, C4Game::FPS, FrameCounter, C4Game::FrameCounter, Game, Time, and C4Game::Time.
Referenced by Execute().
bool C4Console::UpdateViewportMenu | ( | ) |
Definition at line 462 of file C4Console.cpp.
References C4Window::Active, C4ConsoleGUI::AddMenuItemForPlayer(), ClearViewportMenu(), C4PlayerList::First, StdStrBuf::Format(), LoadResStr(), C4Player::Next, and Players.
Referenced by InitGame(), and UpdateMenus().
void C4Console::ViewportNew | ( | ) |
Definition at line 456 of file C4Console.cpp.
References C4ViewportList::CreateViewport(), C4ConsoleGUI::fGameOpen, NO_OWNER, and Viewports.
Referenced by ConsoleDlgProc().
|
inherited |
Definition at line 274 of file C4Window.h.
Referenced by AddMenuItem(), C4Console(), ClearNetMenu(), ClearViewportMenu(), CloseGame(), ConsoleDlgProc(), C4Game::DoKeyboardInput(), C4Network2::DoLobby(), C4ConsoleGUI::EnableControls(), In(), InitGame(), C4Game::InitPlayers(), Message(), C4Game::OnResolutionChanged(), C4PlayerInfoList::RestoreSavegameInfos(), C4Network2::RetrieveRes(), SaveScenario(), C4GraphicsSystem::ToggleShow8BitSurface(), C4GraphicsSystem::ToggleShowAction(), C4GraphicsSystem::ToggleShowVertices(), C4ConsoleGUI::UpdateHaltCtrls(), UpdateMenus(), C4ConsoleGUI::State::UpdateMenuText(), UpdateNetMenu(), UpdatePlayerMenu(), UpdateStatusBars(), UpdateViewportMenu(), and C4FullScreen::ViewportCheck().
C4EditCursor C4Console::EditCursor |
Definition at line 90 of file C4Console.h.
Referenced by C4Game::Clear(), Clear(), C4Application::Clear(), ClearPointers(), ConsoleDlgProc(), Default(), C4PropertyPath::DoCall(), C4Viewport::Draw(), C4ViewportWindow::EditCursorMove(), Execute(), C4EditCursor::Execute(), In(), InitGame(), C4Game::InitKeyboard(), PropertyDlgProc(), and C4PropertyPath::SetProperty().
|
inherited |
Definition at line 83 of file C4ConsoleGUI.h.
Referenced by C4Console(), C4EditCursor::DoContextMenu(), C4EditCursor::EditingOK(), C4ConsoleGUI::EnableControls(), C4EditCursor::Execute(), and UpdatePlayerMenu().
|
inherited |
Definition at line 276 of file C4Window.h.
|
inherited |
Definition at line 84 of file C4ConsoleGUI.h.
Referenced by C4Console(), CloseGame(), FileClose(), InitGame(), UpdateMenus(), and ViewportNew().
int C4Console::FPS |
Definition at line 93 of file C4Console.h.
Referenced by UpdateStatusBars().
int C4Console::FrameCounter |
Definition at line 92 of file C4Console.h.
Referenced by C4Console(), and UpdateStatusBars().
C4ObjectListDlg C4Console::ObjectListDlg |
Definition at line 89 of file C4Console.h.
Referenced by Execute(), and C4EditCursor::OnSelectionChanged().
|
inherited |
Definition at line 164 of file C4ConsoleGUI.h.
Referenced by Default().
|
inherited |
Definition at line 275 of file C4Window.h.
Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), Clear(), C4FullScreen::Clear(), C4GUI::Dialog::CreateConsoleWindow(), C4GUI::Dialog::DestroyConsoleWindow(), C4GraphicsSystem::DoSaveScreenshot(), C4GUI::Dialog::Draw(), C4ViewportList::DrawFullscreenBackground(), C4Viewport::Execute(), C4GraphicsSystem::FinishDrawing(), C4Draw::Init(), C4ViewportWindow::Init(), C4Game::InitFullscreenComponents(), C4MessageBoard::LogNotify(), C4Application::OnResolutionChanged(), C4GUI::DialogWindow::PerformUpdate(), C4Application::PreInit(), C4ViewportList::RecalculateViewports(), C4GUI::Screen::Render(), CStdGL::RestoreDeviceObjects(), C4Game::SaveGameTitle(), C4ConsoleGUIPreviewWindow::~C4ConsoleGUIPreviewWindow(), and C4FullScreen::~C4FullScreen().
int C4Console::Time |
Definition at line 93 of file C4Console.h.
Referenced by UpdateStatusBars().
C4ToolsDlg C4Console::ToolsDlg |
Definition at line 88 of file C4Console.h.
Referenced by C4EditCursor::AltDown(), C4EditCursor::AltUp(), C4EditCursor::ApplyToolBrush(), C4EditCursor::ApplyToolFill(), C4EditCursor::ApplyToolLine(), C4EditCursor::ApplyToolPicker(), C4EditCursor::ApplyToolRect(), Clear(), Default(), C4EditCursor::Draw(), C4EditCursor::Execute(), C4Game::InitKeyboard(), C4EditCursor::LeftButtonDown(), C4EditCursor::LeftButtonUp(), C4EditCursor::Move(), C4EditCursor::OpenPropTools(), and C4EditCursor::ToolFailure().