Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Alterado: logo maior e posição dos botões do menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Alynva committed May 16, 2017
1 parent a8de8a1 commit 39fa0bd
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions Source/include/freecell.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,19 @@ void FreeCell::menu() {
// Inicializa o background
this->gBackground = SDL_CreateTextureFromSurface(this->gRenderer, IMG_Load("../textures/backgrounds/0.png"));

Textura logo("../textures/logo/logo.png", this->gRenderer, this->window_size.x / 2 - 118, this->window_size.y / 2 - this->window_size.y / 3 - 52, 236, 108);
Textura logo("../textures/logo/logo.png", this->gRenderer, this->window_size.x / 2 - 204, this->window_size.y / 4 - 79, 408, 158);
this->event.addLogo(&logo);

Button play("play", this->gRenderer);
play.setPosition({this->window_size.x / 2 - 125, this->window_size.y / 2 - 100});
play.setPosition({this->window_size.x / 2 - 125, this->window_size.y / 2 - 25});
this->event.addButton(&play);

Button project("project", this->gRenderer);
project.setPosition({this->window_size.x / 2 - 125, this->window_size.y / 2 - 25});
project.setPosition({this->window_size.x / 2 - 125, this->window_size.y / 2 + 50});
this->event.addButton(&project);

Button quit("quit", this->gRenderer);
quit.setPosition({this->window_size.x / 2 - 125, this->window_size.y / 2 + 50});
quit.setPosition({this->window_size.x / 2 - 125, this->window_size.y / 2 + 125});
this->event.addButton(&quit);

while (!this->start() && !this->finish()) {
Expand Down
32 changes: 16 additions & 16 deletions Source/src/FreeCell.layout
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ LeftChar=1
Open=0
Top=0
[Editors]
Order=-1,1,2,4
Order=-1,2
Focused=2
[Editor_1]
Open=1
Open=0
Top=0
CursorCol=1
CursorRow=35
Expand All @@ -18,9 +18,9 @@ LeftChar=1
[Editor_2]
Open=1
Top=1
CursorCol=89
CursorRow=320
TopLine=308
CursorCol=23
CursorRow=302
TopLine=286
LeftChar=1
[Editor_3]
Open=0
Expand All @@ -30,7 +30,7 @@ CursorRow=55
TopLine=24
LeftChar=1
[Editor_4]
Open=1
Open=0
Top=0
CursorCol=1
CursorRow=1
Expand All @@ -44,7 +44,7 @@ CursorRow=16
TopLine=3
LeftChar=1
[Editor_6]
Open=1
Open=0
Top=0
CursorCol=30
CursorRow=35
Expand All @@ -53,8 +53,8 @@ LeftChar=1
[Editor_7]
Open=1
Top=0
CursorCol=16
CursorRow=28
CursorCol=20
CursorRow=47
TopLine=17
LeftChar=1
[Editor_8]
Expand Down Expand Up @@ -123,10 +123,10 @@ LeftChar=1
[Editor_17]
Open=1
Top=0
CursorCol=146
CursorRow=101
TopLine=100
LeftChar=24
CursorCol=26
CursorRow=141
TopLine=116
LeftChar=1
[Editor_18]
CursorCol=1
CursorRow=1
Expand All @@ -135,9 +135,9 @@ LeftChar=1
Open=0
Top=0
[Editor_19]
Open=1
Open=0
Top=0
CursorCol=20
CursorRow=50
CursorCol=1
CursorRow=52
TopLine=35
LeftChar=1
Binary file modified Source/src/FreeCell_private.res
Binary file not shown.
8 changes: 4 additions & 4 deletions Source/src/eventmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void EventManager::windowResized(int w, int h) {
*this->window_size = {w, h};

if (this->logo) {
this->logo->setPosition({window_size->x / 2 - 118, window_size->y / 2 - window_size->y / 3 - 52});
this->logo->setPosition({this->window_size->x / 2 - 204, this->window_size->y / 4 - 79});
}

if (this->stacks.getSize()) {
Expand All @@ -338,11 +338,11 @@ void EventManager::windowResized(int w, int h) {
for (int i = 0; i < this->buttons.getSize(); i++) {
string type = node_button->value->getType();
if (type == "play")
node_button->value->setPosition({this->window_size->x / 2 - 125, this->window_size->y / 2 - 100});
else if (type == "project")
node_button->value->setPosition({this->window_size->x / 2 - 125, this->window_size->y / 2 - 25});
else if (type == "quit")
else if (type == "project")
node_button->value->setPosition({this->window_size->x / 2 - 125, this->window_size->y / 2 + 50});
else if (type == "quit")
node_button->value->setPosition({this->window_size->x / 2 - 125, this->window_size->y / 2 + 125});

node_button = node_button->dir;
}
Expand Down
Binary file modified Source/textures/logo/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Source/textures/logo/logo.psd
Binary file not shown.

0 comments on commit 39fa0bd

Please sign in to comment.