|
UFO: Alien Invasion
|


Go to the source code of this file.
Functions | |
| const struct image_s * | UI_LoadImage (const char *name) |
| Searches for an image in the image array. | |
| const struct image_s * | UI_LoadWrappedImage (const char *name) |
| Searches for a wrapped image in the image array. | |
| void | UI_DrawNormImage (bool flip, float x, float y, float w, float h, float sh, float th, float sl, float tl, const struct image_s *image) |
| const image_t * | UI_DrawNormImageByName (bool flip, float x, float y, float w, float h, float sh, float th, float sl, float tl, const char *name) |
| Draws an image or parts of it. | |
| void | UI_DrawPanel (const vec2_t pos, const vec2_t size, const char *texture, int texX, int texY, const int panelDef[7]) |
| draw a panel from a texture as we can see on the image | |
| void | UI_DrawBorderedPanel (const vec2_t pos, const vec2_t size, const char *texture, int texX, int texY, int texW, int texH, int border) |
| draw a panel from a texture as we can see on the image | |
| void | UI_DrawFill (int x, int y, int w, int h, const vec4_t color) |
| Fills a box of pixels with a single color. | |
| int | UI_DrawStringInBox (const char *fontID, align_t align, int x, int y, int width, int height, const char *text, longlines_t method=LONGLINES_PRETTYCHOP) |
| draw a line into a bounding box | |
| int | UI_DrawString (const char *fontID, align_t align, int x, int y, int absX, int maxWidth, const int lineHeight, const char *c, int box_height=0, int scroll_pos=0, int *cur_line=nullptr, bool increaseLine=false, longlines_t method=LONGLINES_WRAP) |
| void | UI_Transform (const vec3_t transform, const vec3_t rotate, const vec3_t scale) |
| Pushes a new matrix, normalize to current resolution and move, rotate and scale the matrix to the given values. | |
| void | UI_DrawRect (int x, int y, int w, int h, const vec4_t color, float lineWidth, int pattern) |
| void | UI_PushClipRect (int x, int y, int width, int height) |
| void | UI_PopClipRect (void) |
| void | UI_EnableFlashing (const vec4_t flashingColor, float speed=1) |
| Enables flashing effect for UI nodes. | |
| void | UI_DisableFlashing (void) |
| Disables flashing effect for UI nodes. | |
Disables flashing effect for UI nodes.
Definition at line 417 of file ui_render.cpp.
References R_TexOverride().
Referenced by uiButtonNode::draw().
| void UI_DrawBorderedPanel | ( | const vec2_t | pos, |
| const vec2_t | size, | ||
| const char * | texture, | ||
| int | texX, | ||
| int | texY, | ||
| int | texW, | ||
| int | texH, | ||
| int | border ) |
draw a panel from a texture as we can see on the image
| [in] | pos | Position of the output panel |
| [in] | size | Size of the output panel |
| [in] | texture | Texture contain the template of the panel |
| [in] | texX,texY | Position of the panel template into the texture |
| [in] | texW,texH | Width/height of the panel template into the texture |
| [in] | border | Size of unscalable border From the first to the last: left width, mid width, right width, top height, mid height, bottom height, and margin |
Definition at line 293 of file ui_render.cpp.
References UI_DrawNormImage(), and UI_LoadImage().
Referenced by UI_DrawSpriteInBox().
Fills a box of pixels with a single color.
Definition at line 37 of file ui_render.cpp.
References R_DrawFill().
Referenced by uiBarNode::draw(), uiOptionListNode::draw(), uiOptionTreeNode::draw(), uiRadarNode::draw(), uiRowsNode::draw(), uiWindowNode::draw(), uiSelectBoxNode::drawOverWindow(), GAME_GetImportData(), UI_DrawDisabled(), UI_DrawFree(), UI_DrawNode(), UI_DrawNotice(), UI_DrawTooltip(), UI_EditorNodeHighlightNode(), and cgame_import_t::void().
| void UI_DrawNormImage | ( | bool | flip, |
| float | x, | ||
| float | y, | ||
| float | w, | ||
| float | h, | ||
| float | sh, | ||
| float | th, | ||
| float | sl, | ||
| float | tl, | ||
| const struct image_s * | image ) |
References LONGLINES_PRETTYCHOP, LONGLINES_WRAP, name, and scale.
| const image_t * UI_DrawNormImageByName | ( | bool | flip, |
| float | x, | ||
| float | y, | ||
| float | w, | ||
| float | h, | ||
| float | sh, | ||
| float | th, | ||
| float | sl, | ||
| float | tl, | ||
| const char * | name ) |
Draws an image or parts of it.
| [in] | flip | Flip the icon rendering (horizontal) |
| [in] | x,y | position to draw the image to |
| [in] | w | Width of the image |
| [in] | h | Height of the image |
| [in] | sh | Right x corner coord of the square to draw |
| [in] | th | Lower y corner coord of the square to draw |
| [in] | sl | Left x corner coord of the square to draw |
| [in] | tl | Upper y corner coord of the square to draw |
| [in] | name | The name of the image - relative to base/pics |
Definition at line 203 of file ui_render.cpp.
References Com_Printf(), name, UI_DrawNormImage(), and UI_LoadImage().
Referenced by uiRadarNode::draw(), uiRadioButtonNode::draw(), uiTBarNode::draw(), UI_DrawItem(), UI_DrawNormImageByName_(), and UI_DrawSpriteInBox().
| void UI_DrawPanel | ( | const vec2_t | pos, |
| const vec2_t | size, | ||
| const char * | texture, | ||
| int | texX, | ||
| int | texY, | ||
| const int | panelDef[7] ) |
draw a panel from a texture as we can see on the image
| [in] | pos | Position of the output panel |
| [in] | size | Size of the output panel |
| [in] | texture | Texture contain the template of the panel |
| [in] | texX | Position x of the panel template into the texture |
| [in] | texY | Position y of the panel template into the texture |
| [in] | panelDef | Array of seven elements define the panel template used in the texture. From the first to the last: left width, mid width, right width, top height, mid height, bottom height, and margin |
Definition at line 230 of file ui_render.cpp.
References UI_DrawNormImage(), and UI_LoadImage().
Referenced by UI_DrawSpriteInBox().
Definition at line 42 of file ui_render.cpp.
References R_DrawRect().
Referenced by uiMaterialEditorNode::draw(), GAME_GetImportData(), UI_DrawNode(), and UI_EditorNodeHighlightNode().
| int UI_DrawString | ( | const char * | fontID, |
| align_t | align, | ||
| int | x, | ||
| int | y, | ||
| int | absX, | ||
| int | maxWidth, | ||
| const int | lineHeight, | ||
| const char * | c, | ||
| int | box_height = 0, | ||
| int | scroll_pos = 0, | ||
| int * | cur_line = nullptr, | ||
| bool | increaseLine = false, | ||
| longlines_t | method = LONGLINES_WRAP ) |
Definition at line 371 of file ui_render.cpp.
References Com_Error(), ERR_FATAL, uiFont_t::name, R_FontDrawString(), UI_FontGetHeight(), and UI_GetFontByID().
Referenced by uiOptionListNode::draw(), uiOptionTreeNode::draw(), uiSelectBoxNode::draw(), uiStringNode::draw(), uiTabNode::draw(), uiSelectBoxNode::drawOverWindow(), uiText2Node::drawText(), uiTextNode::drawText(), SCR_DrawDownloading(), SCR_DrawLoadingScreen(), SEQ_Render2D(), UI_BaseInventoryNodeDrawItems(), UI_DrawFree(), UI_DrawNotice(), UI_DrawString_(), UI_DrawStringInBox(), UI_DrawTooltip(), and UI_MessageDraw().
| int UI_DrawStringInBox | ( | const char * | fontID, |
| align_t | align, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| const char * | text, | ||
| longlines_t | method ) |
draw a line into a bounding box
| [in] | fontID | the font id (defined in ufos/fonts.ufo) |
| [in] | align | Align of the text into the bounding box |
| [in] | x,y | Current position of the bounded box |
| [in] | width | Current width of the bounded box |
| [in] | height | Current height of the bounded box |
| [in] | text | The string to draw |
| [in] | method | Truncation method
|
remove the use of UI_DrawString
test the code for multiline?
fix problem with truncation (maybe problem into UI_DrawString)
Definition at line 359 of file ui_render.cpp.
References UI_DrawString().
Referenced by uiButtonNode::draw(), uiRadarNode::draw(), uiStringNode::draw(), uiTextEntryNode::draw(), uiWindowNode::draw(), and uiTextListNode::drawText().
Enables flashing effect for UI nodes.
| [in] | flashingColor | Color to fade to and back |
| [in] | speed | Speed of flashing effect |
Definition at line 406 of file ui_render.cpp.
References cls, M_PI, R_TexOverride(), and Vector4Copy.
Referenced by uiButtonNode::draw().
| const struct image_s * UI_LoadImage | ( | const char * | name | ) |
Searches for an image in the image array.
| [in] | name | The name of the image relative to pics/ |
Definition at line 91 of file ui_render.cpp.
References it_pic, name, R_FindImage(), r_noTexture, and va().
Referenced by uiImageNode::draw(), uiSelectBoxNode::draw(), uiVScrollbarNode::draw(), uiSelectBoxNode::drawOverWindow(), uiImageNode::onLoaded(), UI_AutoGenerateSprite(), UI_DrawBorderedPanel(), UI_DrawNormImageByName(), UI_DrawPanel(), and UI_RadarNodeDrawActor().
| const struct image_s * UI_LoadWrappedImage | ( | const char * | name | ) |
Searches for a wrapped image in the image array.
| [in] | name | The name of the image relative to pics/ |
Definition at line 106 of file ui_render.cpp.
References it_wrappic, name, R_FindImage(), r_noTexture, and va().
Referenced by uiTextureNode::draw().
Definition at line 52 of file ui_render.cpp.
References R_PopClipRect().
Referenced by uiGeoscapeNode::draw(), uiRadarNode::draw(), uiSequenceNode::draw(), UI_BaseInventoryNodeDraw2(), UI_DrawModelNode(), and UI_DrawNode().
Definition at line 47 of file ui_render.cpp.
References R_PushClipRect().
Referenced by uiGeoscapeNode::draw(), uiRadarNode::draw(), uiSequenceNode::draw(), UI_BaseInventoryNodeDraw2(), UI_DrawModelNode(), and UI_DrawNode().
Pushes a new matrix, normalize to current resolution and move, rotate and scale the matrix to the given values.
transform is nullptr | transform | Translation (if nullptr the matrix is removed from stack) |
| rotate | Rotation |
| scale | Scale |
Definition at line 68 of file ui_render.cpp.
References R_PopMatrix(), R_PushMatrix(), R_Transform(), scale, VectorCopy, and viddef.
Referenced by uiLineChartNode::draw(), and SEQ_Render().