summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-31 10:51:59 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-31 10:51:59 -0300
commit73da1a78ad4959ba435fde987701e82826427160 (patch)
treebe385cf8ceec28929649e46ccc9ed4596ee291fb
parent7947c8419b9939994065103729075c4ce28ff250 (diff)
downloadclient-73da1a78ad4959ba435fde987701e82826427160.tar.gz
client-73da1a78ad4959ba435fde987701e82826427160.tar.bz2
client-73da1a78ad4959ba435fde987701e82826427160.tar.xz
client-73da1a78ad4959ba435fde987701e82826427160.zip
Remove some old, unmaintaned and unused code
-rw-r--r--game/gui/battle.rpy49
1 files changed, 1 insertions, 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)
-