fix lines again sorry mat

This commit is contained in:
altalk23 2024-01-24 00:11:07 +03:00
parent fd8c3630e3
commit bedd6d3f59
4 changed files with 12 additions and 8 deletions

View file

@ -13,9 +13,10 @@
void InstallListCell::draw() {
auto size = this->getContentSize();
cocos2d::ccDrawColor4B(0, 0, 0, 75);
glLineWidth(2.0f);
cocos2d::ccDrawLine({ 1.0f, 1.0f }, { size.width - 1.0f, 1.0f });
cocos2d::ccDrawLine({ 1.0f, size.height - 1.0f }, { size.width - 1.0f, size.height - 1.0f });
cocos2d::ccDrawLine({ 1.0f, 0.0f }, { size.width - 1.0f, 0.0f });
cocos2d::ccDrawLine({ 1.0f, size.height }, { size.width - 1.0f, size.height });
}
float InstallListCell::getLogoSize() const {

View file

@ -21,9 +21,10 @@ static bool tryOrAlert(Result<T> const& res, char const* title) {
void ModListCell::draw() {
auto size = this->getContentSize();
cocos2d::ccDrawColor4B(0, 0, 0, 75);
glLineWidth(2.0f);
cocos2d::ccDrawLine({ 1.0f, 1.0f }, { size.width - 1.0f, 1.0f });
cocos2d::ccDrawLine({ 1.0f, size.height - 1.0f }, { size.width - 1.0f, size.height - 1.0f });
cocos2d::ccDrawLine({ 1.0f, 0.0f }, { size.width - 1.0f, 0.0f });
cocos2d::ccDrawLine({ 1.0f, size.height }, { size.width - 1.0f, size.height });
}
float ModListCell::getLogoSize() const {

View file

@ -10,9 +10,10 @@
void ProblemsListCell::draw() {
auto size = this->getContentSize();
cocos2d::ccDrawColor4B(0, 0, 0, 75);
glLineWidth(2.0f);
cocos2d::ccDrawLine({ 1.0f, 1.0f }, { size.width - 1.0f, 1.0f });
cocos2d::ccDrawLine({ 1.0f, size.height - 1.0f }, { size.width - 1.0f, size.height - 1.0f });
cocos2d::ccDrawLine({ 1.0f, 0.0f }, { size.width - 1.0f, 0.0f });
cocos2d::ccDrawLine({ 1.0f, size.height }, { size.width - 1.0f, size.height });
}
float ProblemsListCell::getLogoSize() const {

View file

@ -11,9 +11,10 @@ GenericListCell::GenericListCell(char const* name, CCSize size) :
void GenericListCell::draw() {
auto size = this->getContentSize();
cocos2d::ccDrawColor4B(0, 0, 0, 75);
glLineWidth(2.0f);
cocos2d::ccDrawLine({ 1.0f, 1.0f }, { size.width - 1.0f, 1.0f });
cocos2d::ccDrawLine({ 1.0f, size.height - 1.0f }, { size.width - 1.0f, size.height - 1.0f });
cocos2d::ccDrawLine({ 1.0f, 0.0f }, { size.width - 1.0f, 0.0f });
cocos2d::ccDrawLine({ 1.0f, size.height }, { size.width - 1.0f, size.height });
}
GenericListCell* GenericListCell::create(char const* key, CCSize size) {