MCPcopy Create free account
hub / github.com/diasurgical/devilution / DrawView

Function DrawView

Source/scrollrt.cpp:951–1007  ·  view source on GitHub ↗

* @brief Start rendering of screen, town variation * @param StartX Center of view in dPiece coordinate * @param StartY Center of view in dPiece coordinate */

Source from the content-addressed store, hash-verified

949 * @param StartY Center of view in dPiece coordinate
950 */
951void DrawView(int StartX, int StartY)
952{
953 DrawGame(StartX, StartY);
954 if (automapflag) {
955 DrawAutomap();
956 }
957 if (stextflag && !qtextflag)
958 DrawSText();
959 if (invflag) {
960 DrawInv();
961 } else if (sbookflag) {
962 DrawSpellBook();
963 }
964
965 DrawDurIcon();
966
967 if (chrflag) {
968 DrawChr();
969 } else if (questlog) {
970 DrawQuestLog();
971 }
972 if (!chrflag && plr[myplr]._pStatPts != 0 && !spselflag
973 && (!questlog || SCREEN_HEIGHT >= SPANEL_HEIGHT + PANEL_HEIGHT + 74 || SCREEN_WIDTH >= 4 * SPANEL_WIDTH)) {
974 DrawLevelUpIcon();
975 }
976 if (uitemflag) {
977 DrawUniqueInfo();
978 }
979 if (qtextflag) {
980 DrawQText();
981 }
982 if (spselflag) {
983 DrawSpellList();
984 }
985 if (dropGoldFlag) {
986 DrawGoldSplit(dropGoldValue);
987 }
988 if (helpflag) {
989 DrawHelp();
990 }
991 if (msgflag) {
992 DrawDiabloMsg();
993 }
994 if (deathflag) {
995 RedBack();
996 } else if (PauseMode != 0) {
997 gmenu_draw_pause();
998 }
999
1000 DrawControllerModifierHints();
1001 DrawPlrMsg();
1002 gmenu_draw();
1003 doom_draw();
1004 DrawInfoBox();
1005 DrawLifeFlask();
1006 DrawManaFlask();
1007}
1008

Callers 1

DrawAndBlitFunction · 0.85

Calls 15

DrawGameFunction · 0.85
DrawAutomapFunction · 0.85
DrawSTextFunction · 0.85
DrawInvFunction · 0.85
DrawSpellBookFunction · 0.85
DrawDurIconFunction · 0.85
DrawChrFunction · 0.85
DrawQuestLogFunction · 0.85
DrawLevelUpIconFunction · 0.85
DrawUniqueInfoFunction · 0.85
DrawQTextFunction · 0.85
DrawSpellListFunction · 0.85

Tested by

no test coverage detected