____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include "icons.h"
Go to the source code of this file.
Classes | |
| class | ButtonAction |
Defines | |
| #define | ModifierShift 1 |
| any shift key pressed | |
| #define | ModifierControl 2 |
| any control key pressed | |
| #define | ModifierAlt 4 |
| any alt key pressed | |
| #define | ModifierSuper 8 |
| super key (reserved for WM) | |
| #define | ModifierDoublePress 16 |
| key double pressed | |
| #define | MouseDoubleShift 8 |
| shift for double click button | |
| #define | MouseDragShift 16 |
| shift for drag button | |
| #define | MouseHoldShift 24 |
| shift for hold button | |
| #define | NoButton 0 |
| No button. | |
| #define | LeftButton 2 |
| Left button on mouse. | |
| #define | MiddleButton 4 |
| Middle button on mouse. | |
| #define | RightButton 8 |
| Right button on mouse. | |
| #define | UpButton 16 |
| Scroll up button on mouse. | |
| #define | DownButton 32 |
| Scroll down button on mouse. | |
| #define | LeftAndMiddleButton (LeftButton | MiddleButton) |
| Left + Middle button on mouse. | |
| #define | LeftAndRightButton (LeftButton | RightButton) |
| Left + Right button on mouse. | |
| #define | MiddleAndRightButton (MiddleButton | RightButton) |
| Middle + Right button on mouse. | |
| #define | ScrollNone 0 |
| not scrolling | |
| #define | ScrollUp 1 |
| scroll up only | |
| #define | ScrollDown 2 |
| scroll down only | |
| #define | ScrollLeft 4 |
| scroll left only | |
| #define | ScrollRight 8 |
| scroll right only | |
| #define | ScrollLeftUp 5 |
| scroll left + up | |
| #define | ScrollLeftDown 6 |
| scroll left + down | |
| #define | ScrollRightUp 9 |
| scroll right + up | |
| #define | ScrollRightDown 10 |
| scroll right + down | |
Typedefs | |
| typedef bool(* | ButtonCheckFunc )(const CUnit *, const ButtonAction *) |
| Action of button. | |
Enumerations | |
| enum | ButtonCmd { ButtonMove, ButtonAttack, ButtonRepair, ButtonHarvest, ButtonBuild, ButtonPatrol, ButtonAttackGround, ButtonSpellCast, ButtonUnload, ButtonStop, ButtonButton, ButtonTrain, ButtonStandGround, ButtonCancel, ButtonCancelTrain, ButtonCancelBuild } |
| < Button Commands that need target selection More... | |
| enum | _button_area_ { ButtonAreaSelected, ButtonAreaTraining, ButtonAreaTransporting, ButtonAreaButton, ButtonAreaMenu } |
| enum | _menu_button_under_ { ButtonUnderMenu, ButtonUnderNetworkMenu, ButtonUnderNetworkDiplomacy } |
| enum | _iface_state_ { IfaceStateNormal, IfaceStateMenu } |
| enum | _key_state_ { KeyStateCommand = 0, KeyStateInput } |
| enum | _cursor_on_ { CursorOnUnknown = -1, CursorOnMinimap, CursorOnButton, CursorOnMap, CursorOnScrollUp, CursorOnScrollDown, CursorOnScrollLeft, CursorOnScrollRight, CursorOnScrollLeftUp, CursorOnScrollLeftDown, CursorOnScrollRightUp, CursorOnScrollRightDown } |
Functions | |
| void | InitButtons (void) |
| < Generate all buttons | |
| void | CleanButtons (void) |
| Make a new button. | |
| int | AddButton (int pos, int level, const std::string &IconIdent, ButtonCmd action, const std::string &value, const ButtonCheckFunc func, const std::string &arg, const std::string &hint, const std::string &umask) |
| void | HandleButtonDown (unsigned button) |
| < Called if any mouse button is pressed down | |
| void | HandleButtonUp (unsigned button) |
| Keep coordinates in window and update cursor position. | |
| void | HandleCursorMove (int *x, int *y) |
| Called if the mouse is moved. | |
| void | HandleMouseMove (int x, int y) |
| Called if the mouse exits the game window (only for some videomodes). | |
| void | HandleMouseExit (void) |
| Update KeyModifiers if a key is pressed. | |
| int | HandleKeyModifiersDown (unsigned keycode, unsigned keychar) |
| Update KeyModifiers if a key is released. | |
| int | HandleKeyModifiersUp (unsigned keycode, unsigned keychar) |
| Called if a key is pressed. | |
| void | HandleKeyDown (unsigned keycode, unsigned keychar) |
| Called when a key is released. | |
| void | HandleKeyUp (unsigned keycode, unsigned keychar) |
| Called when a key is repeated. | |
| void | HandleKeyRepeat (unsigned keycode, unsigned keychar) |
| void | InputMouseButtonPress (const struct _event_callback_ *callbacks, unsigned ticks, unsigned button) |
| < Called if any mouse button is pressed down | |
| void | InputMouseButtonRelease (const struct _event_callback_ *callbacks, unsigned ticks, unsigned button) |
| Called if the mouse is moved. | |
| void | InputMouseMove (const struct _event_callback_ *callbacks, unsigned ticks, int x, int y) |
| Called if the mouse exits the game window (when supported by videomode). | |
| void | InputMouseExit (const struct _event_callback_ *callbacks, unsigned ticks) |
| Called to look for mouse timeouts. | |
| void | InputMouseTimeout (const struct _event_callback_ *callbacks, unsigned ticks) |
| Called if any key button is pressed down. | |
| void | InputKeyButtonPress (const struct _event_callback_ *callbacks, unsigned ticks, unsigned ikey, unsigned ikeychar) |
| Called if any key button is released up. | |
| void | InputKeyButtonRelease (const struct _event_callback_ *callbacks, unsigned ticks, unsigned ikey, unsigned ikeychar) |
| Called to look for key timeouts. | |
| void | InputKeyTimeout (const struct _event_callback_ *callbacks, unsigned ticks) |
| Get double click delay. | |
| int | GetDoubleClickDelay (void) |
| Set double click delay. | |
| void | SetDoubleClickDelay (int delay) |
| Get hold click delay. | |
| int | GetHoldClickDelay (void) |
| Set hold click delay. | |
| void | SetHoldClickDelay (int delay) |
| Toggle pause mode. | |
| void | UiTogglePause (void) |
| Handle cheats. | |
| int | HandleCheats (const std::string &input) |
| Call the lua function HandleCommandKey. | |
| bool | HandleCommandKey (int key) |
| void | DoRightButton (int tx, int ty) |
| < Called if right mouse button is pressed | |
| void | CancelBuildingMode (void) |
| Draw menu button area. | |
| void | DrawMenuButtonArea (void) |
| Update messages. | |
| void | UpdateMessages (void) |
| Draw messages as overlay over of the map. | |
| void | DrawMessages (void) |
| Draw the player resource in resource line. | |
| void | DrawResources (void) |
| Set message to display. | |
| void | SetMessage (const char *fmt,...) |
| Set message to display with event point. | |
| void | SetMessageEvent (int x, int y, const char *fmt,...) |
| Center view-point on last event message. | |
| void | CenterOnMessage (void) |
| Cleanup all messages. | |
| void | CleanMessages (void) |
| Draw costs in status line. | |
| void | DrawCosts (void) |
| Set costs to be displayed in status line. | |
| void | SetCosts (int mana, const int *costs) |
| Clear the costs displayed in status line (undisplay!). | |
| void | ClearCosts (void) |
| Draw the timer. | |
| void | DrawTimer (void) |
| Update the timer. | |
| void | UpdateTimer (void) |
| Update the status line with hints from the button. | |
| void | UpdateStatusLineForButton (const ButtonAction *button) |
| Draw the Pie Menu. | |
| void | DrawPieMenu (void) |
| Handle the mouse in scroll area. | |
| int | HandleMouseScrollArea (int x, int y) |
| bool | ButtonCheckTrue (const CUnit *unit, const ButtonAction *button) |
| < Check is always true | |
| bool | ButtonCheckFalse (const CUnit *unit, const ButtonAction *button) |
| Check if allowed units exists. | |
| bool | ButtonCheckUnitsOr (const CUnit *unit, const ButtonAction *button) |
| Check if allowed units exists. | |
| bool | ButtonCheckUnitsAnd (const CUnit *unit, const ButtonAction *button) |
| Check if have network play. | |
| bool | ButtonCheckNetwork (const CUnit *unit, const ButtonAction *button) |
| Check if don't have network play. | |
| bool | ButtonCheckNoNetwork (const CUnit *unit, const ButtonAction *button) |
| Check if unit isn't working (train). | |
| bool | ButtonCheckNoWork (const CUnit *unit, const ButtonAction *button) |
| Check if all requirements for an attack to are meet. | |
| bool | ButtonCheckAttack (const CUnit *unit, const ButtonAction *button) |
| void | SelectionChanged (void) |
| < Called whenever the units selection is altered | |
| void | SelectedUnitChanged (void) |
| void | SetGamePaused (bool paused) |
| < Set the game paused or unpaused | |
| bool | GetGamePaused () |
| Set the game speed. | |
| void | SetGameSpeed (int speed) |
| Get the game speed. | |
| int | GetGameSpeed () |
Variables | |
| bool | GameRunning |
| < Flag telling if the game is running | |
| bool | GamePaused |
| Flag telling if the game is in observe mode. | |
| bool | GameObserve |
| Flag telling not to advance to the next game cycle. | |
| char | SkipGameCycle |
| Invincibility cheat. | |
| bool | GodMode |
| Whether the map is the only thing displayed or not. | |
| char | BigMapMode |
| pressed mouse buttons (normal,double,dragged,long) | |
| int | MouseButtons |
| current active modifiers | |
| int | KeyModifiers |
| current interface state | |
| enum _iface_state_ | InterfaceState |
| current scroll state of keyboard | |
| int | KeyScrollState |
| current scroll state of mouse | |
| int | MouseScrollState |
| current key state | |
| enum _key_state_ | KeyState |
| pointer to unit under the cursor | |
| CUnit * | UnitUnderCursor |
| button area under the cursor | |
| int | ButtonAreaUnderCursor |
| button number under the cursor | |
| int | ButtonUnderCursor |
| menu button was clicked down | |
| bool | GameMenuButtonClicked |
| diplomacy button was clicked down | |
| bool | GameDiplomacyButtonClicked |
| Mouse leaves windows stops scroll. | |
| bool | LeaveStops |
| current CursorOn field | |
| enum _cursor_on_ | CursorOn |
| vladi: used for unit buttons sub-menus etc | |
| int | CurrentButtonLevel |
| Time to detect double clicks. | |
| int | DoubleClickDelay |
| Time to detect hold clicks. | |
| int | HoldClickDelay |
| Time to detect hold clicks. | |
Definition in file interface.h.
| #define DownButton 32 |
Scroll down button on mouse.
Definition at line 139 of file interface.h.
Referenced by tolua_stratagus_open().
| #define LeftAndMiddleButton (LeftButton | MiddleButton) |
| #define LeftAndRightButton (LeftButton | RightButton) |
| #define LeftButton 2 |
Left button on mouse.
Definition at line 134 of file interface.h.
Referenced by DoSelectionButtons(), DrawInfoPanelMultipleSelected(), DrawTrainingUnits(), DrawTransportingUnits(), DrawUnitInfo(), EditorCallbackButtonDown(), EditorCallbackButtonUp(), EditorCallbackMouse(), EditorMainLoop(), GetButtonStatus(), PatchEditorCallbackButtonDown(), tolua_stratagus_open(), UIHandleButtonDown(), UIHandleButtonUp(), UIHandleMouseMove(), and UISelectStateButtonDown().
| #define MiddleAndRightButton (MiddleButton | RightButton) |
| #define MiddleButton 4 |
Middle button on mouse.
Definition at line 135 of file interface.h.
Referenced by EditorCallbackButtonDown(), tolua_stratagus_open(), and UIHandleButtonDown().
| #define ModifierAlt 4 |
any alt key pressed
Definition at line 124 of file interface.h.
Referenced by CommandKey(), DoSelectionButtons(), EditorCallbackKeyDown(), HandleCommandKey(), HandleKeyDown(), HandleKeyModifiersDown(), HandleKeyModifiersUp(), PatchEditorCallbackKeyDown(), UIHandleButtonDown(), and UIHandleButtonUp().
| #define ModifierControl 2 |
any control key pressed
Definition at line 123 of file interface.h.
Referenced by CommandKey(), CButtonPanel::DoClicked(), DoRightButton(), DoSelectionButtons(), EditorCallbackKeyDown(), EditorCallbackKeyRepeated(), EditorMainLoop(), GameMainLoop(), HandleCommandKey(), HandleKeyDown(), HandleKeyModifiersDown(), HandleKeyModifiersUp(), MouseScrollMap(), PatchEditorCallbackKeyDown(), and UIHandleButtonUp().
| #define ModifierDoublePress 16 |
key double pressed
Definition at line 126 of file interface.h.
Referenced by CommandKey(), and InputKeyButtonPress().
| #define ModifierShift 1 |
any shift key pressed
Definition at line 122 of file interface.h.
Referenced by CommandKey(), CButtonPanel::DoClicked(), DoRightButton(), DoSelectionButtons(), CViewport::Draw(), HandleCommandKey(), HandleKeyModifiersDown(), HandleKeyModifiersUp(), SendAttack(), SendAttackGround(), SendMove(), SendPatrol(), SendRepair(), SendResource(), SendSpellCast(), SendUnload(), UIHandleButtonDown(), and UIHandleButtonUp().
| #define ModifierSuper 8 |
super key (reserved for WM)
Definition at line 125 of file interface.h.
Referenced by HandleKeyDown(), HandleKeyModifiersDown(), and HandleKeyModifiersUp().
| #define MouseDoubleShift 8 |
shift for double click button
Definition at line 128 of file interface.h.
Referenced by DoSelectionButtons(), InputMouseButtonPress(), InputMouseButtonRelease(), and UIHandleButtonUp().
| #define MouseDragShift 16 |
shift for drag button
Definition at line 129 of file interface.h.
Referenced by InputMouseButtonRelease().
| #define MouseHoldShift 24 |
shift for hold button
pressed mouse button flags
Definition at line 130 of file interface.h.
Referenced by EditorCallbackButtonDown(), InputMouseButtonRelease(), and InputMouseTimeout().
| #define NoButton 0 |
| #define RightButton 8 |
Right button on mouse.
Definition at line 136 of file interface.h.
Referenced by tolua_stratagus_open(), UIHandleButtonDown(), and UIHandleMouseMove().
| #define ScrollDown 2 |
scroll down only
Definition at line 164 of file interface.h.
Referenced by CommandKey(), DoScroll(), DoScrollArea(), EditorCallbackKeyDown(), EditorCallbackKeyUp(), HandleKeyUp(), HandleMouseScrollArea(), PatchEditorCallbackKeyDown(), and PatchEditorCallbackKeyUp().
| #define ScrollLeft 4 |
scroll left only
Definition at line 165 of file interface.h.
Referenced by CommandKey(), DoScroll(), DoScrollArea(), EditorCallbackKeyDown(), EditorCallbackKeyUp(), HandleKeyUp(), HandleMouseScrollArea(), PatchEditorCallbackKeyDown(), and PatchEditorCallbackKeyUp().
| #define ScrollLeftDown 6 |
scroll left + down
Definition at line 168 of file interface.h.
Referenced by HandleMouseScrollArea().
| #define ScrollLeftUp 5 |
| #define ScrollNone 0 |
not scrolling
Definition at line 162 of file interface.h.
Referenced by DoScroll(), DoScrollArea(), EditorCallbackMouse(), EditorMainLoop(), HandleMouseExit(), and HandleMouseOn().
| #define ScrollRight 8 |
scroll right only
Definition at line 166 of file interface.h.
Referenced by CommandKey(), DoScroll(), DoScrollArea(), EditorCallbackKeyDown(), EditorCallbackKeyUp(), HandleKeyUp(), HandleMouseScrollArea(), PatchEditorCallbackKeyDown(), and PatchEditorCallbackKeyUp().
| #define ScrollRightDown 10 |
scroll right + down
Definition at line 170 of file interface.h.
Referenced by HandleMouseScrollArea().
| #define ScrollRightUp 9 |
scroll right + up
Definition at line 169 of file interface.h.
Referenced by HandleMouseScrollArea().
| #define ScrollUp 1 |
scroll up only
Definition at line 163 of file interface.h.
Referenced by CommandKey(), DoScroll(), DoScrollArea(), EditorCallbackKeyDown(), EditorCallbackKeyUp(), HandleKeyUp(), HandleMouseScrollArea(), PatchEditorCallbackKeyDown(), and PatchEditorCallbackKeyUp().
| #define UpButton 16 |
Scroll up button on mouse.
Definition at line 138 of file interface.h.
Referenced by tolua_stratagus_open().
| typedef bool(* ButtonCheckFunc)(const CUnit *, const ButtonAction *) |
| enum _button_area_ |
| ButtonAreaSelected | Selected button. |
| ButtonAreaTraining | Training button. |
| ButtonAreaTransporting | Transporting button. |
| ButtonAreaButton | Button panel button. |
| ButtonAreaMenu | Menu button. |
Definition at line 94 of file interface.h.
| enum _cursor_on_ |
Definition at line 146 of file interface.h.
| enum _iface_state_ |
Definition at line 110 of file interface.h.
| enum _key_state_ |
Definition at line 116 of file interface.h.
| enum _menu_button_under_ |
| ButtonUnderMenu | Menu button. |
| ButtonUnderNetworkMenu | Network menu button. |
| ButtonUnderNetworkDiplomacy | Diplomacy button. |
Definition at line 103 of file interface.h.
| enum ButtonCmd |
< Button Commands that need target selection
Definition at line 51 of file interface.h.
| int AddButton | ( | int | pos, | |
| int | level, | |||
| const std::string & | icon_ident, | |||
| ButtonCmd | action, | |||
| const std::string & | value, | |||
| const ButtonCheckFunc | func, | |||
| const std::string & | allow, | |||
| const std::string & | hint, | |||
| const std::string & | umask | |||
| ) |
Add a button
Definition at line 99 of file botpanel.cpp.
References _C_, ButtonAction::Action, ButtonAction::Allowed, ButtonAction::AllowStr, Assert, ButtonBuild, ButtonSpellCast, ButtonTrain, DebugPrint, GetHotKey(), ButtonAction::Hint, ButtonAction::Icon, ButtonAction::Key, ButtonAction::Level, IconConfig::Name, ButtonAction::Pos, SpellType::Slot, SpellTypeByIdent(), UnitButtonTable, ButtonAction::UnitMask, UnitTypeIdByIdent(), ButtonAction::Value, and ButtonAction::ValueStr.
Referenced by CclDefineButton().
| bool ButtonCheckAttack | ( | const CUnit * | unit, | |
| const ButtonAction * | button | |||
| ) |
Check if all requirements for an attack are met.
| unit | Pointer to unit for button. | |
| button | Pointer to button to check/enable. |
Definition at line 180 of file button_checks.cpp.
References CUnitType::CanAttack, and CUnit::Type.
Referenced by CclDefineButton(), and IsButtonAllowed().
| bool ButtonCheckFalse | ( | const CUnit * | unit, | |
| const ButtonAction * | button | |||
| ) |
Check if allowed units exists.
Check for button enabled, always false. This needed to overwrite the internal tests.
| unit | Pointer to unit for button. | |
| button | Pointer to button to check/enable. |
Definition at line 73 of file button_checks.cpp.
Referenced by CclDefineButton().
| bool ButtonCheckNetwork | ( | const CUnit * | unit, | |
| const ButtonAction * | button | |||
| ) |
Check if don't have network play.
Check if network play is enabled.
| unit | Pointer to unit for button. | |
| button | Pointer to button to check/enable. |
Definition at line 138 of file button_checks.cpp.
References IsNetworkGame.
Referenced by CclDefineButton().
| bool ButtonCheckNoNetwork | ( | const CUnit * | unit, | |
| const ButtonAction * | button | |||
| ) |
Check if unit isn't working (train).
Check if network play is disabled.
| unit | Pointer to unit for button. | |
| button | Pointer to button to check/enable. |
Definition at line 153 of file button_checks.cpp.
References IsNetworkGame.
Referenced by CclDefineButton().
| bool ButtonCheckNoWork | ( | const CUnit * | unit, | |
| const ButtonAction * | button | |||
| ) |
Check if all requirements for an attack to are meet.
Check for button enabled, if the unit isn't working. Working is training.
| unit | Pointer to unit for button. | |
| button | Pointer to button to check/enable. |
Definition at line 167 of file button_checks.cpp.
References CUnit::Orders, and UnitActionTrain.
Referenced by CclDefineButton().
| bool ButtonCheckTrue | ( | const CUnit * | unit, | |
| const ButtonAction * | button | |||
| ) |
< Check is always true
Check is always false
ButtonCheck for button enabled, always true. This needed to overwrite the internal tests.
| unit | Pointer to unit for button. | |
| button | Pointer to button to check/enable. |
Definition at line 59 of file button_checks.cpp.
Referenced by CclDefineButton().
| bool ButtonCheckUnitsAnd | ( | const CUnit * | unit, | |
| const ButtonAction * | button | |||
| ) |
Check if have network play.
Check for button enabled, if all units are available.
| unit | Pointer to unit for button. | |
| button | Pointer to button to check/enable. |
Definition at line 111 of file button_checks.cpp.
References ButtonAction::AllowStr, CPlayer::HaveUnitTypeByIdent(), new_strdup(), and CUnit::Player.
Referenced by CclDefineButton().
| bool ButtonCheckUnitsOr | ( | const CUnit * | unit, | |
| const ButtonAction * | button | |||
| ) |
Check if allowed units exists.
Check for button enabled, if any unit is available.
| unit | Pointer to unit for button. | |
| button | Pointer to button to check/enable. |
Definition at line 86 of file button_checks.cpp.
References ButtonAction::AllowStr, CPlayer::HaveUnitTypeByIdent(), new_strdup(), and CUnit::Player.
Referenced by CclDefineButton().
| void CancelBuildingMode | ( | void | ) |
Draw menu button area.
Cancel building cursor mode.
Definition at line 88 of file mouse.cpp.
References CUserInterface::ButtonPanel, CStatusLine::Clear(), ClearCosts(), CurrentButtonLevel, CursorBuilding, CUserInterface::StatusLine, UI, and CButtonPanel::Update().
Referenced by DoActionMove(), CUnit::Remove(), and UIHandleButtonDown().
| void CenterOnMessage | ( | void | ) |
Cleanup all messages.
Goto message origin.
Definition at line 722 of file mainscr.cpp.
References _, CViewport::Center(), MessagesEvent, MessagesEventCount, MessagesEventIndex, MessagesEventX, MessagesEventY, CUserInterface::SelectedViewport, SetMessage(), TileSizeX, TileSizeY, and UI.
Referenced by CommandKey().
| void CleanButtons | ( | void | ) |
Make a new button.
Cleanup buttons.
Definition at line 163 of file botpanel.cpp.
References Assert, CurrentButtonLevel, int(), and UnitButtonTable.
Referenced by CleanModules().
| void CleanMessages | ( | void | ) |
Draw costs in status line.
Clean messages
Definition at line 643 of file mainscr.cpp.
References MessagesDisplay::CleanMessages().
Referenced by CleanGame(), and CleanModules().
| void ClearCosts | ( | void | ) |
Draw the timer.
Clear costs in status line.
Definition at line 836 of file mainscr.cpp.
References SetCosts().
Referenced by CancelBuildingMode(), CButtonPanel::DoClicked(), DoSelectionButtons(), SelectionChanged(), UiBeginInput(), UiFindIdleWorker(), UIHandleButtonUp(), UISelectStateButtonDown(), and UpdateStatusLineForButton().
| void DoRightButton | ( | int | sx, | |
| int | sy | |||
| ) |
< Called if right mouse button is pressed
Cancel the building input mode
Called when right button is pressed
| sx | X map position in pixels. | |
| sy | Y map position in pixels. |
Definition at line 103 of file mouse.cpp.
References Assert, CUnit::Blink, CUnitType::CanCastSpell, CUnitType::CanHarvestFrom, CanMove(), CanSelectMultipleUnits, CanTarget(), CanTransport(), CUnitType::CanTransport, CYCLES_PER_SECOND, DebugPrint, CUnitType::Decoration, GameCycle, CUnitType::Harvester, HP_INDEX, CPlayer::Index, CUnit::IsAllied(), CUnit::IsEnemy(), CUnit::IsTeamed(), KeyModifiers, CVariable::Max, ModifierControl, ModifierShift, CUnitType::MouseAction, MouseActionAttack, MouseActionHarvest, MouseActionMove, MouseActionSail, MouseActionSpellCast, NoUnitP, NumSelected, CUnit::Orders, CUnit::Player, PlayerNumNeutral, PlayUnitSound(), Preference, CUnitType::RepairHP, CUnitType::RepairRange, RightButtonAttacks, Selected, SendCommandAttack(), SendCommandBoard(), SendCommandFollow(), SendCommandMove(), SendCommandRepair(), SendCommandResource(), SendCommandSpellCast(), SendCommandStopUnit(), CPreference::ShowOrders, ShowOrdersCount, SpellTypeTable, ThisPlayer, TileSizeX, TileSizeY, CUnit::Type, UnitActionBuilt, CVariable::Value, CUnit::Variable, VoiceAcknowledging, and y.
Referenced by UIHandleButtonDown().
| void DrawCosts | ( | void | ) |
Set costs to be displayed in status line.
Draw costs in status line.
Definition at line 791 of file mainscr.cpp.
References Costs, CostsMana, CYCLES_PER_SECOND, CGraphic::DrawFrameClip(), EnergyCost, CResourceInfo::G, GameFont, CResourceInfo::IconFrame, MaxCosts, CUserInterface::Resources, CUserInterface::StatusLine, CStatusLine::TextX, CStatusLine::TextY, UI, Video, VideoDrawNumber(), and CVideo::Width.
Referenced by UpdateDisplay().
| void DrawMenuButtonArea | ( | void | ) |
Update messages.
Draw menu button area.
Definition at line 68 of file mainscr.cpp.
References ButtonAreaMenu, ButtonAreaUnderCursor, ButtonUnderCursor, ButtonUnderMenu, ButtonUnderNetworkDiplomacy, ButtonUnderNetworkMenu, DrawMenuButton(), GameDiplomacyButtonClicked, GameMenuButtonClicked, IsNetworkGame, CUserInterface::MenuButton, MI_FLAGS_ACTIVE, MI_FLAGS_CLICKED, CUserInterface::NetworkDiplomacyButton, CUserInterface::NetworkMenuButton, CUIButton::Style, CUIButton::Text, UI, CUIButton::X, and CUIButton::Y.
Referenced by UpdateDisplay().
| void DrawMessages | ( | void | ) |
Draw the player resource in resource line.
Draw messages
Definition at line 651 of file mainscr.cpp.
References MessagesDisplay::DrawMessages().
Referenced by UpdateDisplay().
| void DrawPieMenu | ( | void | ) |
Handle the mouse in scroll area.
Draw Pie Menu
Definition at line 1825 of file mouse.cpp.
References CUserInterface::ButtonPanel, CButtonPanel::Buttons, CurrentButtons, CursorStartX, CursorStartY, CursorState, CursorStatePieMenu, CursorStatePoint, CGraphic::DrawFrameClip(), CIcon::DrawIcon(), CViewport::EndX, CViewport::EndY, CPieMenu::G, GameFont, GetPieUnderCursor(), CGraphic::Height, IconConfig::Icon, ButtonAction::Icon, ICON_SIZE_X, ICON_SIZE_Y, int(), KeyState, KeyStateInput, CUserInterface::PieMenu, CUnit::Player, PopClipping(), PushClipping(), Selected, CUserInterface::SelectedViewport, SetClipping(), CButtonPanel::ShowCommandKey, UI, UpdateStatusLineForButton(), VideoDrawTextClip(), CGraphic::Width, CPieMenu::X, CViewport::X, CPieMenu::Y, y, and CViewport::Y.
Referenced by UpdateDisplay().
| void DrawResources | ( | void | ) |
Set message to display.
Draw the player resource in top line.
Definition at line 373 of file mainscr.cpp.
References _, CYCLES_PER_SECOND, GameFont, MaxCosts, CPlayer::ProductionRate, CPlayer::RequestedUtilizationRate, sprintf_s(), CPlayer::StorageCapacity, CPlayer::StoredResources, ThisPlayer, and VideoDrawText().
Referenced by UpdateDisplay().
| void DrawTimer | ( | void | ) |
Update the timer.
Draw the timer
Definition at line 955 of file mainscr.cpp.
References CTimer::Cycles, CYCLES_PER_SECOND, CUITimer::Font, GameTimer, CTimer::Init, sprintf_s(), CUserInterface::Timer, UI, VideoDrawText(), CUITimer::X, and CUITimer::Y.
Referenced by UpdateDisplay().
| int GetDoubleClickDelay | ( | void | ) |
Set double click delay.
Get double click delay
Definition at line 1418 of file interface.cpp.
Referenced by tolua_stratagus_GetDoubleClickDelay00().
| bool GetGamePaused | ( | ) |
Set the game speed.
Get the game paused or unpaused
Definition at line 346 of file game.cpp.
References GamePaused.
Referenced by tolua_get_GamePaused(), and tolua_stratagus_GetGamePaused00().
| int GetGameSpeed | ( | ) |
Get the game speed
Definition at line 369 of file game.cpp.
References CYCLES_PER_SECOND, and VideoSyncSpeed.
Referenced by tolua_get_GameSpeed(), and tolua_stratagus_GetGameSpeed00().
| int GetHoldClickDelay | ( | void | ) |
Set hold click delay.
Get hold click delay
Definition at line 1436 of file interface.cpp.
Referenced by tolua_stratagus_GetHoldClickDelay00().
| void HandleButtonDown | ( | unsigned | button | ) |
< Called if any mouse button is pressed down
Called if any mouse button is released up
Called if mouse button pressed down.
| button | Mouse button number (0 left, 1 middle, 2 right) |
Definition at line 1184 of file interface.cpp.
References UIHandleButtonDown().
Referenced by InitGameCallbacks().
| void HandleButtonUp | ( | unsigned | button | ) |
Keep coordinates in window and update cursor position.
Called if mouse button released.
| button | Mouse button number (0 left, 1 middle, 2 right) |
Definition at line 1197 of file interface.cpp.
References UIHandleButtonUp().
Referenced by InitGameCallbacks().
| int HandleCheats | ( | const std::string & | input | ) |
Call the lua function HandleCommandKey.
Handle cheats
Definition at line 693 of file interface.cpp.
References CPlayer::Ai, CPlayer::AiEnabled, AiInit(), DebugPrint, Lua, LuaCall(), LuaToBoolean(), PlayerComputer, PlayerPerson, SetMessage(), ThisPlayer, and CPlayer::Type.
Referenced by DoNextReplay(), and InputKey().
| bool HandleCommandKey | ( | int | key | ) |
Call the lua function HandleCommandKey
Definition at line 472 of file interface.cpp.
References DebugPrint, KeyModifiers, Lua, LuaCall(), LuaError, LuaToBoolean(), ModifierAlt, ModifierControl, ModifierShift, and SdlKey2Str().
Referenced by CommandKey(), EditorCallbackKeyDown(), and PatchEditorCallbackKeyDown().
| void HandleCursorMove | ( | int * | x, | |
| int * | y | |||
| ) |
Called if the mouse is moved.
Keep coordinates in window and update cursor position
| x | screen pixel X position. | |
| y | screen pixel Y position. |
Definition at line 1147 of file interface.cpp.
References CursorX, CursorY, CVideo::Height, Video, and CVideo::Width.
Referenced by EditorCallbackMouse(), HandleMouseMove(), MenuHandleMouseMove(), and PatchEditorCallbackMouse().
| void HandleKeyDown | ( | unsigned | key, | |
| unsigned | keychar | |||
| ) |
Called when a key is released.
Handle key down.
| key | Key scancode. | |
| keychar | Character code. |
Definition at line 1016 of file interface.cpp.
References CUserInterface::ButtonPanel, CommandKey(), CButtonPanel::DoKey(), GameObserve, GamePaused, HandleKeyModifiersDown(), InputKey(), IsKeyPad(), KeyModifiers, KeyState, KeyStateInput, ModifierAlt, ModifierControl, ModifierSuper, and UI.
Referenced by InitGameCallbacks().
| int HandleKeyModifiersDown | ( | unsigned | key, | |
| unsigned | keychar | |||
| ) |
Update KeyModifiers if a key is released.
Update KeyModifiers if a key is pressed.
| key | Key scancode. | |
| keychar | Character code. |
Definition at line 907 of file interface.cpp.
References _, GameRunning, IfaceStateNormal, InterfaceState, KeyModifiers, ModifierAlt, ModifierControl, ModifierShift, ModifierSuper, Screenshot(), SelectedUnitChanged(), and SetMessage().
Referenced by EditorCallbackKeyDown(), HandleKeyDown(), MenuHandleKeyDown(), MenuHandleKeyRepeat(), and PatchEditorCallbackKeyDown().
| int HandleKeyModifiersUp | ( | unsigned | key, | |
| unsigned | keychar | |||
| ) |
Called if a key is pressed.
Update KeyModifiers if a key is released.
| key | Key scancode. | |
| keychar | Character code. |
Definition at line 953 of file interface.cpp.
References IfaceStateNormal, InterfaceState, KeyModifiers, ModifierAlt, ModifierControl, ModifierShift, ModifierSuper, and SelectedUnitChanged().
Referenced by EditorCallbackKeyUp(), HandleKeyUp(), MenuHandleKeyUp(), and PatchEditorCallbackKeyUp().
| void HandleKeyRepeat | ( | unsigned | key, | |
| unsigned | keychar | |||
| ) |
Handle key up.
| key | Key scancode. | |
| keychar | Character code. |
Definition at line 1082 of file interface.cpp.
References InputKey(), KeyState, and KeyStateInput.
Referenced by InitGameCallbacks().
| void HandleKeyUp | ( | unsigned | key, | |
| unsigned | keychar | |||
| ) |
Called when a key is repeated.
Handle key up.
| key | Key scancode. | |
| keychar | Character code. |
Definition at line 1048 of file interface.cpp.
References HandleKeyModifiersUp(), KeyScrollState, ScrollDown, ScrollLeft, ScrollRight, and ScrollUp.
Referenced by InitGameCallbacks().
| void HandleMouseExit | ( | void | ) |
Update KeyModifiers if a key is pressed.
Handle cursor exits the game window (only for some videomodes)
Definition at line 570 of file mouse.cpp.
References CursorConfig::Cursor, CursorOn, CursorOnUnknown, CursorX, CursorY, GameCursor, CVideo::Height, KeyScrollState, LeaveStops, MouseScrollState, CUserInterface::Point, ScrollNone, UI, Video, and CVideo::Width.
Referenced by InitGameCallbacks(), and initGuichan().
| void HandleMouseMove | ( | int | x, | |
| int | y | |||
| ) |
Called if the mouse exits the game window (only for some videomodes).
Handle movement of the cursor.
| x | screen pixel X position. | |
| y | screen pixel Y position. |
Definition at line 1173 of file interface.cpp.
References HandleCursorMove(), and UIHandleMouseMove().
Referenced by DoScrollArea(), and InitGameCallbacks().
| int HandleMouseScrollArea | ( | int | x, | |
| int | y | |||
| ) |
Handle the mouse in scroll area
| x | Screen X position. | |
| y | Screen Y position. |
Definition at line 1097 of file interface.cpp.
References CUserInterface::ArrowE, CUserInterface::ArrowN, CUserInterface::ArrowNE, CUserInterface::ArrowNW, CUserInterface::ArrowS, CUserInterface::ArrowSE, CUserInterface::ArrowSW, CUserInterface::ArrowW, CursorConfig::Cursor, CursorOn, CursorOnScrollDown, CursorOnScrollLeft, CursorOnScrollLeftDown, CursorOnScrollLeftUp, CursorOnScrollRight, CursorOnScrollRightDown, CursorOnScrollRightUp, CursorOnScrollUp, GameCursor, MouseScrollState, SCROLL_DOWN, SCROLL_LEFT, SCROLL_RIGHT, SCROLL_UP, ScrollDown, ScrollLeft, ScrollLeftDown, ScrollLeftUp, ScrollRight, ScrollRightDown, ScrollRightUp, ScrollUp, and UI.
Referenced by EditorCallbackMouse(), HandleMouseOn(), and PatchEditorCallbackMouse().
| void InitButtons | ( | void | ) |
< Generate all buttons
Free memory for buttons
Initialize the buttons.
Definition at line 82 of file botpanel.cpp.
References int(), and UnitButtonTable.
Referenced by CreateGame(), and InitModules().
| void InputKeyButtonPress | ( | const struct _event_callback_ * | callbacks, | |
| unsigned | ticks, | |||
| unsigned | ikey, | |||
| unsigned | ikeychar | |||
| ) |
| void InputKeyButtonRelease | ( | const struct _event_callback_ * | callbacks, | |
| unsigned | ticks, | |||
| unsigned | ikey, | |||
| unsigned | ikeychar | |||
| ) |
| void InputKeyTimeout | ( | const struct _event_callback_ * | callbacks, | |
| unsigned | ticks | |||
| ) |
| void InputMouseButtonPress | ( | const struct _event_callback_ * | callbacks, | |
| unsigned | ticks, | |||
| unsigned | button | |||
| ) |
< Called if any mouse button is pressed down
Called if any mouse button is released up
Referenced by SdlDoEvent().
| void InputMouseButtonRelease | ( | const struct _event_callback_ * | callbacks, | |
| unsigned | ticks, | |||
| unsigned | button | |||
| ) |
| void InputMouseExit | ( | const struct _event_callback_ * | callbacks, | |
| unsigned | ticks | |||
| ) |
| void InputMouseMove | ( | const struct _event_callback_ * | callbacks, | |
| unsigned | ticks, | |||
| int | x, | |||
| int | y | |||
| ) |
Called if the mouse exits the game window (when supported by videomode).
Referenced by SdlDoEvent().
| void InputMouseTimeout | ( | const struct _event_callback_ * | callbacks, | |
| unsigned | ticks | |||
| ) |
| void SelectedUnitChanged | ( | void | ) |
The selected unit has been altered.
Definition at line 897 of file script_ui.cpp.
Referenced by CUnit::ClearAction(), CommandCancelTraining(), EnterTransporter(), HandleActionBuilt(), HandleKeyModifiersDown(), HandleKeyModifiersUp(), HandleUnitAction(), and LeaveTransporter().
| void SelectionChanged | ( | void | ) |
< Called whenever the units selection is altered
Called whenever the selected unit was updated
Run the set-selection-changed-hook.
Definition at line 881 of file script_ui.cpp.
References CUserInterface::ButtonPanel, CStatusLine::Clear(), ClearCosts(), CurrentButtonLevel, CursorConfig::Cursor, CursorBuilding, CursorState, CursorStatePoint, GameCursor, CUserInterface::Point, CUserInterface::StatusLine, UI, and CButtonPanel::Update().
Referenced by DoActionMove(), DoSelectionButtons(), LoadGame(), CUnit::Remove(), UiAddGroupToSelection(), UiFindIdleWorker(), UIHandleButtonUp(), UiSelectGroup(), and UiUnselectAll().
| void SetCosts | ( | int | mana, | |
| const int * | costs | |||
| ) |
Clear the costs displayed in status line (undisplay!).
Set costs in status line.
| mana | Mana costs. | |
| costs | Resource costs, NULL pointer if all are zero. |
Definition at line 823 of file mainscr.cpp.
References Costs, CostsMana, and MaxCosts.
Referenced by ClearCosts(), and UpdateStatusLineForButton().
| void SetDoubleClickDelay | ( | int | delay | ) |
Get hold click delay.
Set double click delay
| delay | Double click delay |
Definition at line 1428 of file interface.cpp.
Referenced by tolua_stratagus_SetDoubleClickDelay00().
| void SetGamePaused | ( | bool | paused | ) |
< Set the game paused or unpaused
Get the game paused or unpaused
Set the game paused or unpaused
| paused | True to pause game, false to unpause. |
Definition at line 336 of file game.cpp.
References GamePaused.
Referenced by tolua_set_GamePaused(), and tolua_stratagus_SetGamePaused00().
| void SetGameSpeed | ( | int | speed | ) |
Get the game speed.
Set the game speed
| speed | New game speed. |
Definition at line 356 of file game.cpp.
References CYCLES_PER_SECOND, FastForwardCycle, GameCycle, SetVideoSync(), and VideoSyncSpeed.
Referenced by tolua_set_GameSpeed(), and tolua_stratagus_SetGameSpeed00().
| void SetHoldClickDelay | ( | int | delay | ) |
Toggle pause mode.
Set hold click delay
| delay | Hold click delay |
Definition at line 1446 of file interface.cpp.
Referenced by tolua_stratagus_SetHoldClickDelay00().
| void SetMessage | ( | const char * | fmt, | |
| ... | ||||
| ) |
Set message to display with event point.
Set message to display.
| fmt | To be displayed in text overlay. |
Definition at line 661 of file mainscr.cpp.
References MessagesDisplay::AddUniqueMessage().
Referenced by CclAddMessage(), CenterOnMessage(), CommandQuit(), HandleCheats(), HandleKeyModifiersDown(), NetworkEvent(), NetworkRecover(), ParseNetworkCommand(), and ReplayEachCycle().
| void SetMessageEvent | ( | int | x, | |
| int | y, | |||
| const char * | fmt, | |||
| ... | ||||
| ) |
Center view-point on last event message.
Set message to display.
| x | Message X map origin. | |
| y | Message Y map origin. | |
| fmt | To be displayed in text overlay. |
Definition at line 695 of file mainscr.cpp.
References MessagesDisplay::AddUniqueMessage(), MESSAGES_MAX, MessagesEvent, MessagesEventCount, MessagesEventIndex, MessagesEventX, MessagesEventY, ShiftMessagesEvent(), and strcpy_s().
Referenced by CPlayer::Notify().
| void UiTogglePause | ( | void | ) |
Handle cheats.
Toggle pause on / off.
Definition at line 287 of file interface.cpp.
References _, GamePaused, IsNetworkGame, CStatusLine::Set(), CUserInterface::StatusLine, and UI.
Referenced by CommandKey(), and SdlDoEvent().
| void UpdateMessages | ( | void | ) |
Draw messages as overlay over of the map.
Update messages
Definition at line 636 of file mainscr.cpp.
References MessagesDisplay::UpdateMessages().
Referenced by GameMainLoop().
| void UpdateStatusLineForButton | ( | const ButtonAction * | button | ) |
Draw the Pie Menu.
Update the status line with hints from the button
| button | Button |
Definition at line 477 of file botpanel.cpp.
References ButtonAction::Action, Assert, ButtonBuild, ButtonSpellCast, ButtonTrain, ClearCosts(), ButtonAction::Hint, CStatusLine::Set(), SetCosts(), SpellTypeTable, CUserInterface::StatusLine, UI, UnitTypes, and ButtonAction::Value.
Referenced by CButtonPanel::Draw(), and DrawPieMenu().
| void UpdateTimer | ( | void | ) |
Update the status line with hints from the button.
Update the timer
Definition at line 978 of file mainscr.cpp.
References CTimer::Cycles, GameCycle, GameTimer, CTimer::Increasing, CTimer::LastUpdate, and CTimer::Running.
Referenced by GameMainLoop().
| char BigMapMode |
pressed mouse buttons (normal,double,dragged,long)
Definition at line 91 of file interface.cpp.
Referenced by HandleMouseOn(), UiToggleBigMap(), and UpdateDisplay().
button number under the cursor
Definition at line 72 of file mouse.cpp.
Referenced by CButtonPanel::Draw(), DrawInfoPanelMultipleSelected(), DrawInfoPanelSingleSelected(), DrawMenuButtonArea(), DrawTrainingUnits(), DrawTransportingUnits(), DrawUnitInfo(), EditorCallbackButtonDown(), EditorCallbackMouse(), EditorUpdateDisplay(), GetButtonStatus(), HandleMouseOn(), UIHandleButtonDown(), UIHandleButtonUp(), and UISelectStateButtonDown().
menu button was clicked down
Definition at line 73 of file mouse.cpp.
Referenced by CButtonPanel::Draw(), DrawEditorPanel(), DrawInfoPanelMultipleSelected(), DrawInfoPanelSingleSelected(), DrawMenuButtonArea(), DrawPopup(), DrawTrainingUnits(), DrawTransportingUnits(), DrawUnitInfo(), EditorCallbackButtonDown(), EditorCallbackButtonUp(), EditorCallbackMouse(), EditorUpdateDisplay(), GetButtonStatus(), HandleMouseOn(), MenuLoop(), UIHandleButtonDown(), UIHandleButtonUp(), and UISelectStateButtonDown().
Time to detect double clicks.
Time to detect double clicks.
All buttons for units
Definition at line 70 of file botpanel.cpp.
Referenced by CancelBuildingMode(), CleanButtons(), CButtonPanel::DoClicked(), DoSelectionButtons(), SelectionChanged(), SendCommand(), UiFindIdleWorker(), UIHandleButtonUp(), UISelectStateButtonDown(), UpdateButtonPanelMultipleUnits(), and UpdateButtonPanelSingleUnit().
| enum _cursor_on_ CursorOn |
vladi: used for unit buttons sub-menus etc
Definition at line 78 of file mouse.cpp.
Referenced by DrawCursor(), EditorCallbackButtonDown(), EditorCallbackMouse(), EditorMainLoop(), EditorUpdateDisplay(), HandleMouseExit(), HandleMouseOn(), HandleMouseScrollArea(), HandlePieMenuMouseSelection(), RestrictCursorToMinimap(), RestrictCursorToViewport(), MenuScreen::run(), UIHandleButtonDown(), UIHandleMouseMove(), and UISelectStateButtonDown().
| int DoubleClickDelay |
Mouse leaves windows stops scroll.
Definition at line 75 of file mouse.cpp.
Referenced by DrawMenuButtonArea(), UIHandleButtonDown(), UIHandleButtonUp(), and UIHandleMouseMove().
diplomacy button was clicked down
Definition at line 74 of file mouse.cpp.
Referenced by DrawMenuButtonArea(), EditorCallbackButtonDown(), EditorCallbackButtonUp(), EditorUpdateDisplay(), UIHandleButtonDown(), UIHandleButtonUp(), and UIHandleMouseMove().
| bool GameObserve |
Flag telling not to advance to the next game cycle.
Definition at line 89 of file interface.cpp.
Referenced by CleanReplayLog(), DoSelectionButtons(), HandleKeyDown(), InputKey(), LoadReplay(), ReplayEachCycle(), tolua_get_GameObserve(), tolua_set_GameObserve(), UIHandleButtonDown(), and UISelectStateButtonDown().
| bool GamePaused |
Flag telling if the game is in observe mode.
Definition at line 88 of file interface.cpp.
Referenced by CreateGame(), DoSelectionButtons(), GameMainLoop(), GetGamePaused(), HandleKeyDown(), InputKey(), SdlDoEvent(), SetGamePaused(), MenuScreen::stop(), StopGame(), TriggersEachCycle(), UIHandleButtonDown(), UIHandleButtonUp(), UISelectStateButtonDown(), and UiTogglePause().
| bool GameRunning |
< Flag telling if the game is running
Flag telling if the game is paused
Definition at line 87 of file interface.cpp.
Referenced by DrawCursor(), DrawGuichanWidgets(), GameMainLoop(), HandleKeyModifiersDown(), HideCursor(), NetworkProcessServerRequest(), SelectUnit(), SelectUnitsByType(), MenuScreen::stop(), StopGame(), tolua_get_GameRunning(), tolua_set_GameRunning(), UpdateDisplay(), and WaitEventsOneFrame().
| bool GodMode |
Whether the map is the only thing displayed or not.
Definition at line 93 of file interface.cpp.
Referenced by CclGetGodMode(), CclSetGodMode(), GameMainLoop(), HitUnit(), and SaveCcl().
| int HoldClickDelay |
current scroll state of keyboard
Definition at line 92 of file interface.cpp.
Referenced by EditorMainLoop(), HandleKeyModifiersDown(), HandleKeyModifiersUp(), MenuLoop(), NetworkParseSetupEvent(), and StartMap().
| int KeyModifiers |
current interface state
Definition at line 69 of file mouse.cpp.
Referenced by CommandKey(), CButtonPanel::DoClicked(), DoRightButton(), DoSelectionButtons(), CViewport::Draw(), EditorCallbackKeyDown(), EditorCallbackKeyRepeated(), EditorMainLoop(), GameMainLoop(), HandleCommandKey(), HandleKeyDown(), HandleKeyModifiersDown(), HandleKeyModifiersUp(), InputKeyButtonPress(), MouseScrollMap(), PatchEditorCallbackKeyDown(), SendAttack(), SendAttackGround(), SendMove(), SendPatrol(), SendRepair(), SendResource(), SendSpellCast(), SendUnload(), UIHandleButtonDown(), UIHandleButtonUp(), and UiToggleGrabMouse().
| int KeyScrollState |
current scroll state of mouse
current scroll state of mouse
variable set when we are scrolling via mouse
Definition at line 79 of file mainloop.cpp.
Referenced by CommandKey(), DoScroll(), EditorCallbackKeyDown(), EditorCallbackKeyUp(), EditorMainLoop(), GameMainLoop(), HandleKeyUp(), HandleMouseExit(), PatchEditorCallbackKeyDown(), and PatchEditorCallbackKeyUp().
| enum _key_state_ KeyState |
pointer to unit under the cursor
Definition at line 94 of file interface.cpp.
Referenced by CStatusLine::Clear(), CButtonPanel::Draw(), DrawPieMenu(), HandleKeyDown(), HandleKeyRepeat(), InputKey(), CStatusLine::Set(), ShowInput(), and UiBeginInput().
| bool LeaveStops |
current CursorOn field
Definition at line 76 of file mouse.cpp.
Referenced by GetLeaveStops(), HandleMouseExit(), and SetLeaveStops().
| int MouseButtons |
current active modifiers
Definition at line 67 of file mouse.cpp.
Referenced by DoSelectionButtons(), DrawInfoPanelMultipleSelected(), DrawTrainingUnits(), DrawTransportingUnits(), DrawUnitInfo(), EditorCallbackButtonDown(), EditorCallbackMouse(), EditorMainLoop(), GetButtonStatus(), InputMouseButtonPress(), InputMouseButtonRelease(), InputMouseTimeout(), UIHandleButtonDown(), UIHandleButtonUp(), UIHandleMouseMove(), and UISelectStateButtonDown().
| int MouseScrollState |
current key state
Definition at line 82 of file mainloop.cpp.
Referenced by DoScroll(), EditorCallbackMouse(), EditorMainLoop(), GameMainLoop(), HandleMouseExit(), HandleMouseOn(), and HandleMouseScrollArea().
| char SkipGameCycle |
Invincibility cheat.
Definition at line 90 of file interface.cpp.
Referenced by GameMainLoop(), and WaitEventsOneFrame().
button area under the cursor
Definition at line 71 of file mouse.cpp.
Referenced by CleanCursors(), CleanGame(), CreateGame(), DrawInfoPanelNoneSelected(), DrawMapCursor(), DrawUnitSelection(), EditorCallbackKeyDown(), EditorCallbackMouse(), and CUnit::Remove().
1.5.6