• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

crossHair mousePos

Selfish

Member
Joined
Aug 22, 2011
Messages
22
Reaction score
6
Hi guys!

I try make this feature (setCrossHair), but something don't work. I created a method using g_painter but it is not rendering the image

Code:
void UIMap::setCrossHair(const Point& mousePos) {
    g_logger.debug(stdext::format("crossHair"));

    Rect r = Rect(mousePos.x, mousePos.y, 32, 32);
    g_painter->setColor(Color::white);
    g_painter->drawTexturedRect(r, g_textures.getTexture("/images/crosshair/default.png"));
}
 
Back
Top