mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
0.7 cursor
This commit is contained in:
parent
c7b61ac768
commit
dc3580d976
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.7 KiB |
|
@ -172,12 +172,14 @@ void CEmoticon::OnRender()
|
|||
else
|
||||
m_SelectedEyeEmote = -1;
|
||||
|
||||
Graphics()->WrapClamp();
|
||||
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_CURSOR].m_Id);
|
||||
Graphics()->QuadsBegin();
|
||||
Graphics()->SetColor(1,1,1,1);
|
||||
IGraphics::CQuadItem QuadItem(m_SelectorMouse.x+Screen.w/2,m_SelectorMouse.y+Screen.h/2,24,24);
|
||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||
Graphics()->QuadsEnd();
|
||||
Graphics()->WrapNormal();
|
||||
}
|
||||
|
||||
void CEmoticon::Emote(int Emoticon)
|
||||
|
|
|
@ -2136,12 +2136,14 @@ void CMenus::OnRender()
|
|||
Render();
|
||||
|
||||
// render cursor
|
||||
Graphics()->WrapClamp();
|
||||
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_CURSOR].m_Id);
|
||||
Graphics()->QuadsBegin();
|
||||
Graphics()->SetColor(1,1,1,1);
|
||||
IGraphics::CQuadItem QuadItem(mx, my, 24, 24);
|
||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||
Graphics()->QuadsEnd();
|
||||
Graphics()->WrapNormal();
|
||||
|
||||
// render debug information
|
||||
if(g_Config.m_Debug)
|
||||
|
|
|
@ -445,12 +445,14 @@ void CSpectator::OnRender()
|
|||
TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
|
||||
// draw cursor
|
||||
Graphics()->WrapClamp();
|
||||
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_CURSOR].m_Id);
|
||||
Graphics()->QuadsBegin();
|
||||
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
IGraphics::CQuadItem QuadItem(m_SelectorMouse.x+Width/2.0f, m_SelectorMouse.y+Height/2.0f, 48.0f, 48.0f);
|
||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||
Graphics()->QuadsEnd();
|
||||
Graphics()->WrapNormal();
|
||||
}
|
||||
|
||||
void CSpectator::OnReset()
|
||||
|
|
|
@ -6129,6 +6129,7 @@ void CEditor::Render()
|
|||
// render butt ugly mouse cursor
|
||||
float mx = UI()->MouseX();
|
||||
float my = UI()->MouseY();
|
||||
Graphics()->WrapClamp();
|
||||
Graphics()->TextureSet(m_CursorTexture);
|
||||
Graphics()->QuadsBegin();
|
||||
if(ms_pUiGotContext == UI()->HotItem())
|
||||
|
@ -6136,6 +6137,7 @@ void CEditor::Render()
|
|||
IGraphics::CQuadItem QuadItem(mx,my, 16.0f, 16.0f);
|
||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||
Graphics()->QuadsEnd();
|
||||
Graphics()->WrapNormal();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue