From d01564a19dec8dc4b6851495150e240d937ec6b3 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Mon, 11 Mar 2013 21:24:41 +0100 Subject: [PATCH] update --- stargate/io.lua | 1 - stargate/sounds/paperflip2.ogg | Bin 0 -> 20582 bytes stargate/stargate_gui.lua | 163 ++++++++++++++++++---------- stargate/textures/dot_icon.png | Bin 731 -> 661 bytes stargate/textures/left_icon.png | Bin 0 -> 2030 bytes stargate/textures/right_icon.png | Bin 0 -> 1988 bytes stargate/textures/stargate_icon.png | Bin 0 -> 1711 bytes 7 files changed, 106 insertions(+), 58 deletions(-) delete mode 100644 stargate/io.lua create mode 100644 stargate/sounds/paperflip2.ogg create mode 100644 stargate/textures/left_icon.png create mode 100644 stargate/textures/right_icon.png create mode 100644 stargate/textures/stargate_icon.png diff --git a/stargate/io.lua b/stargate/io.lua deleted file mode 100644 index 8b13789..0000000 --- a/stargate/io.lua +++ /dev/null @@ -1 +0,0 @@ - diff --git a/stargate/sounds/paperflip2.ogg b/stargate/sounds/paperflip2.ogg new file mode 100644 index 0000000000000000000000000000000000000000..321bc4879e2df1394d3267b8c611e20383594386 GIT binary patch literal 20582 zcmafa1z1&0x9}#EMo>x`2}$WL0i_%1l5P+Vohl&GjWkM%lyrlV(%l?7g+p^_&cD(3 zyWe;3|2+5ZXB=i`tywdxX06$0t72uP0U!haJUI;d^mk3MAJ2P{D3RQqTuf~scLPW- zitqjaz|xby$aP36cQgO%xtoau_I6aYY4Jr7|NSvW`AdlnM9{H$WBp9U#fsYA##HMM zeQG&sE)Gr(POwljYM5D@xLH~_x>;FSxH8?5N4ocSGK-{?77~CCj&LeccfK8t(F6cI z0C-Kugd1-u$CQ`wh0!ZHLH4fI$q|~I5ZXy%7Qxx|uZo(-oDcv|fwznpQ8^oOwu6FJ zBu}GUJ`36?3lvbJg{dtGVziwym^tQG<=Z(9GSQ>s=-vZB(L9%>2_{g#t4u%Ad>{d< z5OSAaGzIA{n9N^4zsKbIMIETfwVfNUEVTV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=Z z75&>|5ZK=$HuQAHELjZ#?@iZkzkS<*F}?pKQnm~k^+V<3(R4ezh3??G$pV&bOa|87 z7~pB%w?*5!Y&>obbx4Axl}%Ov80Y?2EE!pVFIRwFEZLLnKC;smgXWcxt7wmbWsVTM zzCe2aj+J|cD82z%{M{l{iTHO9iR`3a_Npkx6e@JhS@ literal 0 HcmV?d00001 diff --git a/stargate/stargate_gui.lua b/stargate/stargate_gui.lua index 93357d1..940616d 100644 --- a/stargate/stargate_gui.lua +++ b/stargate/stargate_gui.lua @@ -1,11 +1,11 @@ -- default GUI page stargate.default_page = "main" -stargate.players={} +stargate_network["players"]={} stargate.current_page={} -stargate.save_data = function() - local data = minetest.serialize( stargate_network ) - local path = minetest.get_worldpath().."/mod_stargate.data" +stargate.save_data = function(table_pointer) + local data = minetest.serialize( stargate_network[table_pointer] ) + local path = minetest.get_worldpath().."/stargate_"..table_pointer..".data" local file = io.open( path, "w" ) if( file ) then file:write( data ) @@ -15,12 +15,12 @@ stargate.save_data = function() end end -stargate.restore_data = function() - local path = minetest.get_worldpath().."/mod_stargate.data" +stargate.restore_data = function(table_pointer) + local path = minetest.get_worldpath().."/stargate_"..table_pointer..".data" local file = io.open( path, "r" ) if( file ) then local data = file:read("*all") - stargate_network = minetest.deserialize( data ) + stargate_network[table_pointer] = minetest.deserialize( data ) file:close() return true else return nil @@ -28,26 +28,42 @@ stargate.restore_data = function() end -- load Stargates network data -if stargate.restore_data()==nil then - print ("[stargate] network data not found. Creating new file.") - if stargate.save_data()==nil then - print ("[stargate] Cannot load nor create new file!") - --crash or something here? - else - print ("[stargate] New data file created.") +if stargate.restore_data("registered_players") ~= nil then + print(dump(stargate_network["registered_players"])) + for __,tab in ipairs(stargate_network["registered_players"]) do + if stargate.restore_data(tab["player_name"]) == nil then + print ("[stargate] Error loading data!") + end end +else + print ("[stargate] Error loading data! Creating new file.") + stargate_network["registered_players"]={} + stargate.save_data("registered_players") + print(dump(stargate_network["registered_players"])) end -- register_on_joinplayer minetest.register_on_joinplayer(function(player) local player_name = player:get_player_name() - stargate.players[player_name]={} - stargate.players[player_name]["formspec"]="" - stargate.players[player_name]["current_page"]=stargate.default_page - stargate.players[player_name]["own_gates"]={} - stargate.players[player_name]["own_gates_count"]=0 - stargate.players[player_name]["public_gates"]={} - stargate.players[player_name]["public_gates_count"]=0 + local registered=nil + for __,tab in ipairs(stargate_network["registered_players"]) do + if tab["player_name"] == player_name then registered = true break end + end + if registered == nil then + local new={} + new["player_name"]=player_name + table.insert(stargate_network["registered_players"],new) + stargate.save_data("registered_players") + stargate.save_data(player_name) + end + stargate_network["players"][player_name]={} + stargate_network["players"][player_name]["formspec"]="" + stargate_network["players"][player_name]["current_page"]=stargate.default_page + stargate_network["players"][player_name]["own_gates"]={} + stargate_network["players"][player_name]["own_gates_count"]=0 + stargate_network["players"][player_name]["public_gates"]={} + stargate_network["players"][player_name]["public_gates_count"]=0 + stargate_network["players"][player_name]["current_index"]=0 end) stargate.registerGate = function(player_name,pos) @@ -59,7 +75,7 @@ stargate.registerGate = function(player_name,pos) new_gate["type"]="private" new_gate["description"]="" table.insert(stargate_network[player_name],new_gate) - if stargate.save_data()==nil then + if stargate.save_data(player_name)==nil then print ("[stargate] Couldnt update network file!") end end @@ -71,7 +87,7 @@ stargate.unregisterGate = function(player_name,pos) break end end - if stargate.save_data()==nil then + if stargate.save_data(player_name)==nil then print ("[stargate] Couldnt update network file!") end end @@ -83,35 +99,36 @@ stargate.gateFormspecHandler = function(pos, node, clicker, itemstack) local owner=meta:get_string("owner") if player_name~=owner then return end local current_gate=nil - stargate.players[player_name]["own_gates"]={} - stargate.players[player_name]["public_gates"]={} + stargate_network["players"][player_name]["own_gates"]={} + stargate_network["players"][player_name]["public_gates"]={} local own_gates_count=0 for __,gates in ipairs(stargate_network[player_name]) do if gates["pos"].x==pos.x and gates["pos"].y==pos.y and gates["pos"].z==pos.z then current_gate=gates else own_gates_count=own_gates_count+1 - table.insert(stargate.players[player_name]["own_gates"],gates) + table.insert(stargate_network["players"][player_name]["own_gates"],gates) end end - stargate.players[player_name]["own_gates_count"]=own_gates_count + stargate_network["players"][player_name]["own_gates_count"]=own_gates_count if current_gate==nil then print ("Gate not registered in network! Please remove it and place once again.") return nil end - stargate.players[player_name]["current_index"]=0 - stargate.players[player_name]["current_gate"]=current_gate - stargate.players[player_name]["dest_type"]="own" + stargate_network["players"][player_name]["current_index"]=0 + stargate_network["players"][player_name]["current_gate"]=current_gate + stargate_network["players"][player_name]["dest_type"]="own" local formspec=stargate.get_formspec(player_name,"main") - stargate.players[player_name]["formspec"]=formspec - minetest.show_formspec(player_name, "stargate:main", formspec) + stargate_network["players"][player_name]["formspec"]=formspec + print(dump(formspec)) + if formspec ~=nil then minetest.show_formspec(player_name, "stargate_main", formspec) end end -- get_formspec stargate.get_formspec = function(player_name,page) - if player_name==nil then return "" end - stargate.players[player_name]["current_page"]=page - local current_gate=stargate.players[player_name]["current_gate"] + if player_name==nil then return nil end + stargate_network["players"][player_name]["current_page"]=page + local current_gate=stargate_network["players"][player_name]["current_gate"] local formspec = "size[14,10]" --background formspec = formspec .."background[-0.19,-0.2,;14.38,10.55;ui_form_bg.png]" @@ -123,7 +140,7 @@ stargate.get_formspec = function(player_name,page) formspec = formspec.."label[0,1.1;Destination: ]" formspec = formspec.."label[0,1.7;Aviable destinations:]" formspec = formspec.."image_button[3.5,1.8;.6,.6;toggle_icon.png;toggle_dest_type;]" - formspec = formspec.."label[4,1.7;Type: "..stargate.players[player_name]["dest_type"].."]" + formspec = formspec.."label[4,1.7;Filter: "..stargate_network["players"][player_name]["dest_type"].."]" if page=="main" then formspec = formspec.."image_button[6.5,.6;.6,.6;pencil_icon.png;edit_desc;]" @@ -134,54 +151,58 @@ stargate.get_formspec = function(player_name,page) formspec = formspec.."field[7.3,.7;5,1;desc_box;Edit gate description:;"..current_gate["description"].."]" end - local list_index=stargate.players[player_name]["current_index"] - print(dump(stargate.players[player_name]["own_gates_count"])) + local list_index=stargate_network["players"][player_name]["current_index"] local page=math.floor(list_index / (30) + 1) - local pagemax = math.floor((stargate.players[player_name]["own_gates_count"]+1) / (30) + 1) - for y=0,9,1 do + local pagemax = math.floor((stargate_network["players"][player_name]["own_gates_count"]+1) / (30) + 1) + for y=0,7,1 do for x=0,2,1 do - print(dump(list_index)) - print(dump(stargate.players[player_name]["own_gates"][list_index+1])) - local gate_temp=stargate.players[player_name]["own_gates"][list_index+1] + local gate_temp=stargate_network["players"][player_name]["own_gates"][list_index+1] if gate_temp then - formspec = formspec.."image_button["..(x*5)..","..(4+y*.8)..";.6,.6;dot_icon.png;list_button"..list_index..";]" - formspec = formspec.."label["..(x*5+.8)..","..(4+y*.8)..";("..gate_temp["pos"].x..","..gate_temp["pos"].y..","..gate_temp["pos"].z..")]" + formspec = formspec.."image_button["..(x*4.5)..","..(2.5+y*.9)..";.6,.6;stargate_icon.png;list_button"..list_index..";]" + formspec = formspec.."label["..(x*4.5+.5)..","..(2.3+y*.9)..";("..gate_temp["pos"].x..","..gate_temp["pos"].y..","..gate_temp["pos"].z..") "..gate_temp["type"].."]" + formspec = formspec.."label["..(x*4.5+.5)..","..(2.7+y*.9)..";"..gate_temp["description"].."]" end list_index=list_index+1 end - end + end + formspec = formspec.."image_button[6.5,1.8;.6,.6;left_icon.png;page_left;]" + formspec = formspec.."image_button[6.9,1.8;.6,.6;right_icon.png;page_right;]" + formspec=formspec.."label[7.5,1.7;Page: "..page.." of "..pagemax.."]" return formspec end -- register_on_player_receive_fields minetest.register_on_player_receive_fields(function(player, formname, fields) + print(dump(formname)) + --if formname ~= "stargate:main" then return end local player_name = player:get_player_name() - local current_gate=stargate.players[player_name]["current_gate"] + local current_gate=stargate_network["players"][player_name]["current_gate"] local formspec if fields.toggle_type then if current_gate["type"] == "private" then - current_gate["type"]="public" - else current_gate["type"]="private" end + current_gate["type"] = "public" + else current_gate["type"] = "private" end formspec= stargate.get_formspec(player_name,"main") - stargate.players[player_name]["formspec"]=formspec + stargate_network["players"][player_name]["formspec"] = formspec minetest.show_formspec(player_name, "stargate:main", formspec) minetest.sound_play("click", {to_player=player_name, gain = 0.5}) return end if fields.toggle_dest_type then - if stargate.players[player_name]["dest_type"] == "all own" then - stargate.players[player_name]["dest_type"]="all public" - else stargate.players[player_name]["dest_type"]="all own" end - formspec= stargate.get_formspec(player_name,"main") - stargate.players[player_name]["formspec"]=formspec + if stargate_network["players"][player_name]["dest_type"] == "all own" then + stargate_network["players"][player_name]["dest_type"] = "all public" + else stargate_network["players"][player_name]["dest_type"] = "all own" end + stargate_network["players"][player_name]["current_index"] = 0 + formspec = stargate.get_formspec(player_name,"main") + stargate_network["players"][player_name]["formspec"] = formspec minetest.show_formspec(player_name, "stargate:main", formspec) minetest.sound_play("click", {to_player=player_name, gain = 0.5}) return end if fields.edit_desc then formspec= stargate.get_formspec(player_name,"edit_desc") - stargate.players[player_name]["formspec"]=formspec + stargate_network["players"][player_name]["formspec"]=formspec minetest.show_formspec(player_name, "stargate:main", formspec) minetest.sound_play("click", {to_player=player_name, gain = 0.5}) return @@ -190,9 +211,37 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if fields.save_desc then current_gate["description"]=fields.desc_box formspec= stargate.get_formspec(player_name,"main") - stargate.players[player_name]["formspec"]=formspec + stargate_network["players"][player_name]["formspec"]=formspec minetest.show_formspec(player_name, "stargate:main", formspec) minetest.sound_play("click", {to_player=player_name, gain = 0.5}) return end + + -- page controls + local start=math.floor(stargate_network["players"][player_name]["current_index"]/30 +1 ) + local start_i=start + local pagemax = math.floor((stargate_network["players"][player_name]["own_gates_count"]) / (30) + 1) + + if fields.page_left then + minetest.sound_play("paperflip2", {to_player=player_name, gain = 1.0}) + start_i = start_i - 1 + if start_i < 1 then start_i = 1 end + if not (start_i == start) then + stargate_network["players"][player_name]["current_index"] = (start_i-1)*30+1 + formspec = stargate.get_formspec(player_name,"main") + stargate_network["players"][player_name]["formspec"] = formspec + minetest.show_formspec(player_name, "stargate:main", formspec) + end + end + if fields.page_right then + minetest.sound_play("paperflip2", {to_player=player_name, gain = 1.0}) + start_i = start_i + 1 + if start_i > pagemax then start_i = pagemax end + if not (start_i == start) then + stargate_network["players"][player_name]["current_index"] = (start_i-1)*30+1 + formspec = stargate.get_formspec(player_name,"main") + stargate_network["players"][player_name]["formspec"] = formspec + minetest.show_formspec(player_name, "stargate:main", formspec) + end + end end) diff --git a/stargate/textures/dot_icon.png b/stargate/textures/dot_icon.png index e73af1a5b44a43d19abb060b6b01433bc02e4460..3e109f39f5ba192afc15f0cbb54b5f6a875a3b6a 100644 GIT binary patch delta 499 zcmVa)aam=_rXHRT}q{IY78UxC4kFY($V^QREUhfOj6nEVfh77$a8VebP!>?99Gz z-aoSoK@bE%5ClOG{I6(J6AjMxhBA&M9RS z8h9@EKF@gO2KOhE(ez8J1olsM`e`eDkOBJ5RPIH_9j|>b8BNEn5O{pL+spI(HC2X^ zKtk5koR^&d@cN#_!^vnm+mwKUEhUom>sebmVZgg*pTQ8*=47fF5W!- p_}Bi0f*=TjAP9mW2!dcuege|pwoW0jK~Vqz002ovPDHLkV1hVC>J0z@ delta 570 zcmV-A0>%B61=|IXVFwWu0S+V)VUcK0e*z9kL_t(&-tE@0ZWJ*P#__+$>-F9xd4?23 zv`H1wf`pLB10+g1nuv-j4H69nB?S^l=}8J&2#-KP#kG+r@(^Kjd-e>413bVTVv+o7 zwpoq!&5R{ORaI40RaI40RrPPURTn(@WV_-x5@F9dHZ5_b%0=G~XK(i7*U<)efA-Pt z0G}P)b$|!Nfm3j13_~Itmr3pM+k^OhQ~{p6AGW9K;hS^d1q5(bii?4BplYbXA}cA| z&bxy!8%2PpA9OMd!;jcSe1PCVJfI~63QkIpq>$8ZL%8YbzVDYkUzRNp#2tF?Nhy;O zsFse4+;$#FxqK1u-r>Ec2^_9se*#Mf@D0ap+hAs-WX$IeXoT4)0tlR1h8Q3;&)8vXcG(D{rCKUu^ff z&qvpNzn8LYh7hkpY%ey}C^$R0=T`m}s;a80s;a80s`_vJ1b^PgqX9_&*8l(j07*qo IM6N<$f|M-*&;S4c diff --git a/stargate/textures/left_icon.png b/stargate/textures/left_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..2534c77773a4f8160762c0d389fb48d45f80d39a GIT binary patch literal 2030 zcmVPx#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2i*e# z0Tw$Wj3Led00(YKL_t(&-tCxMj9q0F$N&HJeS4pC=FGI6Gt)wESb7W6LX`%q*j5Fi z4>g7aluN(|Oz?px6TE@&ppnGb2@<0wrqO6i2o^CRL{cB{Ql$;HNNFjdluoa-Gwoc? z{j&GBmJfR-D2c{4c4kQC|FX|XPR?1swbp;F?>oS(W;Lr1v^bqV{@@e4=U=zHw0Ygi ze!c37p1&;a?;5$-?~v&Ve$`!1eR9viv)iG%-3zw=c;~A>yZt-6x<3#AtM7j5o1G+m zX6^Fc&)snSl0vl|iU*GlfAQ_(Ll+I;r!w&Czw%sPy;lEKnx?lr_@#CEjW?|{iz5u4 z9fE&bI*>?)GGCD3;Xj|f8+iQ?CGDY^>#uZ0vgQ@LP(&RV#WcizISJj zrR@jI?E5$0xF~nm=hvX6K)u!w0Ps$bwA$1VU>ar?z{uo(cb?#oXvJ$$tKtt(3T`#-gQVSdf3lEpcXa=8hR?^{6z=LAWTX6-ZG z0ITlaaqIAS^Ly*BDQ(#F(JNT$&1(_@le&VWQ9!ea?Ma#$XsSrlU>X9at%dG=;+VX= z=dWLbhKIkfX;Ep_hvp!TiDoMik{}6yC}wTWw-xggNQsje-5{-S}d49 z4_2wS;GL&)fEnP7G$#O*W}G~5kpj>FNahIuP$M!kU*<*jv9Iryp?3~{H6PhSi%Vho zRr3Yjsnr?=?*UV0!9ZY82xM~HWKRNOlErNVC@>gk0#E=8xNII+eaE)Gkz)s+oL8{h z7MDV?w+Kx-U`mH5$|i{!%_uY~KxZHrltzLyfx($U$O#&Q7|aL=gfy65zA>6=_`|%e zaKqBx4!i)ZCWIt>6u~C5Zlu9wS)~zKk|l@$Mo_bQm?H=Q0m-_EAV`=(FBgDmQgSe8 zNUW8pnE}puhRNVXkrlv5XUN_{#HeCqHgLp1AtBjD5K$ON5r}hUred00CV;fF=|UO5 zu2hoEXq|VFGo3eYE_!;p0SL?-00&Y*F*uibVj}Q~u_K^3hzOhrC<4GB;^3Tsrhw{2 z1GxX?L*qwwRit#?(-L=4TyAZ(Rx1t^-B%Ble!LbBtWXTCK`A4jo3VRvYLHzh1j6Q)qPW*3KyK*p;7t?3H5A{BIY# z+cyaURAKdc8$q2l+hDG#$QRUdd6hyw(KwEo&*c!u!E(8nQRESMqxW7XPZiacSx~*C zO?=UJ;&Xrc?hEDd%6+Xwe-t1n&MC4`EI^#lc}MR(z4wf~gZGY631J_ z^R@l0RGM^N#LQqYF#};nRTWjGWv`JYi6otbX&M;R#4KFWaoXYkpvs9?(&o7XyQOF4 ztM48kT%Ru$dgu1`i+5hLY&(c^CL$0aV4wjSLO=+La-(90|FMs?a(N((AFWMU1>Uc* zgHOLG&foglAOHN@*Y>?sFSkZT1qf;gNs5rBNID5RNrHB}jaI9Jb~{0$0cr|{bb2cA zuWFoqy_$@?^=wP~s^`z1T48zV?PAXElx z(+V)D&ghX>*tPWU=g*v;SFVj-oA2*qv1<-ANug%cph!bNNEMZ|fwvFrXJdS9K&vNa z1^@tbMvk0u#U(FQN5?J==KKbqyS0j-^yIRF5V zj2~-u#=>3{x^@p8d28eO%K5(1+H2t&s!6Af5EL~ecKpz*Y>tl)X#Mo`nfO0S-_hDz zzu)cS-1;;7_x&nGHyfAp6 zKH~uZAT6I9&iAc&uD94VTIef{1o6MrV1FBab8m`S&1zP&n$=Y4pZ9C`KEEm7U;qFB M07*qoM6N<$f@Ues$N&HU literal 0 HcmV?d00001 diff --git a/stargate/textures/right_icon.png b/stargate/textures/right_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..5c2e7c56c161a687dde018e5ed1950d551830c0e GIT binary patch literal 1988 zcmV;#2RrzQP)Px#24YJ`L;(K){{a7>y{D4^000SaNL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