|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | draw_beginBoldFont() |
| #define | draw_endBoldFont() |
| #define | draw_fontscale drawfontscale |
Variables | |
| float | draw_alpha |
| vector | draw_scale |
| vector | draw_shift |
| vector | drawfontscale |
| #define draw_beginBoldFont | ( | ) |
| #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(), XonoticGametypeList_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticTopicList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 45 of file draw.qc.
References vector.
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 vector.
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 44 of file draw.qh.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, 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 108 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, 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 298 of file draw.qc.
References draw_Text(), draw_TextWidth(), eX, and vector.
Referenced by preMenuDraw(), preMenuInit(), XonoticCharmap_cellDraw(), XonoticCreditsList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticPlayerModelSelector_draw(), XonoticPlayList_drawListBoxItem(), XonoticScreenshotImage_draw(), XonoticSoundList_drawListBoxItem(), and XonoticTextBox_drawListBoxItem().
| void draw_ClearClip | ( | ) |
Definition at line 362 of file draw.qc.
References ClipFrame::clip_scale, ClipFrame::clip_shift, draw_clip, 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 316 of file draw.qc.
References draw_TextWidth(), and vector.
Referenced by XonoticGametypeList_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticTopicList_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, drawpic, and vector.
Referenced by m_draw().
Definition at line 97 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, drawfill, and vector.
Referenced by MenuItem::draw(), XonoticRegisteredSettingsList::drawListBoxItem(), InputBox_draw(), ListBox_draw(), m_draw(), preMenuDraw(), preMenuInit(), XonoticCampaignList_drawListBoxItem(), XonoticCvarList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticEntryList_drawListBoxItem(), XonoticGametypeList_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticPicker_draw(), XonoticPlayList_drawListBoxItem(), XonoticScreenshotList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), XonoticSoundList_drawListBoxItem(), XonoticStatsList_drawListBoxItem(), XonoticTopicList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 72 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, drawpic, and vector.
Referenced by Button_draw(), draw_Picture_Aligned(), Image_draw(), InputBox_draw(), Slider_draw(), XonoticCampaignList_drawListBoxItem(), XonoticColorpicker_draw(), XonoticColorpickerString_draw(), XonoticCrosshairPicker_cellDraw(), XonoticCrosshairPreview_draw(), XonoticEntryList_drawListBoxItem(), XonoticGametypeList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), XonoticTopicList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 86 of file draw.qc.
References fexists(), and strcat().
Referenced by XonoticMapInfoDialog_loadMapInfo().
Definition at line 80 of file draw.qc.
References drawgetimagesize(), and vector.
Referenced by draw_Picture_Aligned(), Image_updateAspect(), XonoticCampaignList_drawListBoxItem(), XonoticColorpickerString_draw(), XonoticCrosshairPicker_cellDraw(), XonoticCrosshairPreview_draw(), XonoticEntryList_drawListBoxItem(), XonoticKeyBinder_resizeNotify(), XonoticLanguageList_resizeNotify(), XonoticMapList_drawListBoxItem(), XonoticPlayerModelSelector_go(), XonoticSkinList_getSkins(), and XonoticWeaponsList_resizeNotify().
Definition at line 60 of file draw.qc.
References precache_pic().
Referenced by XonoticCrosshairPicker_configureXonoticCrosshairPicker(), XonoticEntryList_drawListBoxItem(), XonoticEntryList_refilter(), XonoticMapList_refilter(), and XonoticServerList_drawListBoxItem().
Definition at line 66 of file draw.qc.
References 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 349 of file draw.qc.
References _draw_SetClip(), draw_scale, and draw_shift.
Referenced by Image_draw(), and ListBox_draw().
Definition at line 354 of file draw.qc.
References _draw_SetClip(), boxToGlobal(), boxToGlobalSize(), draw_scale, draw_shift, and vector.
Referenced by InputBox_draw().
Definition at line 9 of file draw.qc.
References draw_mousepointer, draw_mousepointer_offset, draw_mousepointer_size, eX, eY, strzone(), and vector.
Referenced by m_init_delayed().
| void draw_Text | ( | vector | origin, |
| string | text, | ||
| vector | size, | ||
| vector | color, | ||
| float | alpha, | ||
| float | allowColorCodes ) |
Definition at line 282 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_fontscale, draw_scale, draw_shift, drawcolorcodedstring, drawstring, globalToBoxSize(), LOG_TRACE, and vector.
Referenced by draw_CenterText(), XonoticRegisteredSettingsList::drawListBoxItem(), InputBox_draw(), Label_draw(), ListBox_drawListBoxItem(), m_tooltip(), XonoticCampaignList_drawListBoxItem(), XonoticCvarList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticEntryList_drawListBoxItem(), XonoticGametypeList_drawListBoxItem(), XonoticGuideDescription_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticPlayerList_drawListBoxItem(), XonoticPlayList_drawListBoxItem(), XonoticScreenshotImage_draw(), XonoticScreenshotList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), XonoticSoundList_drawListBoxItem(), XonoticStatsList_drawListBoxItem(), XonoticTextBox_drawListBoxItem(), XonoticTopicList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 401 of file draw.qc.
References draw_TextWidth_WithColors(), draw_TextWidth_WithoutColors(), textLengthUpToWidth(), and vector.
Referenced by InputBox_mouseDrag().
Definition at line 377 of file draw.qc.
References draw_TextWidth_WithColors(), draw_TextWidth_WithoutColors(), textShortenToWidth(), and vector.
Referenced by XonoticRegisteredSettingsList::drawListBoxItem(), Label_draw(), XonoticCampaignList_drawListBoxItem(), XonoticCvarList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticEntryList_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticPlayerList_drawListBoxItem(), XonoticPlayList_drawListBoxItem(), XonoticScreenshotList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), XonoticSoundList_drawListBoxItem(), and XonoticStatsList_drawListBoxItem().
Definition at line 304 of file draw.qc.
References boxToGlobalSize(), draw_fontscale, draw_scale, globalToBoxSize(), stringwidth, and vector.
Referenced by draw_CenterText(), draw_CondensedFontFactor(), draw_TextWidth_WithColors(), draw_TextWidth_WithoutColors(), InputBox_draw(), Label_recalcPositionWithText(), preMenuDraw(), XonoticCampaignList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticGametypeList_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticPlayerList_drawListBoxItem(), XonoticScreenshotList_drawListBoxItem(), XonoticServerList_drawListBoxItem(), XonoticSkinList_drawListBoxItem(), XonoticStatsList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 391 of file draw.qc.
References draw_TextWidth(), and vector.
Referenced by draw_TextLengthUpToWidth(), draw_TextShortenToWidth(), Label_draw(), Label_recalcPositionWithText(), m_tooltip(), wrapGuideText(), and XonoticTextBox_setText().
Definition at line 396 of file draw.qc.
References draw_TextWidth(), and vector.
Referenced by draw_TextLengthUpToWidth(), draw_TextShortenToWidth(), Label_draw(), Label_recalcPositionWithText(), rewrapCampaign(), XonoticEntryList_drawListBoxItem(), and XonoticTextBox_setText().
| void draw_VertButtonPicture | ( | vector | theOrigin, |
| string | pic, | ||
| vector | theSize, | ||
| vector | theColor, | ||
| float | theAlpha ) |
Definition at line 143 of file draw.qc.
References boxToGlobal(), boxToGlobalSize(), draw_alpha, draw_scale, draw_shift, drawsubpic(), eX, eY, height, and vector.
Referenced by ListBox_draw().
Definition at line 30 of file draw.qc.
References vector.
Referenced by Container_mouseDrag(), Container_mouseMove(), Container_mouseRelease(), InputContainer__changeFocusXY(), ListBox_mouseRelease(), m_draw(), m_findtooltipitem(), ModalController_showChild(), and Container::mousePress().
Definition at line 38 of file draw.qc.
References vector.
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(), preMenuDraw(), 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().