Skip to content

Commit

Permalink
CrazyGames: css fix, fix crash from tutorial->shooting range, fix nad…
Browse files Browse the repository at this point in the history
…e description
  • Loading branch information
geneotech committed Aug 6, 2024
1 parent 87873bc commit 70e2905
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
9 changes: 9 additions & 0 deletions cmake/web/assets/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ canvas {
width: 100%;
height: 100%;
}

.center-container {
position: absolute;
text-align: center;
Expand Down Expand Up @@ -66,3 +67,11 @@ canvas {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}

canvas:focus {
outline: none;
}

* {
outline: none !important;
}
2 changes: 1 addition & 1 deletion hypersomnia/content/menu/tutorial/tutorial.json
Original file line number Diff line number Diff line change
Expand Up @@ -13558,7 +13558,7 @@
"ambience_particles": {
"scale_amounts": 0.30000001192092896
},
"context_tip": "Yellow ones are the cheapest - they only drain stamina and throw enemies away.\nThey also force gun ignition - good for trolling rocket launcher users."
"context_tip": "Yellow ones drain stamina and throw enemies away.\nThey also force gun ignition - great against rocket launchers."
},
{
"id": "entry13",
Expand Down
11 changes: 9 additions & 2 deletions src/application/setups/test_scene_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,15 @@ bool test_scene_setup::post_solve(const const_logic_step step) {

init(test_scene_type::SHOOTING_RANGE);

character().get<components::crosshair>() = pre_crosshair;
character().get<components::movement>().flags = pre_movement_flags;
if (const auto ch = character()) {
if (const auto cr = ch.find<components::crosshair>()) {
*cr = pre_crosshair;
}

if (const auto mv = ch.find<components::movement>()) {
mv->flags = pre_movement_flags;
}
}
}

return false;
Expand Down

0 comments on commit 70e2905

Please sign in to comment.