From c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Mon, 29 Jan 2024 16:20:10 -0600 Subject: All the files --- debug/lobby_menu.lua.X | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 debug/lobby_menu.lua.X (limited to 'debug/lobby_menu.lua.X') diff --git a/debug/lobby_menu.lua.X b/debug/lobby_menu.lua.X new file mode 100644 index 0000000..f50cb4d --- /dev/null +++ b/debug/lobby_menu.lua.X @@ -0,0 +1,88 @@ +Pos Lua >> Moon +1 1:[ local main = require("main") ] >> 1:[ main = require "main" ] +23 2:[ local color = require("color") ] >> 2:[ color = require "color" ] +47 3:[ local ui = require("ui") ] >> 3:[ ui = require "ui" ] +65 4:[ local world = require("world") ] >> 4:[ world = require "world" ] +89 5:[ local char = require("char") ] >> 5:[ char = require "char" ] +111 6:[ local player = require("player") ] >> 6:[ player = require "player" ] +137 7:[ local bp = require("broadphase") ] >> 7:[ bp = require "broadphase" ] +163 8:[ local action = require("action") ] >> 8:[ action = require "action" ] +189 9:[ local room = require("room") ] >> 9:[ room = require "room" ] +228 11:[ World = world.World ] >> 10:[ import World from world ] +258 13:[ LocalPlayer = player.LocalPlayer ] >> 11:[ import LocalPlayer from player ] +287 15:[ LobbyRoom = room.LobbyRoom ] >> 12:[ import LobbyRoom from room ] +294 16:[ local mod = ... ] >> 14:[ mod = ... ] +305 17:[ mod.node = am.group() ] >> 16:[ mod.node = am.group! ] +376 18:[ mod.node:append(am.translate(0, main.height / 2) ^ am.text("Join lobby...", color.fg, "center", "top"):tag("join_id")) ] >> 18:[ mod.node\append(am.translate(0,main.height/2)^ am.text("Join lobby...", color.fg, "center","top")\tag("join_id")) ] +490 19:[ local char_selector = am.translate(0, (main.height / 2) + 64) ] >> 19:[ char_selector = am.translate(0,(main.height/2)+64) ] +541 20:[ mod.loaded = false ] >> 20:[ mod.loaded = false ] +560 21:[ mod.load = function(id) ] >> 21:[ mod.load = (id) -> ] +580 22:[ main.world = World() ] >> 22:[ main.world = World! ] +601 23:[ main.world:set_room(LobbyRoom()) ] >> 23:[ main.world\set_room(LobbyRoom!) ] +634 24:[ main.world:join(id) ] >> 24:[ main.world\join(id) ] +655 25:[ mod.node("join_id").text = "Lobby id:" .. id ] >> 25:[ mod.node("join_id").text = "Lobby id:" .. id ] +701 26:[ main.root("screen"):append(mod.node) ] >> 26:[ main.root("screen")\append(mod.node) ] +739 27:[ local touch_indicator = am.group() ] >> 27:[ touch_indicator = am.group! ] +768 28:[ local touch_cursor = am.sprite("data/cursor.png", vec4(1, 1, 1, 1), "left", "top") ] >> 28:[ touch_cursor = am.sprite("data/cursor.png",vec4(1,1,1,1),"left","top") ] +840 29:[ local touch_loc = am.translate(0, 0) ^ touch_cursor ] >> 29:[ touch_loc = am.translate(0,0)^ touch_cursor ] +885 30:[ touch_indicator:append(touch_loc) ] >> 30:[ touch_indicator\append(touch_loc) ] +920 31:[ char_selector = ui.create_char_selector2(mod.node) ] >> 31:[ char_selector = ui.create_char_selector2(mod.node) ] +972 32:[ local char_right, char_left, char_text = char_selector[1], char_selector[2], char_selector[3] ] >> 32:[ char_right, char_left, char_text = char_selector[1], char_selector[2], char_selector[3] ] +1061 33:[ mod.buttons = { ] >> 33:[ mod.buttons = {char_left, char_right} ] +1076 34:[ char_left, ] >> 33:[ mod.buttons = {char_left, char_right} ] +1086 35:[ char_right ] >> 33:[ mod.buttons = {char_left, char_right} ] +1061 36:[ } ] >> 33:[ mod.buttons = {char_left, char_right} ] +1100 37:[ local classes = char.class_order ] >> 34:[ classes = char.class_order ] +1128 38:[ local class_s = 1 ] >> 35:[ class_s = 1 ] +1141 39:[ char_right.color = color.transparent ] >> 36:[ char_right.color = color.transparent ] +1179 40:[ char_left.color = color.transparent ] >> 37:[ char_left.color = color.transparent ] +1216 41:[ mod.node:action(coroutine.create(function() ] >> 38:[ mod.node\action(coroutine.create(() -> ] +1262 42:[ while not main.world.client_open() do ] >> 39:[ while not main.world.client_open! ] +1294 43:[ coroutine.yield() ] >> 40:[ coroutine.yield! ] +1257 44:[ end ] >> 39:[ while not main.world.client_open! ] +1313 45:[ char_left.color = color.white ] >> 41:[ char_left.color = color.white ] +1345 46:[ char_right.color = color.white ] >> 42:[ char_right.color = color.white ] +1378 47:[ char_text.text = "Tumbler" ] >> 43:[ char_text.text = "Tumbler" ] +1407 48:[ main.world:load() ] >> 44:[ main.world\load! ] +1426 49:[ action.sync_players() ] >> 45:[ action.sync_players! ] +1454 50:[ while true do ] >> 46:[ while true ] +1465 51:[ if #main.win:active_touches() > 0 then ] >> 47:[ if #main.win\active_touches! > 0 ] +1501 52:[ local touch = main.win:touch_position(1) ] >> 48:[ touch = main.win\touch_position(1) ] +1540 53:[ touch_cursor.color = vec4(1, 1, 1, 1) ] >> 49:[ touch_cursor.color = vec4(1,1,1,1) ] +1579 54:[ touch_loc.x = touch.x ] >> 50:[ touch_loc.x = touch.x ] +1605 55:[ touch_loc.y = touch.y ] >> 51:[ touch_loc.y = touch.y ] +1631 56:[ local col_but = bp.check(touch.x, touch.y + 64) ] >> 52:[ col_but = bp.check(touch.x, touch.y + 64) ] +1679 57:[ if #col_but > 0 then ] >> 53:[ if #col_but > 0 ] +1698 58:[ touch_cursor.color = vec4(0.5, 0.5, 0.5, 0.5) ] >> 54:[ touch_cursor.color = vec4(0.5,0.5,0.5,0.5) ] +1677 59:[ end ] >> 53:[ if #col_but > 0 ] +1747 60:[ if #col_but > 0 and main.win:touch_began(1) then ] >> 55:[ if #col_but > 0 and main.win\touch_began(1) ] +1796 61:[ if col_but[1] == char_left then ] >> 56:[ if col_but[1] == char_left ] +1827 62:[ class_s = class_s - 1 ] >> 57:[ class_s = class_s - 1 ] +1857 63:[ if class_s == 0 then ] >> 58:[ if class_s == 0 ] +1878 64:[ class_s = #classes ] >> 59:[ class_s = #classes ] +1855 65:[ end ] >> 58:[ if class_s == 0 ] +1794 66:[ end ] >> 56:[ if col_but[1] == char_left ] +1904 67:[ if col_but[1] == char_right then ] >> 60:[ if col_but[1] == char_right ] +1936 68:[ class_s = class_s + 1 ] >> 61:[ class_s = class_s + 1 ] +1966 69:[ if class_s > #classes then ] >> 62:[ if class_s > #classes ] +1993 70:[ class_s = 1 ] >> 63:[ class_s = 1 ] +1964 71:[ end ] >> 62:[ if class_s > #classes ] +1902 72:[ end ] >> 60:[ if col_but[1] == char_right ] +2010 73:[ char_text.text = classes[class_s] ] >> 64:[ char_text.text = classes[class_s] ] +2049 74:[ action.request_class_change(classes[class_s]) ] >> 65:[ action.request_class_change(classes[class_s]) ] +1745 75:[ end ] >> 55:[ if #col_but > 0 and main.win\touch_began(1) ] +2107 77:[ touch_cursor.color = vec4(0, 0, 0, 0) ] >> 67:[ touch_cursor.color = vec4(0,0,0,0) ] +2145 79:[ coroutine.yield() ] >> 68:[ coroutine.yield! ] +1449 80:[ end ] >> 46:[ while true ] +1216 81:[ end)) ] >> 38:[ mod.node\action(coroutine.create(() -> ] +2168 82:[ mod.node:append(touch_indicator) ] >> 71:[ mod.node\append(touch_indicator) ] +2202 83:[ mod.loaded = true ] >> 72:[ mod.loaded = true ] +560 84:[ end ] >> 21:[ mod.load = (id) -> ] +2221 85:[ mod.unload = function() ] >> 74:[ mod.unload = () -> ] +2241 86:[ main.root("screen"):remove(mod.node) ] >> 75:[ main.root("screen")\remove(mod.node) ] +2295 87:[ for _, button in pairs(mod.buttons) do ] >> 76:[ for _, button in pairs(mod.buttons) ] +2317 88:[ bp.remove(button) ] >> 77:[ bp.remove(button) ] +2279 89:[ end ] >> 76:[ for _, button in pairs(mod.buttons) ] +2336 90:[ mod.loaded = false ] >> 78:[ mod.loaded = false ] +2221 91:[ end ] >> 74:[ mod.unload = () -> ] +2356 92:[ return mod ] >> 80:[ mod ] -- cgit v1.2.3-70-g09d2