summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAustin Meyer <[email protected]>2021-02-13 23:02:28 -0800
committerAmir Rajan <[email protected]>2021-02-17 18:23:04 -0800
commit0496134455d27d9baaf628252efd8fdd93d73d2e (patch)
tree78aad9cd8a8c3a5697e9014610d4ff6488d1e114
parentcb51bc152392ae8baec4f2584ec0500f7e8a023b (diff)
downloaddragonruby-game-toolkit-contrib-0496134455d27d9baaf628252efd8fdd93d73d2e.tar.gz
dragonruby-game-toolkit-contrib-0496134455d27d9baaf628252efd8fdd93d73d2e.zip
Fixed console dropdown being off when origin_center! activated.
-rw-r--r--dragon/console.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/dragon/console.rb b/dragon/console.rb
index be476bd..644f365 100644
--- a/dragon/console.rb
+++ b/dragon/console.rb
@@ -4,6 +4,7 @@
# Contributors outside of DragonRuby who also hold Copyright:
# - Kevin Fischer: https://github.com/kfischer-okarin
+# - Austin Meyer: https://github.com/Niyy
module GTK
class Console
@@ -523,7 +524,7 @@ S
return if !@toggled_at
return if slide_progress == 0
- @bottom = top - (h * slide_progress)
+ @bottom = h - (h * slide_progress)
args.outputs.reserved << [left, @bottom, w, h, *@background_color.mult_alpha(slide_progress)].solid
args.outputs.reserved << [right.shift_left(110), @bottom.shift_up(630), 100, 100, @logo, 0, (80.0 * slide_progress).to_i].sprite