Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Blackjack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal Engeler
Blackjack
Commits
c922978c
Commit
c922978c
authored
2 years ago
by
noec
Browse files
Options
Downloads
Patches
Plain Diff
changed a comment
parent
e69006c3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/client/panels/MainGamePanel.cpp
+8
-10
8 additions, 10 deletions
source/client/panels/MainGamePanel.cpp
with
8 additions
and
10 deletions
source/client/panels/MainGamePanel.cpp
+
8
−
10
View file @
c922978c
...
...
@@ -235,15 +235,15 @@ void MainGamePanel::buildThisPlayer(game_state* gameState, player* me) {
}
else
{
// T
ODO show how much money the player has left
wxStaticText
*
playerPoints
=
buildStaticText
(
"You currently have "
+
std
::
to_string
(
me
->
get_money
())
+
"$"
,
wxDefaultPosition
,
wxSize
(
200
,
18
),
wxALIGN_CENTER
);
// T
his is taken care of in the betpanel
//
wxStaticText *playerPoints = buildStaticText(
//
"You currently have " + std::to_string(me->get_money()) + "$",
//
wxDefaultPosition,
//
wxSize(200, 18),
//
wxALIGN_CENTER
//
);
innerLayout
->
Add
(
playerPoints
,
0
,
wxALIGN_CENTER
|
wxBOTTOM
,
8
);
//
innerLayout->Add(playerPoints, 0, wxALIGN_CENTER | wxBOTTOM, 8);
// if our player already played, we display that as status
// TODO from has_folded make has_played
...
...
@@ -305,9 +305,7 @@ void MainGamePanel::buildThisPlayer(game_state* gameState, player* me) {
for
(
int
i
=
0
;
i
<
me
->
get_hand
()
->
get_cards
().
size
();
i
++
)
{
card
*
handCard
=
me
->
get_hand
()
->
get_cards
().
at
(
i
);
std
::
string
cardFile
=
getPngFileName
(
handCard
->
get_value
(),
handCard
->
get_suit
());
ImagePanel
*
cardButton
=
new
ImagePanel
(
this
,
cardFile
,
wxBITMAP_TYPE_ANY
,
wxDefaultPosition
,
scaledCardSize
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment