From 73da1a78ad4959ba435fde987701e82826427160 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 31 Dec 2020 10:51:59 -0300 Subject: Remove some old, unmaintaned and unused code --- game/gui/battle.rpy | 49 +------------------------------------------------ 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/game/gui/battle.rpy b/game/gui/battle.rpy index 40697d2..f180c1c 100644 --- a/game/gui/battle.rpy +++ b/game/gui/battle.rpy @@ -62,27 +62,7 @@ init python: return return -# FIXME: Allow to drag spheres instead of whole chars. -# More checks needed on client, but less on server -# And spheres are 1D, so much easier on RAM/CPU as well -init 2 python: - def blayout(): - renpy.call_in_new_context("bl_context") - return - def blayout2(): - o1=renpy.call_screen("battle_layout", "Select unit to swap") - o2=renpy.call_screen("battle_layout", "Select unit to swap with") - if (o1 == o2): - return - tmp=copy.copy(Battle["party"][o2]) - Battle["party"][o2]=copy.copy(Battle["party"][o1]) - Battle["party"][o1]=tmp - renpy.notify("Done!") - return - -label bl_context: - $ blayout2() - return +# FIXME: Allow to drag spheres around ############################################################################# screen battle_mobs(): @@ -380,7 +360,6 @@ screen battle(): # Preferences button null width 20 imagebutton auto "gfx/gui/cog_%s.png" action ShowMenu('preferences') - #textbutton _("Party") action Function(blayout) null width 20 text "%d " % (Battle["turn"]) text _(" Turn") @@ -396,29 +375,3 @@ screen battle(): -screen battle_layout(lb="Select unit"): - vbox: - xalign 0.5 - yalign 0.3 - label _("{size=32}{color=#f00}%s{/color}{/size}" % lb) - null height 20 - hbox: - for i, item in enumerate(Battle["party"]): - imagebutton: - if item["unit_id"] > 0: - idle At(Composite( - (340, 340), - (0, 0), "gfx/square/bg.png", - (0, 0), "gfx/square/units/%d.png" % item["unit_id"], - (0, 0), "gfx/square/%d.png" % allunits[item["unit_id"]]["rare"], - ), czoom_70) - else: - idle At("gfx/square/bg.png", czoom_70) - action Return(i) - null height 80 - # The close button returns -1 and comes last (TODO) - imagebutton: - idle At("gfx/square/back_idle.png", czoom_75) - hover At("gfx/square/back_hover.png", czoom_75) - action Return(-1) - -- cgit v1.2.3-70-g09d2