Replies: 3 comments 19 replies
-
Beta Was this translation helpful? Give feedback.
4 replies
-
This is the hud.cpp file. #include "Hud.h"
Hud* Hud::getInstance()
{
static Hud instance;
return &instance;
}
ax::LayerColor* Hud::getLayer() const
{
return _layer;
}
Hud::Hud() :
_layer(ax::LayerColor::create(ax::Color4B::ORANGE)),
_logo(ax::ui::ImageView::create("CloseNormal.png"))
{
//_layer->setAnchorPoint({ 0, 0 });
_layer->addChild(_logo);
} |
Beta Was this translation helpful? Give feedback.
5 replies
-
This happens event without explicitly settings or changing the default camera. Other UI components put into a Panel appear at the middle of the panel, not bottom-left. So, is this going to be fixed? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using a yellow LayerColor which is the HUD on which other images are drawn. One of the cameras is supposed to be used for the HUD. The issue is the layer's starting position is at the center of the screen yet it's supposed to be at the bottom left of the screen. The only hack I have tried is using negative values to position it in the bottom left corner. I want it to fill the whole screen but start at the bottom left corner.
Here is the code to help you.
Check Repo
Beta Was this translation helpful? Give feedback.
All reactions