Xonotic
|
Go to the source code of this file.
Macros | |
#define | draw_beginBoldFont() drawfont = FONT_USER + 3 |
#define | draw_endBoldFont() drawfont = FONT_USER |
#define | draw_fontscale drawfontscale |
Variables | |
float | draw_alpha |
vector | draw_scale |
vector | draw_shift |
vector | drawfontscale |
#define draw_fontscale drawfontscale |
Definition at line 5 of file draw.qh.
Referenced by BorderImage_draw(), Container_enterLieSubitem(), Container_leaveSubitem(), draw_reset(), draw_Text(), draw_TextWidth(), Label_draw(), Label_recalcPositionWithText(), XonoticLanguageList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 45 of file draw.qc.
References v.
Referenced by BorderImage_recalcPositionWithText(), Container_enterLieSubitem(), Container_resizeNotifyLie(), DemoConfirm_ListClick_Check_Gamestatus(), draw_BorderPicture(), draw_ButtonPicture(), draw_drawMousePointer(), draw_Fill(), draw_Picture(), draw_SetClipRect(), draw_Text(), draw_VertButtonPicture(), ListBox_draw(), ServerList_Info_Click(), XonoticServerList_keyDown(), and XonoticServerList_positionSortButton().
Definition at line 53 of file draw.qc.
References v.
Referenced by BorderImage_draw(), BorderImage_recalcPositionWithText(), Container_enterLieSubitem(), Container_resizeNotifyLie(), DemoConfirm_ListClick_Check_Gamestatus(), draw_BorderPicture(), draw_ButtonPicture(), draw_Fill(), draw_Picture(), draw_SetClipRect(), draw_Text(), draw_TextWidth(), draw_VertButtonPicture(), ListBox_draw(), ServerList_Info_Click(), XonoticServerList_keyDown(), and XonoticServerList_positionSortButton().
void draw_BorderPicture | ( | vector | theOrigin, |
string | pic, | ||
vector | theSize, | ||
vector | theColor, | ||
float | theAlpha, | ||
vector | theBorderSize | ||
) |
Definition at line 169 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, draw_UseSkinFor(), drawsubpic(), eX, eY, height, and vector().
Referenced by BorderImage_draw(), m_tooltip(), and minigame_hud_simpleboard().
void draw_ButtonPicture | ( | vector | theOrigin, |
string | pic, | ||
vector | theSize, | ||
vector | theColor, | ||
float | theAlpha | ||
) |
Definition at line 97 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, draw_UseSkinFor(), drawsubpic(), eX, eY, height, and vector().
Referenced by Button_draw(), InputBox_draw(), and Slider_draw().
void draw_CenterText | ( | vector | origin, |
string | text, | ||
vector | size, | ||
vector | color, | ||
float | alpha, | ||
float | allowColorCodes | ||
) |
Definition at line 287 of file draw.qc.
References draw_Text(), draw_TextWidth(), and eX.
Referenced by preMenuInit(), XonoticCharmap_cellDraw(), XonoticCreditsList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticPlayerModelSelector_draw(), XonoticPlayList_drawListBoxItem(), XonoticScreenshotImage_draw(), and XonoticSoundList_drawListBoxItem().
void draw_ClearClip | ( | ) |
Definition at line 351 of file draw.qc.
References ClipFrame::clip_scale, ClipFrame::clip_shift, drawresetcliparea(), drawsetcliparea(), entity(), IL_EMPTY, IL_PEEK, IL_REMOVE(), and LOG_FATAL.
Referenced by Image_draw(), InputBox_draw(), and ListBox_draw().
float draw_CondensedFontFactor | ( | string | theText, |
float | ICanHasKallerz, | ||
vector | SizeThxBye, | ||
float | maxWidth | ||
) |
Definition at line 305 of file draw.qc.
References draw_TextWidth().
Referenced by XonoticLanguageList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 16 of file draw.qc.
References boxToGlobal(), draw_alpha, draw_mousepointer, draw_mousepointer_offset, draw_mousepointer_size, draw_scale, draw_shift, and drawpic().
Referenced by m_draw().
Definition at line 86 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, and drawfill().
Referenced by InputBox_draw(), ListBox_draw(), m_draw(), XonoticCampaignList_drawListBoxItem(), XonoticCvarList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticGametypeList_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticPicker_draw(), XonoticPlayList_drawListBoxItem(), XonoticRegisteredSettingsList_getTooltip_cb(), XonoticScreenshotList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), XonoticSoundList_drawListBoxItem(), XonoticStatsList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 72 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, draw_UseSkinFor(), and drawpic().
Referenced by Button_draw(), draw_Picture_Aligned(), Image_draw(), InputBox_draw(), Slider_draw(), XonoticCampaignList_drawListBoxItem(), XonoticColorpicker_draw(), XonoticColorpickerString_draw(), XonoticCrosshairPicker_cellDraw(), XonoticCrosshairPreview_draw(), XonoticGametypeList_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), and XonoticSkinList_drawListBoxItem().
Definition at line 80 of file draw.qc.
References draw_UseSkinFor(), and drawgetimagesize().
Referenced by draw_Picture_Aligned(), Image_updateAspect(), XonoticCampaignList_drawListBoxItem(), XonoticColorpickerString_draw(), XonoticCrosshairPicker_cellDraw(), XonoticCrosshairPreview_draw(), XonoticMapInfoDialog_loadMapInfo(), XonoticMapList_drawListBoxItem(), XonoticPlayerModelSelector_go(), and XonoticServerList_drawListBoxItem().
Definition at line 60 of file draw.qc.
References draw_UseSkinFor(), and precache_pic().
Referenced by XonoticMapList_refilter().
Definition at line 66 of file draw.qc.
References draw_UseSkinFor(), and precache_pic().
Referenced by XonoticGametypeList_configureXonoticGametypeList().
Definition at line 21 of file draw.qc.
References draw_alpha, draw_endBoldFont, draw_fontscale, draw_scale, and draw_shift.
Referenced by draw_reset_cropped(), and draw_reset_full().
void draw_SetClip | ( | ) |
Definition at line 338 of file draw.qc.
References _draw_SetClip(), draw_scale, and draw_shift.
Referenced by Image_draw(), and ListBox_draw().
Definition at line 343 of file draw.qc.
References _draw_SetClip(), boxToGlobal(), boxToGlobalSize(), draw_scale, and draw_shift.
Referenced by InputBox_draw().
Definition at line 9 of file draw.qc.
References draw_mousepointer, draw_mousepointer_offset, draw_mousepointer_size, draw_UseSkinFor(), eX, eY, and strzone().
Referenced by m_init_delayed().
void draw_Text | ( | vector | origin, |
string | text, | ||
vector | size, | ||
vector | color, | ||
float | alpha, | ||
float | allowColorCodes | ||
) |
Definition at line 271 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_fontscale, draw_scale, draw_shift, drawcolorcodedstring(), drawstring(), globalToBoxSize(), and LOG_TRACE.
Referenced by draw_CenterText(), InputBox_draw(), Label_draw(), ListBox_drawListBoxItem(), m_tooltip(), XonoticCvarList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticPlayList_drawListBoxItem(), XonoticRegisteredSettingsList_getTooltip_cb(), XonoticScreenshotImage_draw(), XonoticScreenshotList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), XonoticSoundList_drawListBoxItem(), XonoticStatsList_drawListBoxItem(), XonoticTextBox_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 390 of file draw.qc.
References draw_TextWidth_WithColors(), draw_TextWidth_WithoutColors(), and textLengthUpToWidth().
Referenced by InputBox_mouseDrag().
Definition at line 366 of file draw.qc.
References draw_TextWidth_WithColors(), draw_TextWidth_WithoutColors(), and textShortenToWidth().
Referenced by Label_draw(), XonoticCampaignList_drawListBoxItem(), XonoticCvarList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticPlayList_drawListBoxItem(), XonoticRegisteredSettingsList_getTooltip_cb(), XonoticScreenshotList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), XonoticSoundList_drawListBoxItem(), and XonoticStatsList_drawListBoxItem().
Definition at line 293 of file draw.qc.
References boxToGlobalSize(), draw_fontscale, draw_scale, globalToBoxSize(), stringwidth(), v, and vector().
Referenced by draw_CenterText(), draw_CondensedFontFactor(), draw_TextWidth_WithColors(), draw_TextWidth_WithoutColors(), InputBox_draw(), Label_recalcPositionWithText(), m_tooltip(), XonoticDemoList_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticScreenshotList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), and XonoticStatsList_drawListBoxItem().
Definition at line 380 of file draw.qc.
References draw_TextWidth().
Referenced by draw_TextLengthUpToWidth(), draw_TextShortenToWidth(), Label_draw(), Label_recalcPositionWithText(), and XonoticTextBox_setText().
Definition at line 385 of file draw.qc.
References draw_TextWidth().
Referenced by draw_TextLengthUpToWidth(), draw_TextShortenToWidth(), Label_draw(), Label_recalcPositionWithText(), m_tooltip(), and rewrapCampaign().
void draw_VertButtonPicture | ( | vector | theOrigin, |
string | pic, | ||
vector | theSize, | ||
vector | theColor, | ||
float | theAlpha | ||
) |
Definition at line 132 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, draw_UseSkinFor(), drawsubpic(), eX, eY, height, and vector().
Referenced by ListBox_draw().
Definition at line 30 of file draw.qc.
References v.
Referenced by Container_mouseDrag(), Container_mouseMove(), Container_mouseRelease(), InputContainer__changeFocusXY(), ListBox_mouseRelease(), m_draw(), m_findtooltipitem(), and ModalController_showChild().
Definition at line 38 of file draw.qc.
References v.
Referenced by BorderImage_draw(), draw_Text(), draw_TextWidth(), m_draw(), ModalController_draw(), ModalController_showChild(), Nexposee_draw(), XonoticColorpickerString_draw(), XonoticCrosshairPicker_cellDraw(), and XonoticCrosshairPreview_draw().
float draw_alpha |
Definition at line 9 of file draw.qh.
Referenced by Button_draw(), Container_enterLieSubitem(), Container_leaveSubitem(), draw_BorderPicture(), draw_ButtonPicture(), draw_drawMousePointer(), draw_Fill(), draw_Picture(), draw_reset(), draw_Text(), draw_VertButtonPicture(), InputBox_draw(), Label_draw(), m_draw(), Slider_draw(), XonoticColorpickerString_draw(), XonoticCrosshairPreview_draw(), and XonoticPicker_draw().
vector draw_scale |
Definition at line 8 of file draw.qh.
Referenced by Container_enterLieSubitem(), Container_leaveSubitem(), draw_BorderPicture(), draw_ButtonPicture(), draw_drawMousePointer(), draw_Fill(), draw_Picture(), draw_Picture_Aligned(), draw_reset(), draw_SetClip(), draw_SetClipRect(), draw_Text(), draw_TextWidth(), draw_VertButtonPicture(), ListBox_draw(), m_draw(), preMenuDraw(), preMenuInit(), XonoticColorpickerString_draw(), and XonoticServerList_drawListBoxItem().
vector draw_shift |
Definition at line 7 of file draw.qh.
Referenced by Container_enterLieSubitem(), Container_leaveSubitem(), draw_BorderPicture(), draw_ButtonPicture(), draw_drawMousePointer(), draw_Fill(), draw_Picture(), draw_reset(), draw_SetClip(), draw_SetClipRect(), draw_Text(), draw_VertButtonPicture(), ListBox_draw(), m_draw(), and XonoticServerList_drawListBoxItem().