diff options
Diffstat (limited to 'debug/join_party_menu.lua.X')
| -rw-r--r-- | debug/join_party_menu.lua.X | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/debug/join_party_menu.lua.X b/debug/join_party_menu.lua.X new file mode 100644 index 0000000..a7b627e --- /dev/null +++ b/debug/join_party_menu.lua.X @@ -0,0 +1,72 @@ +Pos Lua >> Moon +2 1:[ local main = require("main") ] >> 2:[ main = require "main" ] +24 2:[ local world = require("world") ] >> 3:[ world = require "world" ] +48 3:[ local color = require("color") ] >> 4:[ color = require "color" ] +72 4:[ local bp = require("broadphase") ] >> 5:[ bp = require "broadphase" ] +98 5:[ local ui = require("ui") ] >> 6:[ ui = require "ui" ] +133 7:[ World = world.World ] >> 7:[ import World from world ] +141 8:[ local mod = ... ] >> 9:[ mod = ... ] +152 9:[ mod.node = am.group() ] >> 11:[ mod.node = am.group! ] +173 10:[ mod.node:append(am.sprite("data/join.png")) ] >> 12:[ mod.node\append(am.sprite("data/join.png")) ] +217 11:[ local default_text = "..." ] >> 13:[ default_text = "..." ] +238 12:[ mod.load = function() ] >> 14:[ mod.load = () -> ] +256 13:[ mod.loaded = true ] >> 15:[ mod.loaded = true ] +275 14:[ print("Loading join_party_menu") ] >> 16:[ print("Loading join_party_menu") ] +309 15:[ main.root("screen"):append(mod.node) ] >> 17:[ main.root("screen")\append(mod.node) ] +347 16:[ mod.buttons = ui.create_join_input(mod.node) ] >> 18:[ mod.buttons = ui.create_join_input(mod.node) ] +393 17:[ mod.node:append(am.translate(0, -135) ^ am.text(default_text, color.fg, "center", "top"):tag("join_id")) ] >> 19:[ mod.node\append(am.translate(0,-135)^ am.text(default_text, color.fg, "center","top")\tag("join_id")) ] +496 18:[ local touch_indicator = am.group() ] >> 20:[ touch_indicator = am.group! ] +525 19:[ local touch_cursor = am.sprite("data/cursor.png", vec4(1, 1, 1, 1), "left", "top") ] >> 21:[ touch_cursor = am.sprite("data/cursor.png",vec4(1,1,1,1),"left","top") ] +597 20:[ local backspace = ui.create_any_button(mod.node, 2, 2, 150, -25) ] >> 22:[ backspace = ui.create_any_button(mod.node,2,2,150,-25) ] +653 21:[ backspace.node:append(am.translate(164, -41) ^ am.scale(2) ^ am.text("<-", color.fg, "left", "top")) ] >> 23:[ backspace.node\append(am.translate(164,-41)^ am.scale(2)^ am.text("<-", color.fg, "left","top")) ] +751 22:[ local touch_loc = am.translate(0, 0) ^ touch_cursor ] >> 24:[ touch_loc = am.translate(0,0)^ touch_cursor ] +796 23:[ touch_indicator:append(touch_loc) ] >> 25:[ touch_indicator\append(touch_loc) ] +831 24:[ mod.node:append(touch_indicator) ] >> 26:[ mod.node\append(touch_indicator) ] +865 25:[ print("char selector:", char_selector) ] >> 27:[ print("char selector:",char_selector) ] +904 26:[ return mod.node:action(coroutine.create(function() ] >> 28:[ mod.node\action(coroutine.create(() -> ] +950 27:[ while true do ] >> 29:[ while true ] +961 28:[ if #main.win:active_touches() > 0 then ] >> 30:[ if #main.win\active_touches! > 0 ] +996 29:[ local touch = main.win:touch_position(1) ] >> 31:[ touch = main.win\touch_position(1) ] +1035 30:[ touch_cursor.color = vec4(1, 1, 1, 1) ] >> 32:[ touch_cursor.color = vec4(1,1,1,1) ] +1074 31:[ touch_loc.x = touch.x ] >> 33:[ touch_loc.x = touch.x ] +1100 32:[ touch_loc.y = touch.y ] >> 34:[ touch_loc.y = touch.y ] +1126 33:[ local col_but = bp.check(touch.x, touch.y + 40) ] >> 35:[ col_but = bp.check(touch.x, touch.y + 40) ] +1172 34:[ local n = mod.node("join_id") ] >> 36:[ n = mod.node("join_id") ] +1202 35:[ if #col_but > 0 then ] >> 37:[ if #col_but > 0 ] +1221 36:[ touch_cursor.color = vec4(0.5, 0.5, 0.5, 0.5) ] >> 38:[ touch_cursor.color = vec4(0.5,0.5,0.5,0.5) ] +1200 37:[ end ] >> 37:[ if #col_but > 0 ] +1270 38:[ if main.win:touch_began(1) then ] >> 39:[ if main.win\touch_began(1) ] +1316 39:[ for _, button in pairs(mod.buttons) do ] >> 40:[ for _, button in pairs(mod.buttons) ] +1344 40:[ if col_but[1] == button then ] >> 41:[ if col_but[1] == button ] +1375 41:[ if n.text == default_text then ] >> 42:[ if n.text == default_text ] +1407 42:[ n.text = "" ] >> 43:[ n.text = "" ] +1373 43:[ end ] >> 42:[ if n.text == default_text ] +1426 44:[ print("Found pressed button", button) ] >> 44:[ print("Found pressed button",button) ] +1470 45:[ n.text = n.text .. button.text ] >> 45:[ n.text = n.text .. button.text ] +1342 46:[ end ] >> 41:[ if col_but[1] == button ] +1300 47:[ end ] >> 40:[ for _, button in pairs(mod.buttons) ] +1508 48:[ if col_but[1] == backspace then ] >> 46:[ if col_but[1] == backspace ] +1539 49:[ n.text = n.text:sub(1, string.len(n.text) - 1) ] >> 47:[ n.text = n.text\sub(1,string.len(n.text)-1) ] +1506 50:[ end ] >> 46:[ if col_but[1] == backspace ] +1268 51:[ end ] >> 39:[ if main.win\touch_began(1) ] +1589 52:[ if #n.text > 5 then ] >> 48:[ if #n.text > 5 ] +1607 53:[ print("Time to join!") ] >> 49:[ print("Time to join!") ] +1635 54:[ local lobby = require("lobby_menu") ] >> 50:[ lobby = require("lobby_menu") ] +1670 55:[ table.insert(main.action_queue, { ] >> 51:[ table.insert(main.action_queue,{lobby.load,{n.text}}) ] +1702 56:[ lobby.load, ] >> 51:[ table.insert(main.action_queue,{lobby.load,{n.text}}) ] +1714 58:[ n.text ] >> 51:[ table.insert(main.action_queue,{lobby.load,{n.text}}) ] +1670 60:[ }) ] >> 51:[ table.insert(main.action_queue,{lobby.load,{n.text}}) ] +1729 61:[ mod.unload() ] >> 52:[ mod.unload! ] +1587 62:[ end ] >> 48:[ if #n.text > 5 ] +959 63:[ end ] >> 30:[ if #main.win\active_touches! > 0 ] +1745 64:[ coroutine.yield() ] >> 54:[ coroutine.yield! ] +945 65:[ end ] >> 29:[ while true ] +904 66:[ end)) ] >> 28:[ mod.node\action(coroutine.create(() -> ] +238 67:[ end ] >> 14:[ mod.load = () -> ] +1767 68:[ mod.unload = function() ] >> 57:[ mod.unload = () -> ] +1787 69:[ main.root("screen"):remove(mod.node) ] >> 58:[ main.root("screen")\remove(mod.node) ] +1841 70:[ for _, button in pairs(mod.buttons) do ] >> 59:[ for _, button in pairs(mod.buttons) ] +1863 71:[ bp.remove(button) ] >> 60:[ bp.remove(button) ] +1825 72:[ end ] >> 59:[ for _, button in pairs(mod.buttons) ] +1767 73:[ end ] >> 57:[ mod.unload = () -> ] +1882 74:[ return mod ] >> 62:[ mod ] |
