diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-21 00:27:32 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-21 00:27:32 +0000 |
commit | 43e20b978e424d01ecbe49950b41111081a3ee43 (patch) | |
tree | 111336f68e90585acc6eb8b10fa0ad7dd4af5cb1 /src | |
parent | 37b865d2ea580ee9abaf80b7c1efee1b062394c0 (diff) | |
download | mana-43e20b978e424d01ecbe49950b41111081a3ee43.tar.gz mana-43e20b978e424d01ecbe49950b41111081a3ee43.tar.bz2 mana-43e20b978e424d01ecbe49950b41111081a3ee43.tar.xz mana-43e20b978e424d01ecbe49950b41111081a3ee43.zip |
A few small fixes.
Diffstat (limited to 'src')
-rw-r--r-- | src/engine.cpp | 34 | ||||
-rw-r--r-- | src/gui/char_select.cpp | 7 | ||||
-rw-r--r-- | src/gui/char_server.cpp | 1 | ||||
-rw-r--r-- | src/gui/scrollarea.cpp | 2 |
4 files changed, 27 insertions, 17 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index c852c861..7785313f 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -62,23 +62,23 @@ EquipmentWindow *equipmentWindow; ChargeDialog *chargeDialog; char hairtable[16][4][2] = { - // S(x,y) W(x,y) N(x,y) E(x,y) - { { 0, 0}, {-1, 2}, {-1, 2}, {0, 2} }, // STAND - { { 0, 2}, {-2, 3}, {-1, 2}, {1, 3} }, // WALK 1st frame - { { 0, 3}, {-2, 4}, {-1, 3}, {1, 4} }, // WALK 2nd frame - { { 0, 1}, {-2, 2}, {-1, 2}, {1, 2} }, // WALK 3rd frame - { { 0, 2}, {-2, 3}, {-1, 2}, {1, 3} }, // WALK 4th frame - { { 0, 1}, {1, 2}, {-1, 3}, {-2, 2} }, // ATTACK 1st frame - { { 0, 1}, {-1, 2}, {-1, 3}, {0, 2} }, // ATTACK 2nd frame - { { 0, 2}, {-4, 3}, {0, 4}, {3, 3} }, // ATTACK 3rd frame - { { 0, 2}, {-4, 3}, {0, 4}, {3, 3} }, // ATTACK 4th frame - { { 0, 0}, {-1, 2}, {-1, 2}, {-1, 2} }, // BOW_ATTACK 1st frame - { { 0, 0}, {-1, 2}, {-1, 2}, {-1, 2} }, // BOW_ATTACK 2nd frame - { { 0, 0}, {-1, 2}, {-1, 2}, {-1, 2} }, // BOW_ATTACK 3rd frame - { { 0, 0}, {-1, 2}, {-1, 2}, {-1, 2} }, // BOW_ATTACK 4th frame - { { 0, 4}, {-1, 6}, {-1, 6}, {0, 6} }, // SIT - { { 0, 0}, {0, 0}, {0, 0}, {0, 0} }, // ?? HIT - { { 0, 16}, {-1, 6}, {-1, 6}, {0, 6} } // DEAD + // S(x,y) W(x,y) N(x,y) E(x,y) + { { 0, 0}, {-1, 2}, {-1, 2}, { 0, 2} }, // STAND + { { 0, 2}, {-2, 3}, {-1, 2}, { 1, 3} }, // WALK 1st frame + { { 0, 3}, {-2, 4}, {-1, 3}, { 1, 4} }, // WALK 2nd frame + { { 0, 1}, {-2, 2}, {-1, 2}, { 1, 2} }, // WALK 3rd frame + { { 0, 2}, {-2, 3}, {-1, 2}, { 1, 3} }, // WALK 4th frame + { { 0, 1}, { 1, 2}, {-1, 3}, {-2, 2} }, // ATTACK 1st frame + { { 0, 1}, {-1, 2}, {-1, 3}, { 0, 2} }, // ATTACK 2nd frame + { { 0, 2}, {-4, 3}, { 0, 4}, { 3, 3} }, // ATTACK 3rd frame + { { 0, 2}, {-4, 3}, { 0, 4}, { 3, 3} }, // ATTACK 4th frame + { { 0, 0}, {-1, 2}, {-1, 2}, {-1, 2} }, // BOW_ATTACK 1st frame + { { 0, 0}, {-1, 2}, {-1, 2}, {-1, 2} }, // BOW_ATTACK 2nd frame + { { 0, 0}, {-1, 2}, {-1, 2}, {-1, 2} }, // BOW_ATTACK 3rd frame + { { 0, 0}, {-1, 2}, {-1, 2}, {-1, 2} }, // BOW_ATTACK 4th frame + { { 0, 4}, {-1, 6}, {-1, 6}, { 0, 6} }, // SIT + { { 0, 0}, { 0, 0}, { 0, 0}, { 0, 0} }, // ?? HIT + { { 0, 16}, {-1, 6}, {-1, 6}, { 0, 6} } // DEAD }; int get_x_offset(Being *being) diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index e9e8609b..ad71cb31 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -433,6 +433,13 @@ void charSelect() case SDL_QUIT: state = EXIT; break; + + case SDL_KEYDOWN: + if (event.key.keysym.sym == SDLK_ESCAPE) + { + state = EXIT; + } + break; } guiInput->pushInput(event); diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp index cb085053..a4a433a7 100644 --- a/src/gui/char_server.cpp +++ b/src/gui/char_server.cpp @@ -125,6 +125,7 @@ void char_server() { switch (event.type) { case SDL_QUIT: state = EXIT; + showServerList = false; break; case SDL_KEYDOWN: diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp index 9bbdf797..d262d355 100644 --- a/src/gui/scrollarea.cpp +++ b/src/gui/scrollarea.cpp @@ -77,6 +77,8 @@ void ScrollArea::init() void ScrollArea::draw(gcn::Graphics *graphics) { + checkPolicies(); + int alpha = getBaseColor().a; gcn::Color highlightColor = getBaseColor() + 0x303030; highlightColor.a = alpha; |