Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
labs
Tablexia-old
Commits
8ade0c92
Commit
8ade0c92
authored
Dec 08, 2014
by
Matyáš Latner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#83
Zvětšení šipek nápovědy
parent
b78c8f1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/main/java/cz/nic/tablexia/game/games/potme/action/widget/ActionsWidget.java
...ablexia/game/games/potme/action/widget/ActionsWidget.java
+5
-3
No files found.
src/main/java/cz/nic/tablexia/game/games/potme/action/widget/ActionsWidget.java
View file @
8ade0c92
...
...
@@ -96,7 +96,9 @@ public class ActionsWidget extends Entity implements ActionListener {
public
static
final
int
ACTION_OFFSET
=
PotmeActivity
.
ACTION_SIZE_SMALLER
/
10
;
private
static
final
float
DIMMER_ALPHA
=
0.5f
;
private
static
final
Color
DIMMER_COLOR
=
Color
.
BLACK
;
private
static
final
float
START_ARROW_WIDTH
=
PotmeActivity
.
TILE_SIZE
*
1.2f
;
private
static
final
float
START_ARROW_X_OFFSET
=
PotmeActivity
.
ACTION_SIZE_SMALLER
*
1.3f
;
private
static
final
int
START_ARROW_Y_OFFSET
=
PotmeActivity
.
ACTION_SIZE_SMALLER
/
2
;
private
static
final
float
START_ARROW_WIDTH
=
PotmeActivity
.
TILE_SIZE
*
1.5f
;
private
static
final
float
START_ARROW_HEIGHT
=
PotmeActivity
.
TILE_SIZE
;
private
ActionsStripWidget
actionsStripWidget
;
...
...
@@ -303,8 +305,8 @@ public class ActionsWidget extends Entity implements ActionListener {
private
void
showArrowSprite
(
float
positionX
,
float
positionY
,
VertexBufferObjectManager
vertexBufferObjectManager
)
{
hideArrowSprite
();
final
Sprite
infoArrowSprite
=
new
Sprite
(
positionX
+
(
PotmeActivity
.
ACTION_SIZE_SMALLER
*
1.2f
)
,
positionY
-
(
PotmeActivity
.
ACTION_SIZE_SMALLER
/
2
)
,
final
Sprite
infoArrowSprite
=
new
Sprite
(
positionX
+
START_ARROW_X_OFFSET
,
positionY
-
START_ARROW_Y_OFFSET
,
START_ARROW_WIDTH
,
START_ARROW_HEIGHT
,
ResourceManager
.
getInstance
().
getTexture
(
ResourceManager
.
INFO_START_ARROW
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment