mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-31 07:10:28 -04:00
fix lines again sorry mat
This commit is contained in:
parent
fd8c3630e3
commit
bedd6d3f59
4 changed files with 12 additions and 8 deletions
loader/src/ui
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue