#include <InGameUI.h>
Inherits SubsystemInterface, and Snapshot.
Inherited by W3DInGameUI.
Classes | |
| struct | MilitarySubtitleData |
| struct | MoveHintStruct |
| struct | UIMessage |
Public Member Functions | |
| InGameUI (void) | |
| virtual | ~InGameUI (void) |
| virtual void | init (void) |
| Initialize the in-game user interface. | |
| virtual void | update (void) |
| Update the UI by calling preDraw(), draw(), and postDraw() | |
| virtual void | reset (void) |
| Reset. | |
| virtual void | popupMessage (const AsciiString &message, Int x, Int y, Int width, Bool pause, Bool pauseMusic) |
| virtual void | popupMessage (const AsciiString &message, Int x, Int y, Int width, Color textColor, Bool pause, Bool pauseMusic) |
| PopupMessageData * | getPopupMessageData (void) |
| void | clearPopupMessageData (void) |
| virtual void | messageColor (const RGBColor *rgbColor, UnicodeString format,...) |
| display a colored message to the user | |
| virtual void | message (UnicodeString format,...) |
| display a message to the user | |
| virtual void | message (AsciiString stringManagerLabel,...) |
| display a message to the user | |
| virtual void | toggleMessages (void) |
| toggle messages on/off | |
| virtual Bool | isMessagesOn (void) |
| are the display messages on | |
| void | freeMessageResources (void) |
| free resources for the ui messages | |
| Color | getMessageColor (Bool altColor) |
| virtual void | militarySubtitle (const AsciiString &label, Int duration) |
| virtual void | removeMilitarySubtitle (void) |
| virtual void | displayCantBuildMessage (LegalBuildCode lbc) |
| display message to use as to why they can't build here | |
| virtual void | beginAreaSelectHint (const GameMessage *msg) |
| Used by HintSpy. An area selection is occurring, start graphical "hint". | |
| virtual void | endAreaSelectHint (const GameMessage *msg) |
| Used by HintSpy. An area selection had occurred, finish graphical "hint". | |
| virtual void | createMoveHint (const GameMessage *msg) |
| A move command has occurred, start graphical "hint". | |
| virtual void | createAttackHint (const GameMessage *msg) |
| An attack command has occurred, start graphical "hint". | |
| virtual void | createForceAttackHint (const GameMessage *msg) |
| A force attack command has occurred, start graphical "hint". | |
| virtual void | createMouseoverHint (const GameMessage *msg) |
| An object is mouse hovered over, start hint if any. | |
| virtual void | createCommandHint (const GameMessage *msg) |
| Used by HintSpy. Someone is selected so generate the right Cursor for the potential action. | |
| virtual void | createGarrisonHint (const GameMessage *msg) |
| A garrison command has occurred, start graphical "hint". | |
| virtual void | addSuperweapon (Int playerIndex, const AsciiString &powerName, ObjectID id, const SpecialPowerTemplate *powerTemplate) |
| virtual Bool | removeSuperweapon (Int playerIndex, const AsciiString &powerName, ObjectID id, const SpecialPowerTemplate *powerTemplate) |
| virtual void | objectChangedTeam (const Object *obj, Int oldPlayerIndex, Int newPlayerIndex) |
| virtual void | setSuperweaponDisplayEnabledByScript (Bool enable) |
| Set the superweapon display enabled or disabled. | |
| virtual Bool | getSuperweaponDisplayEnabledByScript (void) const |
| Get the current superweapon display status. | |
| virtual void | hideObjectSuperweaponDisplayByScript (const Object *obj) |
| virtual void | showObjectSuperweaponDisplayByScript (const Object *obj) |
| void | addNamedTimer (const AsciiString &timerName, const UnicodeString &text, Bool isCountdown) |
| void | removeNamedTimer (const AsciiString &timerName) |
| void | showNamedTimerDisplay (Bool show) |
| virtual void | setScrolling (Bool isScrolling) |
| set right-click scroll mode | |
| virtual Bool | isScrolling (void) |
| are we scrolling? | |
| virtual void | setSelecting (Bool isSelecting) |
| set drag select mode | |
| virtual Bool | isSelecting (void) |
| are we selecting? | |
| virtual void | setScrollAmount (Coord2D amt) |
| set scroll amount | |
| virtual Coord2D | getScrollAmount (void) |
| get scroll amount | |
| virtual void | setGUICommand (const CommandButton *command) |
| the command has been clicked in the UI and needs additional data | |
| virtual const CommandButton * | getGUICommand (void) const |
| get the pending gui command | |
| virtual void | placeBuildAvailable (const ThingTemplate *build, Drawable *buildDrawable) |
| built thing being placed | |
| virtual const ThingTemplate * | getPendingPlaceType (void) |
| get item we're trying to place | |
| virtual const ObjectID | getPendingPlaceSourceObjectID (void) |
| get producing object | |
| virtual Bool | getPreventLeftClickDeselectionInAlternateMouseModeForOneClick () const |
| virtual void | setPreventLeftClickDeselectionInAlternateMouseModeForOneClick (Bool set) |
| virtual void | setPlacementStart (const ICoord2D *start) |
| placement anchor point (for choosing angles) | |
| virtual void | setPlacementEnd (const ICoord2D *end) |
| set target placement point (for choosing angles) | |
| virtual Bool | isPlacementAnchored (void) |
| is placement arrow anchor set | |
| virtual void | getPlacementPoints (ICoord2D *start, ICoord2D *end) |
| get the placemnt arrow points | |
| virtual Real | getPlacementAngle (void) |
| placement angle of drawable at cursor when placing down structures | |
| virtual void | selectDrawable (Drawable *draw) |
| Mark given Drawable as "selected". | |
| virtual void | deselectDrawable (Drawable *draw) |
| Clear "selected" status from Drawable. | |
| virtual void | deselectAllDrawables (Bool postMsg=true) |
| Clear the "select" flag from all drawables. | |
| virtual Int | getSelectCount (void) |
| Get count of currently selected drawables. | |
| virtual Int | getMaxSelectCount (void) |
| Get the max number of selected drawables. | |
| virtual UnsignedInt | getFrameSelectionChanged (void) |
| Get the max number of selected drawables. | |
| virtual const DrawableList * | getAllSelectedDrawables (void) const |
| Return the list of all the currently selected Drawable IDs. | |
| virtual const DrawableList * | getAllSelectedLocalDrawables (void) |
| Return the list of all the currently selected Drawable IDs owned by the current player. | |
| virtual Drawable * | getFirstSelectedDrawable (void) |
| get the first selected drawable (if any) | |
| virtual DrawableID | getSoloNexusSelectedDrawableID (void) |
| Return the one drawable of the nexus if only 1 angry mob is selected. | |
| virtual Bool | isDrawableSelected (DrawableID idToCheck) const |
| Return true if the selected ID is in the drawable list. | |
| virtual Bool | isAnySelectedKindOf (KindOfType kindOf) const |
| is any selected object a kind of | |
| virtual Bool | isAllSelectedKindOf (KindOfType kindOf) const |
| are all selected objects a kind of | |
| virtual void | setRadiusCursor (RadiusCursorType r, const SpecialPowerTemplate *sp, WeaponSlotType wslot) |
| virtual void | setRadiusCursorNone () |
| virtual void | setInputEnabled (Bool enable) |
| Set the input enabled or disabled. | |
| virtual Bool | getInputEnabled (void) |
| Get the current input status. | |
| virtual void | disregardDrawable (Drawable *draw) |
| Drawable is being destroyed, clean up any UI elements associated with it. | |
| virtual void | preDraw (void) |
| Logic which needs to occur before the UI renders. | |
| virtual void | draw (void)=0 |
| Render the in-game user interface. | |
| virtual void | postDraw (void) |
| Logic which needs to occur after the UI renders. | |
| virtual void | playMovie (const AsciiString &movieName) |
| Ingame video playback. | |
| virtual void | stopMovie (void) |
| virtual VideoBuffer * | videoBuffer (void) |
| virtual void | playCameoMovie (const AsciiString &movieName) |
| Ingame cameo video playback. | |
| virtual void | stopCameoMovie (void) |
| virtual VideoBuffer * | cameoVideoBuffer (void) |
| virtual DrawableID | getMousedOverDrawableID (void) const |
| Get drawble ID of drawable under cursor. | |
| virtual void | setQuitMenuVisible (Bool t) |
| Set the ingame flag as to if we have the Quit menu up or not. | |
| virtual Bool | isQuitMenuVisible (void) const |
| virtual const FieldParse * | getFieldParse (void) const |
| Bool | areSelectedObjectsControllable () const |
| Bool | canSelectedObjectsNonAttackInteractWithObject (const Object *objectToInteractWith, SelectionRules rule) const |
| CanAttackResult | getCanSelectedObjectsAttack (ActionType action, const Object *objectToInteractWith, SelectionRules rule, Bool additionalChecking=FALSE) const |
| Bool | canSelectedObjectsDoAction (ActionType action, const Object *objectToInteractWith, SelectionRules rule, Bool additionalChecking=FALSE) const |
| Bool | canSelectedObjectsDoSpecialPower (const CommandButton *command, const Object *objectToInteractWith, const Coord3D *position, SelectionRules rule, UnsignedInt commandOptions, Object *ignoreSelObj) const |
| Bool | canSelectedObjectsEffectivelyUseWeapon (const CommandButton *command, const Object *objectToInteractWith, const Coord3D *position, SelectionRules rule) const |
| Bool | canSelectedObjectsOverrideSpecialPowerDestination (const Coord3D *loc, SelectionRules rule, SpecialPowerType spType=SPECIAL_INVALID) const |
| virtual Int | selectUnitsMatchingCurrentSelection () |
| selects matching units | |
| virtual Int | selectMatchingAcrossScreen () |
| selects matching units across screen | |
| virtual Int | selectMatchingAcrossMap () |
| selects matching units across map | |
| virtual Int | selectMatchingAcrossRegion (IRegion2D *region) |
| virtual Int | selectAllUnitsByType (KindOfMaskType mustBeSet, KindOfMaskType mustBeClear) |
| virtual Int | selectAllUnitsByTypeAcrossScreen (KindOfMaskType mustBeSet, KindOfMaskType mustBeClear) |
| virtual Int | selectAllUnitsByTypeAcrossMap (KindOfMaskType mustBeSet, KindOfMaskType mustBeClear) |
| virtual Int | selectAllUnitsByTypeAcrossRegion (IRegion2D *region, KindOfMaskType mustBeSet, KindOfMaskType mustBeClear) |
| virtual void | buildRegion (const ICoord2D *anchor, const ICoord2D *dest, IRegion2D *region) |
| builds a region around the specified coordinates | |
| virtual Bool | getDisplayedMaxWarning (void) |
| virtual void | setDisplayedMaxWarning (Bool selected) |
| virtual void | addFloatingText (const UnicodeString &text, const Coord3D *pos, Color color) |
| AsciiString | getDrawableCaptionFontName (void) |
| Int | getDrawableCaptionPointSize (void) |
| Bool | isDrawableCaptionBold (void) |
| Color | getDrawableCaptionColor (void) |
| Bool | shouldMoveRMBScrollAnchor (void) |
| Bool | isClientQuiet (void) const |
| Bool | isInWaypointMode (void) const |
| Bool | isInForceAttackMode (void) const |
| Bool | isInForceMoveToMode (void) const |
| Bool | isInPreferSelectionMode (void) const |
| void | setClientQuiet (Bool enabled) |
| void | setWaypointMode (Bool enabled) |
| void | setForceMoveMode (Bool enabled) |
| void | setForceAttackMode (Bool enabled) |
| void | setPreferSelectionMode (Bool enabled) |
| void | toggleAttackMoveToMode (void) |
| Bool | isInAttackMoveToMode (void) const |
| void | clearAttackMoveToMode (void) |
| void | setCameraRotateLeft (Bool set) |
| void | setCameraRotateRight (Bool set) |
| void | setCameraZoomIn (Bool set) |
| void | setCameraZoomOut (Bool set) |
| void | setCameraTrackingDrawable (Bool set) |
| Bool | isCameraRotatingLeft () const |
| Bool | isCameraRotatingRight () const |
| Bool | isCameraZoomingIn () const |
| Bool | isCameraZoomingOut () const |
| Bool | isCameraTrackingDrawable () const |
| void | resetCamera () |
| virtual void | addIdleWorker (Object *obj) |
| virtual void | removeIdleWorker (Object *obj, Int playerNumber) |
| virtual void | selectNextIdleWorker (void) |
| virtual void | recreateControlBar (void) |
| virtual void | disableTooltipsUntil (UnsignedInt frameNum) |
| virtual void | clearTooltipsDisabled () |
| virtual Bool | areTooltipsDisabled () const |
| Bool | getDrawRMBScrollAnchor () const |
| Bool | getMoveRMBScrollAnchor () const |
| void | setDrawRMBScrollAnchor (Bool b) |
| void | setMoveRMBScrollAnchor (Bool b) |
| void | registerWindowLayout (WindowLayout *layout) |
| void | unregisterWindowLayout (WindowLayout *layout) |
| void | triggerDoubleClickAttackMoveGuardHint (void) |
| void | addWorldAnimation (Anim2DTemplate *animTemplate, const Coord3D *pos, WorldAnimationOptions options, Real durationInSeconds, Real zRisePerSecond) |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Public Member Functions inherited from Snapshot | |
| Snapshot (void) | |
| ~Snapshot (void) | |
Protected Types | |
| enum | HintType { MOVE_HINT = 0 , ATTACK_HINT , NUM_HINT_TYPES } |
| enum | MouseMode { MOUSEMODE_DEFAULT = 0 , MOUSEMODE_BUILD_PLACE , MOUSEMODE_GUI_COMMAND , MOUSEMODE_MAX } |
| enum | { MAX_MOVE_HINTS = 256 } |
| enum | { MAX_UI_MESSAGES = 6 } |
| typedef std::list< Object * > | ObjectList |
| typedef std::list< Object * >::iterator | ObjectListIt |
Protected Member Functions | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
| void | destroyPlacementIcons (void) |
| Destroy placement icons. | |
| void | handleBuildPlacements (void) |
| handle updating of placement icons based on mouse pos | |
| void | handleRadiusCursor () |
| handle updating of "radius cursors" that follow the mouse pos | |
| void | incrementSelectCount (void) |
| Increase by one the running total of "selected" drawables. | |
| void | decrementSelectCount (void) |
| Decrease by one the running total of "selected" drawables. | |
| virtual View * | createView (void)=0 |
| Factory for Views. | |
| void | evaluateSoloNexus (Drawable *newlyAddedDrawable=NULL) |
| void | expireHint (HintType type, UnsignedInt hintIndex) |
| expire a hint from of the specified type at the hint index | |
| void | createControlBar (void) |
| create the control bar user interface | |
| void | createReplayControl (void) |
| create the replay control window | |
| void | setMouseCursor (Mouse::MouseCursor c) |
| void | addMessageText (const UnicodeString &formattedMessage, const RGBColor *rgbColor=NULL) |
| internal workhorse for adding plain text for messages | |
| void | removeMessageAtIndex (Int i) |
| remove the message at index i | |
| void | updateFloatingText (void) |
| Update function to move our floating text. | |
| void | drawFloatingText (void) |
| Draw all our floating text. | |
| void | clearFloatingText (void) |
| clear the floating text list | |
| void | clearWorldAnimations (void) |
| delete all world animations | |
| void | updateAndDrawWorldAnimations (void) |
| update and draw visible world animations | |
| SuperweaponInfo * | findSWInfo (Int playerIndex, const AsciiString &powerName, ObjectID id, const SpecialPowerTemplate *powerTemplate) |
Static Protected Attributes | |
| static const FieldParse | s_fieldParseTable [] |
Friends | |
| class | Drawable |
Basic functionality common to all in-game user interfaces
Definition at line 322 of file InGameUI.h.
|
protected |
Definition at line 663 of file InGameUI.h.
|
protected |
Definition at line 664 of file InGameUI.h.
|
protected |
| Enumerator | |
|---|---|
| MAX_MOVE_HINTS | |
Definition at line 631 of file InGameUI.h.
|
protected |
| Enumerator | |
|---|---|
| MAX_UI_MESSAGES | |
Definition at line 646 of file InGameUI.h.
| enum InGameUI::ActionType |
Definition at line 334 of file InGameUI.h.
|
protected |
| Enumerator | |
|---|---|
| MOVE_HINT | |
| ATTACK_HINT | |
| NUM_HINT_TYPES | |
Definition at line 612 of file InGameUI.h.
|
protected |
| Enumerator | |
|---|---|
| MOUSEMODE_DEFAULT | |
| MOUSEMODE_BUILD_PLACE | |
| MOUSEMODE_GUI_COMMAND | |
| MOUSEMODE_MAX | |
Definition at line 623 of file InGameUI.h.
| Enumerator | |
|---|---|
| SELECTION_ANY | |
| SELECTION_ALL | |
Definition at line 329 of file InGameUI.h.
| InGameUI::InGameUI | ( | void | ) |
Definition at line 896 of file InGameUI.cpp.
|
virtual |
Definition at line 1067 of file InGameUI.cpp.
|
virtual |
Add a new floating text to our list
Definition at line 4979 of file InGameUI.cpp.
|
virtual |
Definition at line 5468 of file InGameUI.cpp.
|
protected |
internal workhorse for adding plain text for messages
Definition at line 2085 of file InGameUI.cpp.
| void InGameUI::addNamedTimer | ( | const AsciiString & | timerName, |
| const UnicodeString & | text, | ||
| Bool | isCountdown ) |
Definition at line 733 of file InGameUI.cpp.
|
virtual |
Definition at line 572 of file InGameUI.cpp.
| void InGameUI::addWorldAnimation | ( | Anim2DTemplate * | animTemplate, |
| const Coord3D * | pos, | ||
| WorldAnimationOptions | options, | ||
| Real | durationInSeconds, | ||
| Real | zRisePerSecond ) |
Add a 2D animation at a spot in the world
Definition at line 5281 of file InGameUI.cpp.
| Bool InGameUI::areSelectedObjectsControllable | ( | ) | const |
Definition at line 4140 of file InGameUI.cpp.
|
virtual |
Definition at line 5671 of file InGameUI.cpp.
|
virtual |
Used by HintSpy. An area selection is occurring, start graphical "hint".
An area selection is occurring, start graphical "hint".
Definition at line 2148 of file InGameUI.cpp.
|
virtual |
builds a region around the specified coordinates
Given an "anchor" point and the current mouse position (dest), construct a valid 2D bounding region.
Definition at line 4950 of file InGameUI.cpp.
|
virtual |
Definition at line 4006 of file InGameUI.cpp.
| Bool InGameUI::canSelectedObjectsDoAction | ( | ActionType | action, |
| const Object * | objectToInteractWith, | ||
| SelectionRules | rule, | ||
| Bool | additionalChecking = FALSE ) const |
Definition at line 4285 of file InGameUI.cpp.
| Bool InGameUI::canSelectedObjectsDoSpecialPower | ( | const CommandButton * | command, |
| const Object * | objectToInteractWith, | ||
| const Coord3D * | position, | ||
| SelectionRules | rule, | ||
| UnsignedInt | commandOptions, | ||
| Object * | ignoreSelObj ) const |
Definition at line 4432 of file InGameUI.cpp.
| Bool InGameUI::canSelectedObjectsEffectivelyUseWeapon | ( | const CommandButton * | command, |
| const Object * | objectToInteractWith, | ||
| const Coord3D * | position, | ||
| SelectionRules | rule ) const |
Definition at line 4556 of file InGameUI.cpp.
| Bool InGameUI::canSelectedObjectsNonAttackInteractWithObject | ( | const Object * | objectToInteractWith, |
| SelectionRules | rule ) const |
Definition at line 4175 of file InGameUI.cpp.
| Bool InGameUI::canSelectedObjectsOverrideSpecialPowerDestination | ( | const Coord3D * | loc, |
| SelectionRules | rule, | ||
| SpecialPowerType | spType = SPECIAL_INVALID ) const |
Definition at line 4520 of file InGameUI.cpp.
|
inline |
Definition at line 543 of file InGameUI.h.
|
protected |
clear the floating text list
ittereate through and clear out the list of floating text
Definition at line 5145 of file InGameUI.cpp.
| void InGameUI::clearPopupMessageData | ( | void | ) |
take care of the logic of clearing the popupMessageData
Definition at line 5211 of file InGameUI.cpp.
|
virtual |
Definition at line 5666 of file InGameUI.cpp.
|
protected |
delete all world animations
Delete all world animations
Definition at line 5316 of file InGameUI.cpp.
|
protectedvirtual |
|
virtual |
An attack command has occurred, start graphical "hint".
An attack command has occurred, start graphical "hint".
Definition at line 2200 of file InGameUI.cpp.
|
virtual |
Used by HintSpy. Someone is selected so generate the right Cursor for the potential action.
A command would be given if a click were to happen, so give a preview hint of what it would be. Changing the mouse cursor is an example
Definition at line 2524 of file InGameUI.cpp.
|
protected |
create the control bar user interface
Create the control user interface GUI
Definition at line 3864 of file InGameUI.cpp.
|
virtual |
A force attack command has occurred, start graphical "hint".
A force attack command has occurred, start graphical "hint".
Definition at line 2208 of file InGameUI.cpp.
|
virtual |
A garrison command has occurred, start graphical "hint".
An garrison command has occurred, start graphical "hint".
Definition at line 2216 of file InGameUI.cpp.
|
virtual |
An object is mouse hovered over, start hint if any.
Details of what is mouse hovered over right now are in this message. Terrain might result in just a tooltip. An object might get a tooltip and show its hit points.
Definition at line 2241 of file InGameUI.cpp.
|
virtual |
A move command has occurred, start graphical "hint".
A move command has occurred, start graphical "hint".
Definition at line 2165 of file InGameUI.cpp.
|
protected |
create the replay control window
Create the replay control GUI
Definition at line 3881 of file InGameUI.cpp.
|
protectedpure virtual |
Factory for Views.
Implemented in W3DInGameUI.
|
inlineprotected |
Decrease by one the running total of "selected" drawables.
Definition at line 675 of file InGameUI.h.
Clear the "select" flag from all drawables.
Clear all drawables' "select" status
Definition at line 3260 of file InGameUI.cpp.
|
virtual |
Clear "selected" status from Drawable.
Clear "selected" status of Drawable.
Definition at line 3221 of file InGameUI.cpp.
|
protected |
Destroy placement icons.
Destroy any drawables we have in our placement icon array and set to NULL
Definition at line 2957 of file InGameUI.cpp.
|
virtual |
Definition at line 5660 of file InGameUI.cpp.
|
virtual |
display message to use as to why they can't build here
Definition at line 4013 of file InGameUI.cpp.
|
virtual |
Drawable is being destroyed, clean up any UI elements associated with it.
Drawable is being destroyed, clean up any UI elements associated with it.
Definition at line 3439 of file InGameUI.cpp.
|
pure virtual |
Render the in-game user interface.
Reimplemented from SubsystemInterface.
Implemented in W3DInGameUI.
|
protected |
Draw all our floating text.
Itterates through and draws each floating text
Definition at line 5106 of file InGameUI.cpp.
|
virtual |
Used by HintSpy. An area selection had occurred, finish graphical "hint".
An area selection has occurred, finish graphical "hint".
Definition at line 2157 of file InGameUI.cpp.
Handle the placement "icons" that appear at the cursor when we're putting down a structure to build. Note that this has additional logic to also show a line of objects because when we build "walls" we want to draw a line of repeating wall pieces on the map where we want to put all of them
Definition at line 1354 of file InGameUI.cpp.
|
protected |
expire a hint from of the specified type at the hint index
Expire a hint of the specified type with the corresponding hint index
Definition at line 3836 of file InGameUI.cpp.
|
protected |
Definition at line 554 of file InGameUI.cpp.
| void InGameUI::freeMessageResources | ( | void | ) |
free resources for the ui messages
Free any resources we used for our messages
Definition at line 1989 of file InGameUI.cpp.
|
virtual |
Return the list of all the currently selected Drawable IDs.
Return the list of all the currently selected Drawable pointers.
Definition at line 3303 of file InGameUI.cpp.
|
virtual |
Return the list of all the currently selected Drawable IDs owned by the current player.
Return the list of all the currently selected Drawable pointers.
Definition at line 3311 of file InGameUI.cpp.
| CanAttackResult InGameUI::getCanSelectedObjectsAttack | ( | ActionType | action, |
| const Object * | objectToInteractWith, | ||
| SelectionRules | rule, | ||
| Bool | additionalChecking = FALSE ) const |
Definition at line 4190 of file InGameUI.cpp.
|
inlinevirtual |
Definition at line 515 of file InGameUI.h.
|
inline |
Definition at line 525 of file InGameUI.h.
|
inline |
Definition at line 522 of file InGameUI.h.
|
inline |
Definition at line 523 of file InGameUI.h.
|
inline |
Definition at line 567 of file InGameUI.h.
|
inlinevirtual |
Definition at line 488 of file InGameUI.h.
|
virtual |
get the first selected drawable (if any)
Return poiner to the first selected drawable, if any
Definition at line 3326 of file InGameUI.cpp.
|
inlinevirtual |
Get the max number of selected drawables.
Definition at line 449 of file InGameUI.h.
|
virtual |
get the pending gui command
Get the pending gui command
Definition at line 2947 of file InGameUI.cpp.
|
inlinevirtual |
Get the current input status.
Definition at line 462 of file InGameUI.h.
|
inlinevirtual |
Get the max number of selected drawables.
Definition at line 448 of file InGameUI.h.
Definition at line 385 of file InGameUI.h.
|
virtual |
Get drawble ID of drawable under cursor.
Get drawable ID under cursor.
Definition at line 2801 of file InGameUI.cpp.
|
inline |
Definition at line 568 of file InGameUI.h.
|
virtual |
get producing object
Definition at line 3114 of file InGameUI.cpp.
|
virtual |
get item we're trying to place
Return the thing we're attempting to place
Definition at line 3107 of file InGameUI.cpp.
|
virtual |
placement angle of drawable at cursor when placing down structures
Return the angle of the drawable at the cursor if any
Definition at line 3178 of file InGameUI.cpp.
get the placemnt arrow points
Get the start and end anchor points for the building angle selection interface
Definition at line 3165 of file InGameUI.cpp.
|
inline |
Definition at line 374 of file InGameUI.h.
|
inlinevirtual |
Definition at line 435 of file InGameUI.h.
|
virtual |
get scroll amount
Definition at line 2878 of file InGameUI.cpp.
|
inlinevirtual |
Get count of currently selected drawables.
Definition at line 447 of file InGameUI.h.
|
inlinevirtual |
Return the one drawable of the nexus if only 1 angry mob is selected.
Definition at line 453 of file InGameUI.h.
|
virtual |
Get the current superweapon display status.
Definition at line 726 of file InGameUI.cpp.
|
protected |
handle updating of placement icons based on mouse pos
Definition at line 1404 of file InGameUI.cpp.
|
protected |
handle updating of "radius cursors" that follow the mouse pos
handle updating of "radius cursors" that follow the mouse pos
Definition at line 1299 of file InGameUI.cpp.
|
virtual |
Definition at line 679 of file InGameUI.cpp.
|
inlineprotected |
Increase by one the running total of "selected" drawables.
Definition at line 674 of file InGameUI.h.
|
virtual |
Initialize the in-game user interface.
Initialize the in game user interface
@ todo we used to put in the hint spy translator, but it's difficult to order the translators when the code is not centralized so it has been moved to where all the other translators are attached in game client
Implements SubsystemInterface.
Reimplemented in W3DInGameUI.
Definition at line 1100 of file InGameUI.cpp.
|
virtual |
are all selected objects a kind of
Definition at line 3381 of file InGameUI.cpp.
|
virtual |
is any selected object a kind of
Definition at line 3357 of file InGameUI.cpp.
|
inline |
Definition at line 550 of file InGameUI.h.
|
inline |
Definition at line 551 of file InGameUI.h.
|
inline |
Definition at line 554 of file InGameUI.h.
|
inline |
Definition at line 552 of file InGameUI.h.
|
inline |
Definition at line 553 of file InGameUI.h.
|
inline |
Definition at line 529 of file InGameUI.h.
|
inline |
Definition at line 524 of file InGameUI.h.
|
virtual |
Return true if the selected ID is in the drawable list.
Return true if the selected ID is in the drawable list
Definition at line 3340 of file InGameUI.cpp.
|
inline |
Definition at line 542 of file InGameUI.h.
|
inline |
Definition at line 531 of file InGameUI.h.
|
inline |
Definition at line 532 of file InGameUI.h.
|
inline |
Definition at line 533 of file InGameUI.h.
|
inline |
Definition at line 530 of file InGameUI.h.
|
inlinevirtual |
are the display messages on
Definition at line 383 of file InGameUI.h.
|
virtual |
is placement arrow anchor set
Is the angle selection interface for placing building at angles up?
Definition at line 3155 of file InGameUI.cpp.
|
inlinevirtual |
Definition at line 485 of file InGameUI.h.
|
virtual |
are we scrolling?
Definition at line 2840 of file InGameUI.cpp.
|
virtual |
are we selecting?
Definition at line 2862 of file InGameUI.cpp.
|
protectedvirtual |
|
virtual |
display a message to the user
Same as the unicode message method, but this takes an ascii string which is assumed to me a string manager label
Definition at line 2017 of file InGameUI.cpp.
|
virtual |
display a message to the user
Interface for display text messages to the user
Definition at line 2043 of file InGameUI.cpp.
|
virtual |
display a colored message to the user
Interface for display text messages to the user
Definition at line 2065 of file InGameUI.cpp.
|
virtual |
Definition at line 4063 of file InGameUI.cpp.
|
virtual |
Definition at line 636 of file InGameUI.cpp.
|
virtual |
built thing being placed
User has clicked on a built item that requires placement in the world. We will record what that thing is so that the we can catch the next click in the world and try to place the object there
@ todo when message stream order more formalized eliminate this
Definition at line 2981 of file InGameUI.cpp.
|
virtual |
Ingame cameo video playback.
Definition at line 3953 of file InGameUI.cpp.
|
virtual |
Ingame video playback.
Definition at line 3898 of file InGameUI.cpp.
|
virtual |
If we want to use the default text color, then we call this function
Definition at line 5161 of file InGameUI.cpp.
|
virtual |
initialize, and popup a message box to the user
Definition at line 5169 of file InGameUI.cpp.
|
virtual |
Logic which needs to occur after the UI renders.
This is called after the UI has been drawn.
Definition at line 3450 of file InGameUI.cpp.
|
virtual |
Logic which needs to occur before the UI renders.
Pre-draw phase of the in game ui
Definition at line 1595 of file InGameUI.cpp.
|
virtual |
Definition at line 5640 of file InGameUI.cpp.
| void InGameUI::registerWindowLayout | ( | WindowLayout * | layout | ) |
Definition at line 1882 of file InGameUI.cpp.
Definition at line 5480 of file InGameUI.cpp.
|
protected |
remove the message at index i
Remove the message on screen at index i
Definition at line 2134 of file InGameUI.cpp.
|
virtual |
Definition at line 4117 of file InGameUI.cpp.
| void InGameUI::removeNamedTimer | ( | const AsciiString & | timerName | ) |
Definition at line 755 of file InGameUI.cpp.
|
virtual |
Definition at line 608 of file InGameUI.cpp.
|
virtual |
Reset.
Reset the in game user interface
Implements SubsystemInterface.
Reimplemented in W3DInGameUI.
Definition at line 1904 of file InGameUI.cpp.
| void InGameUI::resetCamera | ( | ) |
Definition at line 4163 of file InGameUI.cpp.
|
virtual |
When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
Definition at line 4901 of file InGameUI.cpp.
|
virtual |
When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
Definition at line 4845 of file InGameUI.cpp.
|
virtual |
Definition at line 4639 of file InGameUI.cpp.
|
virtual |
When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
Definition at line 4779 of file InGameUI.cpp.
|
virtual |
Mark given Drawable as "selected".
Mark given Drawable as "selected".
Definition at line 3191 of file InGameUI.cpp.
|
virtual |
selects matching units across map
Selects matching units across map
When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
Definition at line 4874 of file InGameUI.cpp.
Selects maching units on the screen
Definition at line 4695 of file InGameUI.cpp.
|
virtual |
selects matching units across screen
Selects maching units on the screen
When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
Definition at line 4813 of file InGameUI.cpp.
|
virtual |
Definition at line 5505 of file InGameUI.cpp.
|
virtual |
selects matching units
Selects matching units, either on screen or across map. When called by pressing 'T', their is not a way to tell if the game is supposed to select across the screen, or across the map. For mouse clicks, i.e. Alt + click or double click, we can directly call selectMatchingAcrossScreen or selectMatchingAcrossMap
When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
Definition at line 4924 of file InGameUI.cpp.
|
inline |
Definition at line 545 of file InGameUI.h.
|
inline |
Definition at line 546 of file InGameUI.h.
|
inline |
Definition at line 549 of file InGameUI.h.
|
inline |
Definition at line 547 of file InGameUI.h.
|
inline |
Definition at line 548 of file InGameUI.h.
|
inline |
Definition at line 535 of file InGameUI.h.
|
inlinevirtual |
Definition at line 516 of file InGameUI.h.
|
inline |
Definition at line 570 of file InGameUI.h.
|
inline |
Definition at line 538 of file InGameUI.h.
|
inline |
Definition at line 537 of file InGameUI.h.
|
virtual |
the command has been clicked in the UI and needs additional data
Like the building "placement" mode, clicking on some buttons in the UI require us to provide additional data by clicking on a target object/location in the world. This is where we enable that "mode" so that we can get the additional data needed for a command from the user
Definition at line 2889 of file InGameUI.cpp.
|
virtual |
Set the input enabled or disabled.
Set the input enabled/disabled
Definition at line 3406 of file InGameUI.cpp.
|
protected |
Definition at line 540 of file InGameUI.cpp.
|
inline |
Definition at line 571 of file InGameUI.h.
|
virtual |
set target placement point (for choosing angles)
Set the end anchor for the angle build interface
Definition at line 3144 of file InGameUI.cpp.
|
virtual |
placement anchor point (for choosing angles)
Start the angle selection interface for selecting building angles when placing them
Definition at line 3124 of file InGameUI.cpp.
|
inline |
Definition at line 539 of file InGameUI.h.
|
inlinevirtual |
Definition at line 436 of file InGameUI.h.
|
inlinevirtual |
Set the ingame flag as to if we have the Quit menu up or not.
Definition at line 484 of file InGameUI.h.
|
virtual |
Definition at line 1196 of file InGameUI.cpp.
|
inlinevirtual |
Definition at line 459 of file InGameUI.h.
|
virtual |
|
virtual |
set right-click scroll mode
Definition at line 2811 of file InGameUI.cpp.
|
virtual |
set drag select mode
Definition at line 2848 of file InGameUI.cpp.
|
virtual |
Set the superweapon display enabled or disabled.
Definition at line 719 of file InGameUI.cpp.
|
inline |
Definition at line 536 of file InGameUI.h.
|
inline |
Definition at line 527 of file InGameUI.h.
| void InGameUI::showNamedTimerDisplay | ( | Bool | show | ) |
Definition at line 769 of file InGameUI.cpp.
|
virtual |
Definition at line 699 of file InGameUI.cpp.
|
virtual |
Definition at line 3983 of file InGameUI.cpp.
|
virtual |
Definition at line 3925 of file InGameUI.cpp.
|
inline |
Definition at line 541 of file InGameUI.h.
|
inlinevirtual |
toggle messages on/off
Definition at line 382 of file InGameUI.h.
| void InGameUI::triggerDoubleClickAttackMoveGuardHint | ( | void | ) |
Definition at line 1338 of file InGameUI.cpp.
| void InGameUI::unregisterWindowLayout | ( | WindowLayout * | layout | ) |
Definition at line 1889 of file InGameUI.cpp.
|
virtual |
Update the UI by calling preDraw(), draw(), and postDraw()
Update the in game user interface
Implements SubsystemInterface.
Reimplemented in W3DInGameUI.
Definition at line 1616 of file InGameUI.cpp.
|
protected |
update and draw visible world animations
Update all world animations and draw the visible ones
Definition at line 5347 of file InGameUI.cpp.
|
protected |
Update function to move our floating text.
modify the position of our floating text
Definition at line 5054 of file InGameUI.cpp.
|
virtual |
Definition at line 3945 of file InGameUI.cpp.
|
protectedvirtual |
Xfer method Version Info: 1: Initial version 2: Save NamedTimers, but not specifically their Info structs. We'll recreate them. 3: Added m_evaReadyPlayed boolean to transfer
Implements Snapshot.
Definition at line 364 of file InGameUI.cpp.
|
friend |
Definition at line 325 of file InGameUI.h.
|
protected |
are we in attack move mode?
Definition at line 839 of file InGameUI.h.
|
protected |
progress for building units
Definition at line 721 of file InGameUI.h.
|
protected |
video playback buffer
Definition at line 741 of file InGameUI.h.
|
protected |
Video stream;.
Definition at line 742 of file InGameUI.h.
|
protected |
Definition at line 842 of file InGameUI.h.
|
protected |
Definition at line 843 of file InGameUI.h.
|
protected |
Definition at line 845 of file InGameUI.h.
|
protected |
Definition at line 844 of file InGameUI.h.
|
protected |
Definition at line 846 of file InGameUI.h.
|
protected |
to skip some client sounds/fx during shutdown
When the user clicks exit,restart, etc. this is set true
Definition at line 850 of file InGameUI.h.
|
protected |
Definition at line 824 of file InGameUI.h.
|
protected |
Definition at line 825 of file InGameUI.h.
|
protected |
Definition at line 859 of file InGameUI.h.
|
protected |
Used to push updates to TheScriptEngine.
Definition at line 712 of file InGameUI.h.
|
protected |
keeps the warning from being shown over and over
Definition at line 717 of file InGameUI.h.
|
protected |
if isDragSelecting is TRUE, this contains select region
Definition at line 716 of file InGameUI.h.
|
protected |
Definition at line 785 of file InGameUI.h.
|
protected |
Definition at line 786 of file InGameUI.h.
|
protected |
Definition at line 783 of file InGameUI.h.
|
protected |
Definition at line 784 of file InGameUI.h.
|
protected |
Definition at line 848 of file InGameUI.h.
|
protected |
Definition at line 734 of file InGameUI.h.
|
protected |
Frames left to draw the doubleClickFeedbackTimer.
Definition at line 733 of file InGameUI.h.
|
protected |
Our list of floating text.
Definition at line 828 of file InGameUI.h.
|
protected |
INI value of our Move up speed.
Definition at line 830 of file InGameUI.h.
|
protected |
INI value of our move vanish rate.
Definition at line 831 of file InGameUI.h.
|
protected |
Ini value of our floating text timeout.
Definition at line 829 of file InGameUI.h.
|
protected |
are we in force attack mode?
Definition at line 837 of file InGameUI.h.
|
protected |
are we in force move mode?
Definition at line 838 of file InGameUI.h.
|
protected |
Frame when the selection last changed.
Definition at line 731 of file InGameUI.h.
|
protected |
Definition at line 857 of file InGameUI.h.
|
protected |
Definition at line 858 of file InGameUI.h.
|
protected |
Definition at line 705 of file InGameUI.h.
|
protected |
If TRUE, an area selection is in progress.
Definition at line 715 of file InGameUI.h.
|
protected |
Definition at line 798 of file InGameUI.h.
|
protected |
Definition at line 792 of file InGameUI.h.
|
protected |
Definition at line 793 of file InGameUI.h.
|
protected |
Max number of objects to select.
Definition at line 730 of file InGameUI.h.
|
protected |
Definition at line 806 of file InGameUI.h.
|
protected |
Definition at line 801 of file InGameUI.h.
|
protected |
Definition at line 802 of file InGameUI.h.
|
protected |
Definition at line 807 of file InGameUI.h.
|
protected |
Definition at line 804 of file InGameUI.h.
|
protected |
Definition at line 805 of file InGameUI.h.
|
protected |
Definition at line 803 of file InGameUI.h.
|
protected |
Definition at line 799 of file InGameUI.h.
|
protected |
Definition at line 818 of file InGameUI.h.
|
protected |
color for the military-style caption
Definition at line 809 of file InGameUI.h.
|
protected |
Definition at line 816 of file InGameUI.h.
|
protected |
Definition at line 817 of file InGameUI.h.
|
protected |
position for the military-style caption
Definition at line 810 of file InGameUI.h.
|
protected |
Definition at line 820 of file InGameUI.h.
|
protected |
Definition at line 821 of file InGameUI.h.
|
protected |
Definition at line 814 of file InGameUI.h.
|
protected |
Definition at line 812 of file InGameUI.h.
|
protected |
Definition at line 813 of file InGameUI.h.
|
protected |
The pointer to subtitle class, if it's present then draw it.
Definition at line 791 of file InGameUI.h.
|
protected |
Definition at line 796 of file InGameUI.h.
|
protected |
Definition at line 794 of file InGameUI.h.
|
protected |
Definition at line 795 of file InGameUI.h.
|
protected |
Definition at line 718 of file InGameUI.h.
|
protected |
Definition at line 849 of file InGameUI.h.
|
protected |
Definition at line 769 of file InGameUI.h.
|
protected |
Definition at line 767 of file InGameUI.h.
|
protected |
Definition at line 768 of file InGameUI.h.
|
protected |
Definition at line 775 of file InGameUI.h.
|
protected |
Definition at line 776 of file InGameUI.h.
|
protected |
Definition at line 773 of file InGameUI.h.
|
protected |
Definition at line 774 of file InGameUI.h.
|
protected |
Definition at line 766 of file InGameUI.h.
|
protected |
Definition at line 779 of file InGameUI.h.
|
protected |
Definition at line 780 of file InGameUI.h.
|
protected |
Definition at line 777 of file InGameUI.h.
|
protected |
Definition at line 778 of file InGameUI.h.
|
protected |
Definition at line 765 of file InGameUI.h.
|
protected |
Definition at line 770 of file InGameUI.h.
|
protected |
Definition at line 719 of file InGameUI.h.
|
protected |
GUI command that needs additional interaction from the user.
Definition at line 720 of file InGameUI.h.
|
protected |
source object of the thing constructing the item
Definition at line 723 of file InGameUI.h.
|
protected |
type of built thing we're trying to place
Definition at line 722 of file InGameUI.h.
|
protected |
place angle anchor end
Definition at line 728 of file InGameUI.h.
|
protected |
is place angle interface for placement active
Definition at line 726 of file InGameUI.h.
|
protected |
place angle anchor start
Definition at line 727 of file InGameUI.h.
|
protected |
array for drawables to appear at the cursor when building in the world
Definition at line 725 of file InGameUI.h.
|
protected |
Definition at line 834 of file InGameUI.h.
|
protected |
Definition at line 833 of file InGameUI.h.
|
protected |
the shift key has been depressed.
Definition at line 840 of file InGameUI.h.
|
protected |
Definition at line 724 of file InGameUI.h.
|
protected |
Definition at line 823 of file InGameUI.h.
|
protected |
Definition at line 797 of file InGameUI.h.
|
protected |
Number of objects currently "selected".
Definition at line 729 of file InGameUI.h.
|
protected |
A list of all selected drawables.
Definition at line 713 of file InGameUI.h.
|
protected |
A list of all selected drawables owned by the local player.
Definition at line 714 of file InGameUI.h.
|
protected |
Definition at line 771 of file InGameUI.h.
|
protected |
The drawable of the nexus, if only one angry mob is selected, otherwise, null.
Definition at line 861 of file InGameUI.h.
|
protected |
Definition at line 762 of file InGameUI.h.
|
protected |
Definition at line 751 of file InGameUI.h.
|
protected |
Definition at line 704 of file InGameUI.h.
|
protected |
for flashing the text when the weapon is ready
Definition at line 761 of file InGameUI.h.
|
protected |
Definition at line 756 of file InGameUI.h.
|
protected |
Definition at line 754 of file InGameUI.h.
|
protected |
Definition at line 755 of file InGameUI.h.
|
protected |
Definition at line 750 of file InGameUI.h.
|
protected |
Definition at line 759 of file InGameUI.h.
|
protected |
Definition at line 757 of file InGameUI.h.
|
protected |
Definition at line 758 of file InGameUI.h.
|
protected |
Definition at line 749 of file InGameUI.h.
|
protected |
Definition at line 763 of file InGameUI.h.
|
protected |
Definition at line 788 of file InGameUI.h.
|
protected |
messages to display to the user, the array is organized with newer messages at index 0, and increasing to older ones
Definition at line 745 of file InGameUI.h.
|
protected |
video playback buffer
Definition at line 737 of file InGameUI.h.
|
protected |
Video stream;.
Definition at line 738 of file InGameUI.h.
|
protected |
are we in waypoint plotting mode?
Definition at line 836 of file InGameUI.h.
|
protected |
sort of
Definition at line 711 of file InGameUI.h.
|
protected |
the list of world animations
Definition at line 854 of file InGameUI.h.
|
staticprotected |
Definition at line 776 of file InGameUI.h.